Cloud AI Platform v1 API - Class JobServiceClient (3.9.0)

public abstract class JobServiceClient

Reference documentation and code samples for the Cloud AI Platform v1 API class JobServiceClient.

JobService client wrapper, for convenient use.

Inheritance

object > JobServiceClient

Derived Types

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Remarks

A service for creating and managing Vertex AI's jobs.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the JobService service, which is a host of "aiplatform.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default JobService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

DeleteBatchPredictionJobOperationsClient

public virtual OperationsClient DeleteBatchPredictionJobOperationsClient { get; }

The long-running operations client for DeleteBatchPredictionJob.

Property Value
Type Description
OperationsClient

DeleteCustomJobOperationsClient

public virtual OperationsClient DeleteCustomJobOperationsClient { get; }

The long-running operations client for DeleteCustomJob.

Property Value
Type Description
OperationsClient

DeleteDataLabelingJobOperationsClient

public virtual OperationsClient DeleteDataLabelingJobOperationsClient { get; }

The long-running operations client for DeleteDataLabelingJob.

Property Value
Type Description
OperationsClient

DeleteHyperparameterTuningJobOperationsClient

public virtual OperationsClient DeleteHyperparameterTuningJobOperationsClient { get; }

The long-running operations client for DeleteHyperparameterTuningJob.

Property Value
Type Description
OperationsClient

DeleteModelDeploymentMonitoringJobOperationsClient

public virtual OperationsClient DeleteModelDeploymentMonitoringJobOperationsClient { get; }

The long-running operations client for DeleteModelDeploymentMonitoringJob.

Property Value
Type Description
OperationsClient

DeleteNasJobOperationsClient

public virtual OperationsClient DeleteNasJobOperationsClient { get; }

The long-running operations client for DeleteNasJob.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual JobService.JobServiceClient GrpcClient { get; }

The underlying gRPC JobService client

Property Value
Type Description
JobServiceJobServiceClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

UpdateModelDeploymentMonitoringJobOperationsClient

public virtual OperationsClient UpdateModelDeploymentMonitoringJobOperationsClient { get; }

The long-running operations client for UpdateModelDeploymentMonitoringJob.

Property Value
Type Description
OperationsClient

Methods

CancelBatchPredictionJob(BatchPredictionJobName, CallSettings)

public virtual void CancelBatchPredictionJob(BatchPredictionJobName name, CallSettings callSettings = null)

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
name BatchPredictionJobName

Required. The name of the BatchPredictionJob to cancel. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
BatchPredictionJobName name = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
// Make the request
jobServiceClient.CancelBatchPredictionJob(name);

CancelBatchPredictionJob(CancelBatchPredictionJobRequest, CallSettings)

public virtual void CancelBatchPredictionJob(CancelBatchPredictionJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CancelBatchPredictionJobRequest request = new CancelBatchPredictionJobRequest
{
    BatchPredictionJobName = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]"),
};
// Make the request
jobServiceClient.CancelBatchPredictionJob(request);

CancelBatchPredictionJob(string, CallSettings)

public virtual void CancelBatchPredictionJob(string name, CallSettings callSettings = null)

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
name string

Required. The name of the BatchPredictionJob to cancel. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/batchPredictionJobs/[BATCH_PREDICTION_JOB]";
// Make the request
jobServiceClient.CancelBatchPredictionJob(name);

CancelBatchPredictionJobAsync(BatchPredictionJobName, CallSettings)

public virtual Task CancelBatchPredictionJobAsync(BatchPredictionJobName name, CallSettings callSettings = null)

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
name BatchPredictionJobName

Required. The name of the BatchPredictionJob to cancel. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPredictionJobName name = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
// Make the request
await jobServiceClient.CancelBatchPredictionJobAsync(name);

CancelBatchPredictionJobAsync(BatchPredictionJobName, CancellationToken)

public virtual Task CancelBatchPredictionJobAsync(BatchPredictionJobName name, CancellationToken cancellationToken)

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
name BatchPredictionJobName

Required. The name of the BatchPredictionJob to cancel. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPredictionJobName name = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
// Make the request
await jobServiceClient.CancelBatchPredictionJobAsync(name);

CancelBatchPredictionJobAsync(CancelBatchPredictionJobRequest, CallSettings)

public virtual Task CancelBatchPredictionJobAsync(CancelBatchPredictionJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CancelBatchPredictionJobRequest request = new CancelBatchPredictionJobRequest
{
    BatchPredictionJobName = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]"),
};
// Make the request
await jobServiceClient.CancelBatchPredictionJobAsync(request);

CancelBatchPredictionJobAsync(CancelBatchPredictionJobRequest, CancellationToken)

public virtual Task CancelBatchPredictionJobAsync(CancelBatchPredictionJobRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CancelBatchPredictionJobRequest request = new CancelBatchPredictionJobRequest
{
    BatchPredictionJobName = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]"),
};
// Make the request
await jobServiceClient.CancelBatchPredictionJobAsync(request);

CancelBatchPredictionJobAsync(string, CallSettings)

public virtual Task CancelBatchPredictionJobAsync(string name, CallSettings callSettings = null)

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
name string

Required. The name of the BatchPredictionJob to cancel. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/batchPredictionJobs/[BATCH_PREDICTION_JOB]";
// Make the request
await jobServiceClient.CancelBatchPredictionJobAsync(name);

CancelBatchPredictionJobAsync(string, CancellationToken)

public virtual Task CancelBatchPredictionJobAsync(string name, CancellationToken cancellationToken)

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
name string

Required. The name of the BatchPredictionJob to cancel. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/batchPredictionJobs/[BATCH_PREDICTION_JOB]";
// Make the request
await jobServiceClient.CancelBatchPredictionJobAsync(name);

CancelCustomJob(CancelCustomJobRequest, CallSettings)

public virtual void CancelCustomJob(CancelCustomJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CancelCustomJobRequest request = new CancelCustomJobRequest
{
    CustomJobName = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]"),
};
// Make the request
jobServiceClient.CancelCustomJob(request);

CancelCustomJob(CustomJobName, CallSettings)

public virtual void CancelCustomJob(CustomJobName name, CallSettings callSettings = null)

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
name CustomJobName

Required. The name of the CustomJob to cancel. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CustomJobName name = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
// Make the request
jobServiceClient.CancelCustomJob(name);

CancelCustomJob(string, CallSettings)

public virtual void CancelCustomJob(string name, CallSettings callSettings = null)

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
name string

Required. The name of the CustomJob to cancel. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/customJobs/[CUSTOM_JOB]";
// Make the request
jobServiceClient.CancelCustomJob(name);

CancelCustomJobAsync(CancelCustomJobRequest, CallSettings)

public virtual Task CancelCustomJobAsync(CancelCustomJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CancelCustomJobRequest request = new CancelCustomJobRequest
{
    CustomJobName = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]"),
};
// Make the request
await jobServiceClient.CancelCustomJobAsync(request);

CancelCustomJobAsync(CancelCustomJobRequest, CancellationToken)

public virtual Task CancelCustomJobAsync(CancelCustomJobRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CancelCustomJobRequest request = new CancelCustomJobRequest
{
    CustomJobName = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]"),
};
// Make the request
await jobServiceClient.CancelCustomJobAsync(request);

CancelCustomJobAsync(CustomJobName, CallSettings)

public virtual Task CancelCustomJobAsync(CustomJobName name, CallSettings callSettings = null)

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
name CustomJobName

Required. The name of the CustomJob to cancel. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CustomJobName name = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
// Make the request
await jobServiceClient.CancelCustomJobAsync(name);

CancelCustomJobAsync(CustomJobName, CancellationToken)

public virtual Task CancelCustomJobAsync(CustomJobName name, CancellationToken cancellationToken)

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
name CustomJobName

Required. The name of the CustomJob to cancel. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CustomJobName name = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
// Make the request
await jobServiceClient.CancelCustomJobAsync(name);

CancelCustomJobAsync(string, CallSettings)

public virtual Task CancelCustomJobAsync(string name, CallSettings callSettings = null)

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
name string

Required. The name of the CustomJob to cancel. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/customJobs/[CUSTOM_JOB]";
// Make the request
await jobServiceClient.CancelCustomJobAsync(name);

CancelCustomJobAsync(string, CancellationToken)

public virtual Task CancelCustomJobAsync(string name, CancellationToken cancellationToken)

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
name string

Required. The name of the CustomJob to cancel. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/customJobs/[CUSTOM_JOB]";
// Make the request
await jobServiceClient.CancelCustomJobAsync(name);

CancelDataLabelingJob(CancelDataLabelingJobRequest, CallSettings)

public virtual void CancelDataLabelingJob(CancelDataLabelingJobRequest request, CallSettings callSettings = null)

Cancels a DataLabelingJob. Success of cancellation is not guaranteed.

Parameters
Name Description
request CancelDataLabelingJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CancelDataLabelingJobRequest request = new CancelDataLabelingJobRequest
{
    DataLabelingJobName = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]"),
};
// Make the request
jobServiceClient.CancelDataLabelingJob(request);

CancelDataLabelingJob(DataLabelingJobName, CallSettings)

public virtual void CancelDataLabelingJob(DataLabelingJobName name, CallSettings callSettings = null)

Cancels a DataLabelingJob. Success of cancellation is not guaranteed.

Parameters
Name Description
name DataLabelingJobName

Required. The name of the DataLabelingJob. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
DataLabelingJobName name = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
// Make the request
jobServiceClient.CancelDataLabelingJob(name);

CancelDataLabelingJob(string, CallSettings)

public virtual void CancelDataLabelingJob(string name, CallSettings callSettings = null)

Cancels a DataLabelingJob. Success of cancellation is not guaranteed.

Parameters
Name Description
name string

Required. The name of the DataLabelingJob. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataLabelingJobs/[DATA_LABELING_JOB]";
// Make the request
jobServiceClient.CancelDataLabelingJob(name);

CancelDataLabelingJobAsync(CancelDataLabelingJobRequest, CallSettings)

public virtual Task CancelDataLabelingJobAsync(CancelDataLabelingJobRequest request, CallSettings callSettings = null)

Cancels a DataLabelingJob. Success of cancellation is not guaranteed.

Parameters
Name Description
request CancelDataLabelingJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CancelDataLabelingJobRequest request = new CancelDataLabelingJobRequest
{
    DataLabelingJobName = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]"),
};
// Make the request
await jobServiceClient.CancelDataLabelingJobAsync(request);

CancelDataLabelingJobAsync(CancelDataLabelingJobRequest, CancellationToken)

public virtual Task CancelDataLabelingJobAsync(CancelDataLabelingJobRequest request, CancellationToken cancellationToken)

Cancels a DataLabelingJob. Success of cancellation is not guaranteed.

Parameters
Name Description
request CancelDataLabelingJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CancelDataLabelingJobRequest request = new CancelDataLabelingJobRequest
{
    DataLabelingJobName = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]"),
};
// Make the request
await jobServiceClient.CancelDataLabelingJobAsync(request);

CancelDataLabelingJobAsync(DataLabelingJobName, CallSettings)

public virtual Task CancelDataLabelingJobAsync(DataLabelingJobName name, CallSettings callSettings = null)

Cancels a DataLabelingJob. Success of cancellation is not guaranteed.

Parameters
Name Description
name DataLabelingJobName

Required. The name of the DataLabelingJob. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DataLabelingJobName name = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
// Make the request
await jobServiceClient.CancelDataLabelingJobAsync(name);

CancelDataLabelingJobAsync(DataLabelingJobName, CancellationToken)

public virtual Task CancelDataLabelingJobAsync(DataLabelingJobName name, CancellationToken cancellationToken)

Cancels a DataLabelingJob. Success of cancellation is not guaranteed.

Parameters
Name Description
name DataLabelingJobName

Required. The name of the DataLabelingJob. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DataLabelingJobName name = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
// Make the request
await jobServiceClient.CancelDataLabelingJobAsync(name);

CancelDataLabelingJobAsync(string, CallSettings)

public virtual Task CancelDataLabelingJobAsync(string name, CallSettings callSettings = null)

Cancels a DataLabelingJob. Success of cancellation is not guaranteed.

Parameters
Name Description
name string

Required. The name of the DataLabelingJob. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataLabelingJobs/[DATA_LABELING_JOB]";
// Make the request
await jobServiceClient.CancelDataLabelingJobAsync(name);

CancelDataLabelingJobAsync(string, CancellationToken)

public virtual Task CancelDataLabelingJobAsync(string name, CancellationToken cancellationToken)

Cancels a DataLabelingJob. Success of cancellation is not guaranteed.

Parameters
Name Description
name string

Required. The name of the DataLabelingJob. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataLabelingJobs/[DATA_LABELING_JOB]";
// Make the request
await jobServiceClient.CancelDataLabelingJobAsync(name);

CancelHyperparameterTuningJob(CancelHyperparameterTuningJobRequest, CallSettings)

public virtual void CancelHyperparameterTuningJob(CancelHyperparameterTuningJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CancelHyperparameterTuningJobRequest request = new CancelHyperparameterTuningJobRequest
{
    HyperparameterTuningJobName = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]"),
};
// Make the request
jobServiceClient.CancelHyperparameterTuningJob(request);

CancelHyperparameterTuningJob(HyperparameterTuningJobName, CallSettings)

public virtual void CancelHyperparameterTuningJob(HyperparameterTuningJobName name, CallSettings callSettings = null)

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
name HyperparameterTuningJobName

Required. The name of the HyperparameterTuningJob to cancel. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
HyperparameterTuningJobName name = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
// Make the request
jobServiceClient.CancelHyperparameterTuningJob(name);

CancelHyperparameterTuningJob(string, CallSettings)

public virtual void CancelHyperparameterTuningJob(string name, CallSettings callSettings = null)

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
name string

Required. The name of the HyperparameterTuningJob to cancel. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hyperparameterTuningJobs/[HYPERPARAMETER_TUNING_JOB]";
// Make the request
jobServiceClient.CancelHyperparameterTuningJob(name);

CancelHyperparameterTuningJobAsync(CancelHyperparameterTuningJobRequest, CallSettings)

public virtual Task CancelHyperparameterTuningJobAsync(CancelHyperparameterTuningJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CancelHyperparameterTuningJobRequest request = new CancelHyperparameterTuningJobRequest
{
    HyperparameterTuningJobName = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]"),
};
// Make the request
await jobServiceClient.CancelHyperparameterTuningJobAsync(request);

CancelHyperparameterTuningJobAsync(CancelHyperparameterTuningJobRequest, CancellationToken)

public virtual Task CancelHyperparameterTuningJobAsync(CancelHyperparameterTuningJobRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CancelHyperparameterTuningJobRequest request = new CancelHyperparameterTuningJobRequest
{
    HyperparameterTuningJobName = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]"),
};
// Make the request
await jobServiceClient.CancelHyperparameterTuningJobAsync(request);

CancelHyperparameterTuningJobAsync(HyperparameterTuningJobName, CallSettings)

public virtual Task CancelHyperparameterTuningJobAsync(HyperparameterTuningJobName name, CallSettings callSettings = null)

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
name HyperparameterTuningJobName

Required. The name of the HyperparameterTuningJob to cancel. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
HyperparameterTuningJobName name = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
// Make the request
await jobServiceClient.CancelHyperparameterTuningJobAsync(name);

CancelHyperparameterTuningJobAsync(HyperparameterTuningJobName, CancellationToken)

public virtual Task CancelHyperparameterTuningJobAsync(HyperparameterTuningJobName name, CancellationToken cancellationToken)

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
name HyperparameterTuningJobName

Required. The name of the HyperparameterTuningJob to cancel. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
HyperparameterTuningJobName name = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
// Make the request
await jobServiceClient.CancelHyperparameterTuningJobAsync(name);

CancelHyperparameterTuningJobAsync(string, CallSettings)

public virtual Task CancelHyperparameterTuningJobAsync(string name, CallSettings callSettings = null)

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
name string

Required. The name of the HyperparameterTuningJob to cancel. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hyperparameterTuningJobs/[HYPERPARAMETER_TUNING_JOB]";
// Make the request
await jobServiceClient.CancelHyperparameterTuningJobAsync(name);

CancelHyperparameterTuningJobAsync(string, CancellationToken)

public virtual Task CancelHyperparameterTuningJobAsync(string name, CancellationToken cancellationToken)

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
name string

Required. The name of the HyperparameterTuningJob to cancel. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hyperparameterTuningJobs/[HYPERPARAMETER_TUNING_JOB]";
// Make the request
await jobServiceClient.CancelHyperparameterTuningJobAsync(name);

CancelNasJob(CancelNasJobRequest, CallSettings)

public virtual void CancelNasJob(CancelNasJobRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request CancelNasJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CancelNasJobRequest request = new CancelNasJobRequest
{
    NasJobName = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]"),
};
// Make the request
jobServiceClient.CancelNasJob(request);

CancelNasJob(NasJobName, CallSettings)

public virtual void CancelNasJob(NasJobName name, CallSettings callSettings = null)

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

Parameters
Name Description
name NasJobName

Required. The name of the NasJob to cancel. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
NasJobName name = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]");
// Make the request
jobServiceClient.CancelNasJob(name);

CancelNasJob(string, CallSettings)

public virtual void CancelNasJob(string name, CallSettings callSettings = null)

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

Parameters
Name Description
name string

Required. The name of the NasJob to cancel. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]";
// Make the request
jobServiceClient.CancelNasJob(name);

CancelNasJobAsync(CancelNasJobRequest, CallSettings)

public virtual Task CancelNasJobAsync(CancelNasJobRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request CancelNasJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CancelNasJobRequest request = new CancelNasJobRequest
{
    NasJobName = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]"),
};
// Make the request
await jobServiceClient.CancelNasJobAsync(request);

CancelNasJobAsync(CancelNasJobRequest, CancellationToken)

public virtual Task CancelNasJobAsync(CancelNasJobRequest request, CancellationToken cancellationToken)

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

Parameters
Name Description
request CancelNasJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CancelNasJobRequest request = new CancelNasJobRequest
{
    NasJobName = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]"),
};
// Make the request
await jobServiceClient.CancelNasJobAsync(request);

CancelNasJobAsync(NasJobName, CallSettings)

public virtual Task CancelNasJobAsync(NasJobName name, CallSettings callSettings = null)

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

Parameters
Name Description
name NasJobName

Required. The name of the NasJob to cancel. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
NasJobName name = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]");
// Make the request
await jobServiceClient.CancelNasJobAsync(name);

CancelNasJobAsync(NasJobName, CancellationToken)

public virtual Task CancelNasJobAsync(NasJobName name, CancellationToken cancellationToken)

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

Parameters
Name Description
name NasJobName

Required. The name of the NasJob to cancel. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
NasJobName name = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]");
// Make the request
await jobServiceClient.CancelNasJobAsync(name);

CancelNasJobAsync(string, CallSettings)

public virtual Task CancelNasJobAsync(string name, CallSettings callSettings = null)

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

Parameters
Name Description
name string

Required. The name of the NasJob to cancel. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]";
// Make the request
await jobServiceClient.CancelNasJobAsync(name);

CancelNasJobAsync(string, CancellationToken)

public virtual Task CancelNasJobAsync(string name, CancellationToken cancellationToken)

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

Parameters
Name Description
name string

Required. The name of the NasJob to cancel. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]";
// Make the request
await jobServiceClient.CancelNasJobAsync(name);

Create()

public static JobServiceClient Create()

Synchronously creates a JobServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use JobServiceClientBuilder.

Returns
Type Description
JobServiceClient

The created JobServiceClient.

CreateAsync(CancellationToken)

public static Task<JobServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a JobServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use JobServiceClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskJobServiceClient

The task representing the created JobServiceClient.

CreateBatchPredictionJob(LocationName, BatchPredictionJob, CallSettings)

public virtual BatchPredictionJob CreateBatchPredictionJob(LocationName parent, BatchPredictionJob batchPredictionJob, CallSettings callSettings = null)

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

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the BatchPredictionJob in. Format: projects/{project}/locations/{location}

batchPredictionJob BatchPredictionJob

Required. The BatchPredictionJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchPredictionJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BatchPredictionJob batchPredictionJob = new BatchPredictionJob();
// Make the request
BatchPredictionJob response = jobServiceClient.CreateBatchPredictionJob(parent, batchPredictionJob);

CreateBatchPredictionJob(CreateBatchPredictionJobRequest, CallSettings)

public virtual BatchPredictionJob CreateBatchPredictionJob(CreateBatchPredictionJobRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request CreateBatchPredictionJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchPredictionJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CreateBatchPredictionJobRequest request = new CreateBatchPredictionJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BatchPredictionJob = new BatchPredictionJob(),
};
// Make the request
BatchPredictionJob response = jobServiceClient.CreateBatchPredictionJob(request);

CreateBatchPredictionJob(string, BatchPredictionJob, CallSettings)

public virtual BatchPredictionJob CreateBatchPredictionJob(string parent, BatchPredictionJob batchPredictionJob, CallSettings callSettings = null)

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

Parameters
Name Description
parent string

Required. The resource name of the Location to create the BatchPredictionJob in. Format: projects/{project}/locations/{location}

batchPredictionJob BatchPredictionJob

Required. The BatchPredictionJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchPredictionJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BatchPredictionJob batchPredictionJob = new BatchPredictionJob();
// Make the request
BatchPredictionJob response = jobServiceClient.CreateBatchPredictionJob(parent, batchPredictionJob);

CreateBatchPredictionJobAsync(LocationName, BatchPredictionJob, CallSettings)

public virtual Task<BatchPredictionJob> CreateBatchPredictionJobAsync(LocationName parent, BatchPredictionJob batchPredictionJob, CallSettings callSettings = null)

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

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the BatchPredictionJob in. Format: projects/{project}/locations/{location}

batchPredictionJob BatchPredictionJob

Required. The BatchPredictionJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBatchPredictionJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BatchPredictionJob batchPredictionJob = new BatchPredictionJob();
// Make the request
BatchPredictionJob response = await jobServiceClient.CreateBatchPredictionJobAsync(parent, batchPredictionJob);

CreateBatchPredictionJobAsync(LocationName, BatchPredictionJob, CancellationToken)

public virtual Task<BatchPredictionJob> CreateBatchPredictionJobAsync(LocationName parent, BatchPredictionJob batchPredictionJob, CancellationToken cancellationToken)

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

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the BatchPredictionJob in. Format: projects/{project}/locations/{location}

batchPredictionJob BatchPredictionJob

Required. The BatchPredictionJob to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBatchPredictionJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BatchPredictionJob batchPredictionJob = new BatchPredictionJob();
// Make the request
BatchPredictionJob response = await jobServiceClient.CreateBatchPredictionJobAsync(parent, batchPredictionJob);

CreateBatchPredictionJobAsync(CreateBatchPredictionJobRequest, CallSettings)

public virtual Task<BatchPredictionJob> CreateBatchPredictionJobAsync(CreateBatchPredictionJobRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request CreateBatchPredictionJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBatchPredictionJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateBatchPredictionJobRequest request = new CreateBatchPredictionJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BatchPredictionJob = new BatchPredictionJob(),
};
// Make the request
BatchPredictionJob response = await jobServiceClient.CreateBatchPredictionJobAsync(request);

CreateBatchPredictionJobAsync(CreateBatchPredictionJobRequest, CancellationToken)

public virtual Task<BatchPredictionJob> CreateBatchPredictionJobAsync(CreateBatchPredictionJobRequest request, CancellationToken cancellationToken)

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

Parameters
Name Description
request CreateBatchPredictionJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBatchPredictionJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateBatchPredictionJobRequest request = new CreateBatchPredictionJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BatchPredictionJob = new BatchPredictionJob(),
};
// Make the request
BatchPredictionJob response = await jobServiceClient.CreateBatchPredictionJobAsync(request);

CreateBatchPredictionJobAsync(string, BatchPredictionJob, CallSettings)

public virtual Task<BatchPredictionJob> CreateBatchPredictionJobAsync(string parent, BatchPredictionJob batchPredictionJob, CallSettings callSettings = null)

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

Parameters
Name Description
parent string

Required. The resource name of the Location to create the BatchPredictionJob in. Format: projects/{project}/locations/{location}

batchPredictionJob BatchPredictionJob

Required. The BatchPredictionJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBatchPredictionJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BatchPredictionJob batchPredictionJob = new BatchPredictionJob();
// Make the request
BatchPredictionJob response = await jobServiceClient.CreateBatchPredictionJobAsync(parent, batchPredictionJob);

CreateBatchPredictionJobAsync(string, BatchPredictionJob, CancellationToken)

public virtual Task<BatchPredictionJob> CreateBatchPredictionJobAsync(string parent, BatchPredictionJob batchPredictionJob, CancellationToken cancellationToken)

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

Parameters
Name Description
parent string

Required. The resource name of the Location to create the BatchPredictionJob in. Format: projects/{project}/locations/{location}

batchPredictionJob BatchPredictionJob

Required. The BatchPredictionJob to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBatchPredictionJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BatchPredictionJob batchPredictionJob = new BatchPredictionJob();
// Make the request
BatchPredictionJob response = await jobServiceClient.CreateBatchPredictionJobAsync(parent, batchPredictionJob);

CreateCustomJob(LocationName, CustomJob, CallSettings)

public virtual CustomJob CreateCustomJob(LocationName parent, CustomJob customJob, CallSettings callSettings = null)

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

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the CustomJob in. Format: projects/{project}/locations/{location}

customJob CustomJob

Required. The CustomJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CustomJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CustomJob customJob = new CustomJob();
// Make the request
CustomJob response = jobServiceClient.CreateCustomJob(parent, customJob);

CreateCustomJob(CreateCustomJobRequest, CallSettings)

public virtual CustomJob CreateCustomJob(CreateCustomJobRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request CreateCustomJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CustomJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CreateCustomJobRequest request = new CreateCustomJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CustomJob = new CustomJob(),
};
// Make the request
CustomJob response = jobServiceClient.CreateCustomJob(request);

CreateCustomJob(string, CustomJob, CallSettings)

public virtual CustomJob CreateCustomJob(string parent, CustomJob customJob, CallSettings callSettings = null)

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

Parameters
Name Description
parent string

Required. The resource name of the Location to create the CustomJob in. Format: projects/{project}/locations/{location}

customJob CustomJob

Required. The CustomJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CustomJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CustomJob customJob = new CustomJob();
// Make the request
CustomJob response = jobServiceClient.CreateCustomJob(parent, customJob);

CreateCustomJobAsync(LocationName, CustomJob, CallSettings)

public virtual Task<CustomJob> CreateCustomJobAsync(LocationName parent, CustomJob customJob, CallSettings callSettings = null)

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

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the CustomJob in. Format: projects/{project}/locations/{location}

customJob CustomJob

Required. The CustomJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCustomJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CustomJob customJob = new CustomJob();
// Make the request
CustomJob response = await jobServiceClient.CreateCustomJobAsync(parent, customJob);

CreateCustomJobAsync(LocationName, CustomJob, CancellationToken)

public virtual Task<CustomJob> CreateCustomJobAsync(LocationName parent, CustomJob customJob, CancellationToken cancellationToken)

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

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the CustomJob in. Format: projects/{project}/locations/{location}

customJob CustomJob

Required. The CustomJob to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskCustomJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CustomJob customJob = new CustomJob();
// Make the request
CustomJob response = await jobServiceClient.CreateCustomJobAsync(parent, customJob);

CreateCustomJobAsync(CreateCustomJobRequest, CallSettings)

public virtual Task<CustomJob> CreateCustomJobAsync(CreateCustomJobRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request CreateCustomJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCustomJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCustomJobRequest request = new CreateCustomJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CustomJob = new CustomJob(),
};
// Make the request
CustomJob response = await jobServiceClient.CreateCustomJobAsync(request);

CreateCustomJobAsync(CreateCustomJobRequest, CancellationToken)

public virtual Task<CustomJob> CreateCustomJobAsync(CreateCustomJobRequest request, CancellationToken cancellationToken)

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

Parameters
Name Description
request CreateCustomJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskCustomJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCustomJobRequest request = new CreateCustomJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CustomJob = new CustomJob(),
};
// Make the request
CustomJob response = await jobServiceClient.CreateCustomJobAsync(request);

CreateCustomJobAsync(string, CustomJob, CallSettings)

public virtual Task<CustomJob> CreateCustomJobAsync(string parent, CustomJob customJob, CallSettings callSettings = null)

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

Parameters
Name Description
parent string

Required. The resource name of the Location to create the CustomJob in. Format: projects/{project}/locations/{location}

customJob CustomJob

Required. The CustomJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCustomJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CustomJob customJob = new CustomJob();
// Make the request
CustomJob response = await jobServiceClient.CreateCustomJobAsync(parent, customJob);

CreateCustomJobAsync(string, CustomJob, CancellationToken)

public virtual Task<CustomJob> CreateCustomJobAsync(string parent, CustomJob customJob, CancellationToken cancellationToken)

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

Parameters
Name Description
parent string

Required. The resource name of the Location to create the CustomJob in. Format: projects/{project}/locations/{location}

customJob CustomJob

Required. The CustomJob to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskCustomJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CustomJob customJob = new CustomJob();
// Make the request
CustomJob response = await jobServiceClient.CreateCustomJobAsync(parent, customJob);

CreateDataLabelingJob(LocationName, DataLabelingJob, CallSettings)

public virtual DataLabelingJob CreateDataLabelingJob(LocationName parent, DataLabelingJob dataLabelingJob, CallSettings callSettings = null)

Creates a DataLabelingJob.

Parameters
Name Description
parent LocationName

Required. The parent of the DataLabelingJob. Format: projects/{project}/locations/{location}

dataLabelingJob DataLabelingJob

Required. The DataLabelingJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataLabelingJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DataLabelingJob dataLabelingJob = new DataLabelingJob();
// Make the request
DataLabelingJob response = jobServiceClient.CreateDataLabelingJob(parent, dataLabelingJob);

CreateDataLabelingJob(CreateDataLabelingJobRequest, CallSettings)

public virtual DataLabelingJob CreateDataLabelingJob(CreateDataLabelingJobRequest request, CallSettings callSettings = null)

Creates a DataLabelingJob.

Parameters
Name Description
request CreateDataLabelingJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataLabelingJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CreateDataLabelingJobRequest request = new CreateDataLabelingJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DataLabelingJob = new DataLabelingJob(),
};
// Make the request
DataLabelingJob response = jobServiceClient.CreateDataLabelingJob(request);

CreateDataLabelingJob(string, DataLabelingJob, CallSettings)

public virtual DataLabelingJob CreateDataLabelingJob(string parent, DataLabelingJob dataLabelingJob, CallSettings callSettings = null)

Creates a DataLabelingJob.

Parameters
Name Description
parent string

Required. The parent of the DataLabelingJob. Format: projects/{project}/locations/{location}

dataLabelingJob DataLabelingJob

Required. The DataLabelingJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataLabelingJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DataLabelingJob dataLabelingJob = new DataLabelingJob();
// Make the request
DataLabelingJob response = jobServiceClient.CreateDataLabelingJob(parent, dataLabelingJob);

CreateDataLabelingJobAsync(LocationName, DataLabelingJob, CallSettings)

public virtual Task<DataLabelingJob> CreateDataLabelingJobAsync(LocationName parent, DataLabelingJob dataLabelingJob, CallSettings callSettings = null)

Creates a DataLabelingJob.

Parameters
Name Description
parent LocationName

Required. The parent of the DataLabelingJob. Format: projects/{project}/locations/{location}

dataLabelingJob DataLabelingJob

Required. The DataLabelingJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataLabelingJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DataLabelingJob dataLabelingJob = new DataLabelingJob();
// Make the request
DataLabelingJob response = await jobServiceClient.CreateDataLabelingJobAsync(parent, dataLabelingJob);

CreateDataLabelingJobAsync(LocationName, DataLabelingJob, CancellationToken)

public virtual Task<DataLabelingJob> CreateDataLabelingJobAsync(LocationName parent, DataLabelingJob dataLabelingJob, CancellationToken cancellationToken)

Creates a DataLabelingJob.

Parameters
Name Description
parent LocationName

Required. The parent of the DataLabelingJob. Format: projects/{project}/locations/{location}

dataLabelingJob DataLabelingJob

Required. The DataLabelingJob to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataLabelingJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DataLabelingJob dataLabelingJob = new DataLabelingJob();
// Make the request
DataLabelingJob response = await jobServiceClient.CreateDataLabelingJobAsync(parent, dataLabelingJob);

CreateDataLabelingJobAsync(CreateDataLabelingJobRequest, CallSettings)

public virtual Task<DataLabelingJob> CreateDataLabelingJobAsync(CreateDataLabelingJobRequest request, CallSettings callSettings = null)

Creates a DataLabelingJob.

Parameters
Name Description
request CreateDataLabelingJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataLabelingJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDataLabelingJobRequest request = new CreateDataLabelingJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DataLabelingJob = new DataLabelingJob(),
};
// Make the request
DataLabelingJob response = await jobServiceClient.CreateDataLabelingJobAsync(request);

CreateDataLabelingJobAsync(CreateDataLabelingJobRequest, CancellationToken)

public virtual Task<DataLabelingJob> CreateDataLabelingJobAsync(CreateDataLabelingJobRequest request, CancellationToken cancellationToken)

Creates a DataLabelingJob.

Parameters
Name Description
request CreateDataLabelingJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataLabelingJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDataLabelingJobRequest request = new CreateDataLabelingJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DataLabelingJob = new DataLabelingJob(),
};
// Make the request
DataLabelingJob response = await jobServiceClient.CreateDataLabelingJobAsync(request);

CreateDataLabelingJobAsync(string, DataLabelingJob, CallSettings)

public virtual Task<DataLabelingJob> CreateDataLabelingJobAsync(string parent, DataLabelingJob dataLabelingJob, CallSettings callSettings = null)

Creates a DataLabelingJob.

Parameters
Name Description
parent string

Required. The parent of the DataLabelingJob. Format: projects/{project}/locations/{location}

dataLabelingJob DataLabelingJob

Required. The DataLabelingJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataLabelingJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DataLabelingJob dataLabelingJob = new DataLabelingJob();
// Make the request
DataLabelingJob response = await jobServiceClient.CreateDataLabelingJobAsync(parent, dataLabelingJob);

CreateDataLabelingJobAsync(string, DataLabelingJob, CancellationToken)

public virtual Task<DataLabelingJob> CreateDataLabelingJobAsync(string parent, DataLabelingJob dataLabelingJob, CancellationToken cancellationToken)

Creates a DataLabelingJob.

Parameters
Name Description
parent string

Required. The parent of the DataLabelingJob. Format: projects/{project}/locations/{location}

dataLabelingJob DataLabelingJob

Required. The DataLabelingJob to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataLabelingJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DataLabelingJob dataLabelingJob = new DataLabelingJob();
// Make the request
DataLabelingJob response = await jobServiceClient.CreateDataLabelingJobAsync(parent, dataLabelingJob);

CreateHyperparameterTuningJob(LocationName, HyperparameterTuningJob, CallSettings)

public virtual HyperparameterTuningJob CreateHyperparameterTuningJob(LocationName parent, HyperparameterTuningJob hyperparameterTuningJob, CallSettings callSettings = null)

Creates a HyperparameterTuningJob

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: projects/{project}/locations/{location}

hyperparameterTuningJob HyperparameterTuningJob

Required. The HyperparameterTuningJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HyperparameterTuningJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
HyperparameterTuningJob hyperparameterTuningJob = new HyperparameterTuningJob();
// Make the request
HyperparameterTuningJob response = jobServiceClient.CreateHyperparameterTuningJob(parent, hyperparameterTuningJob);

CreateHyperparameterTuningJob(CreateHyperparameterTuningJobRequest, CallSettings)

public virtual HyperparameterTuningJob CreateHyperparameterTuningJob(CreateHyperparameterTuningJobRequest request, CallSettings callSettings = null)

Creates a HyperparameterTuningJob

Parameters
Name Description
request CreateHyperparameterTuningJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HyperparameterTuningJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CreateHyperparameterTuningJobRequest request = new CreateHyperparameterTuningJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    HyperparameterTuningJob = new HyperparameterTuningJob(),
};
// Make the request
HyperparameterTuningJob response = jobServiceClient.CreateHyperparameterTuningJob(request);

CreateHyperparameterTuningJob(string, HyperparameterTuningJob, CallSettings)

public virtual HyperparameterTuningJob CreateHyperparameterTuningJob(string parent, HyperparameterTuningJob hyperparameterTuningJob, CallSettings callSettings = null)

Creates a HyperparameterTuningJob

Parameters
Name Description
parent string

Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: projects/{project}/locations/{location}

hyperparameterTuningJob HyperparameterTuningJob

Required. The HyperparameterTuningJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HyperparameterTuningJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
HyperparameterTuningJob hyperparameterTuningJob = new HyperparameterTuningJob();
// Make the request
HyperparameterTuningJob response = jobServiceClient.CreateHyperparameterTuningJob(parent, hyperparameterTuningJob);

CreateHyperparameterTuningJobAsync(LocationName, HyperparameterTuningJob, CallSettings)

public virtual Task<HyperparameterTuningJob> CreateHyperparameterTuningJobAsync(LocationName parent, HyperparameterTuningJob hyperparameterTuningJob, CallSettings callSettings = null)

Creates a HyperparameterTuningJob

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: projects/{project}/locations/{location}

hyperparameterTuningJob HyperparameterTuningJob

Required. The HyperparameterTuningJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHyperparameterTuningJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
HyperparameterTuningJob hyperparameterTuningJob = new HyperparameterTuningJob();
// Make the request
HyperparameterTuningJob response = await jobServiceClient.CreateHyperparameterTuningJobAsync(parent, hyperparameterTuningJob);

CreateHyperparameterTuningJobAsync(LocationName, HyperparameterTuningJob, CancellationToken)

public virtual Task<HyperparameterTuningJob> CreateHyperparameterTuningJobAsync(LocationName parent, HyperparameterTuningJob hyperparameterTuningJob, CancellationToken cancellationToken)

Creates a HyperparameterTuningJob

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: projects/{project}/locations/{location}

hyperparameterTuningJob HyperparameterTuningJob

Required. The HyperparameterTuningJob to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHyperparameterTuningJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
HyperparameterTuningJob hyperparameterTuningJob = new HyperparameterTuningJob();
// Make the request
HyperparameterTuningJob response = await jobServiceClient.CreateHyperparameterTuningJobAsync(parent, hyperparameterTuningJob);

CreateHyperparameterTuningJobAsync(CreateHyperparameterTuningJobRequest, CallSettings)

public virtual Task<HyperparameterTuningJob> CreateHyperparameterTuningJobAsync(CreateHyperparameterTuningJobRequest request, CallSettings callSettings = null)

Creates a HyperparameterTuningJob

Parameters
Name Description
request CreateHyperparameterTuningJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHyperparameterTuningJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateHyperparameterTuningJobRequest request = new CreateHyperparameterTuningJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    HyperparameterTuningJob = new HyperparameterTuningJob(),
};
// Make the request
HyperparameterTuningJob response = await jobServiceClient.CreateHyperparameterTuningJobAsync(request);

CreateHyperparameterTuningJobAsync(CreateHyperparameterTuningJobRequest, CancellationToken)

public virtual Task<HyperparameterTuningJob> CreateHyperparameterTuningJobAsync(CreateHyperparameterTuningJobRequest request, CancellationToken cancellationToken)

Creates a HyperparameterTuningJob

Parameters
Name Description
request CreateHyperparameterTuningJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHyperparameterTuningJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateHyperparameterTuningJobRequest request = new CreateHyperparameterTuningJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    HyperparameterTuningJob = new HyperparameterTuningJob(),
};
// Make the request
HyperparameterTuningJob response = await jobServiceClient.CreateHyperparameterTuningJobAsync(request);

CreateHyperparameterTuningJobAsync(string, HyperparameterTuningJob, CallSettings)

public virtual Task<HyperparameterTuningJob> CreateHyperparameterTuningJobAsync(string parent, HyperparameterTuningJob hyperparameterTuningJob, CallSettings callSettings = null)

Creates a HyperparameterTuningJob

Parameters
Name Description
parent string

Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: projects/{project}/locations/{location}

hyperparameterTuningJob HyperparameterTuningJob

Required. The HyperparameterTuningJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHyperparameterTuningJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
HyperparameterTuningJob hyperparameterTuningJob = new HyperparameterTuningJob();
// Make the request
HyperparameterTuningJob response = await jobServiceClient.CreateHyperparameterTuningJobAsync(parent, hyperparameterTuningJob);

CreateHyperparameterTuningJobAsync(string, HyperparameterTuningJob, CancellationToken)

public virtual Task<HyperparameterTuningJob> CreateHyperparameterTuningJobAsync(string parent, HyperparameterTuningJob hyperparameterTuningJob, CancellationToken cancellationToken)

Creates a HyperparameterTuningJob

Parameters
Name Description
parent string

Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: projects/{project}/locations/{location}

hyperparameterTuningJob HyperparameterTuningJob

Required. The HyperparameterTuningJob to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHyperparameterTuningJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
HyperparameterTuningJob hyperparameterTuningJob = new HyperparameterTuningJob();
// Make the request
HyperparameterTuningJob response = await jobServiceClient.CreateHyperparameterTuningJobAsync(parent, hyperparameterTuningJob);

CreateModelDeploymentMonitoringJob(LocationName, ModelDeploymentMonitoringJob, CallSettings)

public virtual ModelDeploymentMonitoringJob CreateModelDeploymentMonitoringJob(LocationName parent, ModelDeploymentMonitoringJob modelDeploymentMonitoringJob, CallSettings callSettings = null)

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

Parameters
Name Description
parent LocationName

Required. The parent of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}

modelDeploymentMonitoringJob ModelDeploymentMonitoringJob

Required. The ModelDeploymentMonitoringJob to create

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelDeploymentMonitoringJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob();
// Make the request
ModelDeploymentMonitoringJob response = jobServiceClient.CreateModelDeploymentMonitoringJob(parent, modelDeploymentMonitoringJob);

CreateModelDeploymentMonitoringJob(CreateModelDeploymentMonitoringJobRequest, CallSettings)

public virtual ModelDeploymentMonitoringJob CreateModelDeploymentMonitoringJob(CreateModelDeploymentMonitoringJobRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request CreateModelDeploymentMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelDeploymentMonitoringJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CreateModelDeploymentMonitoringJobRequest request = new CreateModelDeploymentMonitoringJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ModelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob(),
};
// Make the request
ModelDeploymentMonitoringJob response = jobServiceClient.CreateModelDeploymentMonitoringJob(request);

CreateModelDeploymentMonitoringJob(string, ModelDeploymentMonitoringJob, CallSettings)

public virtual ModelDeploymentMonitoringJob CreateModelDeploymentMonitoringJob(string parent, ModelDeploymentMonitoringJob modelDeploymentMonitoringJob, CallSettings callSettings = null)

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

Parameters
Name Description
parent string

Required. The parent of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}

modelDeploymentMonitoringJob ModelDeploymentMonitoringJob

Required. The ModelDeploymentMonitoringJob to create

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelDeploymentMonitoringJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob();
// Make the request
ModelDeploymentMonitoringJob response = jobServiceClient.CreateModelDeploymentMonitoringJob(parent, modelDeploymentMonitoringJob);

CreateModelDeploymentMonitoringJobAsync(LocationName, ModelDeploymentMonitoringJob, CallSettings)

public virtual Task<ModelDeploymentMonitoringJob> CreateModelDeploymentMonitoringJobAsync(LocationName parent, ModelDeploymentMonitoringJob modelDeploymentMonitoringJob, CallSettings callSettings = null)

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

Parameters
Name Description
parent LocationName

Required. The parent of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}

modelDeploymentMonitoringJob ModelDeploymentMonitoringJob

Required. The ModelDeploymentMonitoringJob to create

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelDeploymentMonitoringJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob();
// Make the request
ModelDeploymentMonitoringJob response = await jobServiceClient.CreateModelDeploymentMonitoringJobAsync(parent, modelDeploymentMonitoringJob);

CreateModelDeploymentMonitoringJobAsync(LocationName, ModelDeploymentMonitoringJob, CancellationToken)

public virtual Task<ModelDeploymentMonitoringJob> CreateModelDeploymentMonitoringJobAsync(LocationName parent, ModelDeploymentMonitoringJob modelDeploymentMonitoringJob, CancellationToken cancellationToken)

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

Parameters
Name Description
parent LocationName

Required. The parent of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}

modelDeploymentMonitoringJob ModelDeploymentMonitoringJob

Required. The ModelDeploymentMonitoringJob to create

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelDeploymentMonitoringJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob();
// Make the request
ModelDeploymentMonitoringJob response = await jobServiceClient.CreateModelDeploymentMonitoringJobAsync(parent, modelDeploymentMonitoringJob);

CreateModelDeploymentMonitoringJobAsync(CreateModelDeploymentMonitoringJobRequest, CallSettings)

public virtual Task<ModelDeploymentMonitoringJob> CreateModelDeploymentMonitoringJobAsync(CreateModelDeploymentMonitoringJobRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request CreateModelDeploymentMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelDeploymentMonitoringJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateModelDeploymentMonitoringJobRequest request = new CreateModelDeploymentMonitoringJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ModelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob(),
};
// Make the request
ModelDeploymentMonitoringJob response = await jobServiceClient.CreateModelDeploymentMonitoringJobAsync(request);

CreateModelDeploymentMonitoringJobAsync(CreateModelDeploymentMonitoringJobRequest, CancellationToken)

public virtual Task<ModelDeploymentMonitoringJob> CreateModelDeploymentMonitoringJobAsync(CreateModelDeploymentMonitoringJobRequest request, CancellationToken cancellationToken)

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

Parameters
Name Description
request CreateModelDeploymentMonitoringJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelDeploymentMonitoringJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateModelDeploymentMonitoringJobRequest request = new CreateModelDeploymentMonitoringJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ModelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob(),
};
// Make the request
ModelDeploymentMonitoringJob response = await jobServiceClient.CreateModelDeploymentMonitoringJobAsync(request);

CreateModelDeploymentMonitoringJobAsync(string, ModelDeploymentMonitoringJob, CallSettings)

public virtual Task<ModelDeploymentMonitoringJob> CreateModelDeploymentMonitoringJobAsync(string parent, ModelDeploymentMonitoringJob modelDeploymentMonitoringJob, CallSettings callSettings = null)

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

Parameters
Name Description
parent string

Required. The parent of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}

modelDeploymentMonitoringJob ModelDeploymentMonitoringJob

Required. The ModelDeploymentMonitoringJob to create

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelDeploymentMonitoringJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob();
// Make the request
ModelDeploymentMonitoringJob response = await jobServiceClient.CreateModelDeploymentMonitoringJobAsync(parent, modelDeploymentMonitoringJob);

CreateModelDeploymentMonitoringJobAsync(string, ModelDeploymentMonitoringJob, CancellationToken)

public virtual Task<ModelDeploymentMonitoringJob> CreateModelDeploymentMonitoringJobAsync(string parent, ModelDeploymentMonitoringJob modelDeploymentMonitoringJob, CancellationToken cancellationToken)

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

Parameters
Name Description
parent string

Required. The parent of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}

modelDeploymentMonitoringJob ModelDeploymentMonitoringJob

Required. The ModelDeploymentMonitoringJob to create

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelDeploymentMonitoringJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob();
// Make the request
ModelDeploymentMonitoringJob response = await jobServiceClient.CreateModelDeploymentMonitoringJobAsync(parent, modelDeploymentMonitoringJob);

CreateNasJob(LocationName, NasJob, CallSettings)

public virtual NasJob CreateNasJob(LocationName parent, NasJob nasJob, CallSettings callSettings = null)

Creates a NasJob

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the NasJob in. Format: projects/{project}/locations/{location}

nasJob NasJob

Required. The NasJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
NasJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
NasJob nasJob = new NasJob();
// Make the request
NasJob response = jobServiceClient.CreateNasJob(parent, nasJob);

CreateNasJob(CreateNasJobRequest, CallSettings)

public virtual NasJob CreateNasJob(CreateNasJobRequest request, CallSettings callSettings = null)

Creates a NasJob

Parameters
Name Description
request CreateNasJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
NasJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CreateNasJobRequest request = new CreateNasJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    NasJob = new NasJob(),
};
// Make the request
NasJob response = jobServiceClient.CreateNasJob(request);

CreateNasJob(string, NasJob, CallSettings)

public virtual NasJob CreateNasJob(string parent, NasJob nasJob, CallSettings callSettings = null)

Creates a NasJob

Parameters
Name Description
parent string

Required. The resource name of the Location to create the NasJob in. Format: projects/{project}/locations/{location}

nasJob NasJob

Required. The NasJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
NasJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
NasJob nasJob = new NasJob();
// Make the request
NasJob response = jobServiceClient.CreateNasJob(parent, nasJob);

CreateNasJobAsync(LocationName, NasJob, CallSettings)

public virtual Task<NasJob> CreateNasJobAsync(LocationName parent, NasJob nasJob, CallSettings callSettings = null)

Creates a NasJob

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the NasJob in. Format: projects/{project}/locations/{location}

nasJob NasJob

Required. The NasJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNasJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
NasJob nasJob = new NasJob();
// Make the request
NasJob response = await jobServiceClient.CreateNasJobAsync(parent, nasJob);

CreateNasJobAsync(LocationName, NasJob, CancellationToken)

public virtual Task<NasJob> CreateNasJobAsync(LocationName parent, NasJob nasJob, CancellationToken cancellationToken)

Creates a NasJob

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the NasJob in. Format: projects/{project}/locations/{location}

nasJob NasJob

Required. The NasJob to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskNasJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
NasJob nasJob = new NasJob();
// Make the request
NasJob response = await jobServiceClient.CreateNasJobAsync(parent, nasJob);

CreateNasJobAsync(CreateNasJobRequest, CallSettings)

public virtual Task<NasJob> CreateNasJobAsync(CreateNasJobRequest request, CallSettings callSettings = null)

Creates a NasJob

Parameters
Name Description
request CreateNasJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNasJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateNasJobRequest request = new CreateNasJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    NasJob = new NasJob(),
};
// Make the request
NasJob response = await jobServiceClient.CreateNasJobAsync(request);

CreateNasJobAsync(CreateNasJobRequest, CancellationToken)

public virtual Task<NasJob> CreateNasJobAsync(CreateNasJobRequest request, CancellationToken cancellationToken)

Creates a NasJob

Parameters
Name Description
request CreateNasJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskNasJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateNasJobRequest request = new CreateNasJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    NasJob = new NasJob(),
};
// Make the request
NasJob response = await jobServiceClient.CreateNasJobAsync(request);

CreateNasJobAsync(string, NasJob, CallSettings)

public virtual Task<NasJob> CreateNasJobAsync(string parent, NasJob nasJob, CallSettings callSettings = null)

Creates a NasJob

Parameters
Name Description
parent string

Required. The resource name of the Location to create the NasJob in. Format: projects/{project}/locations/{location}

nasJob NasJob

Required. The NasJob to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNasJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
NasJob nasJob = new NasJob();
// Make the request
NasJob response = await jobServiceClient.CreateNasJobAsync(parent, nasJob);

CreateNasJobAsync(string, NasJob, CancellationToken)

public virtual Task<NasJob> CreateNasJobAsync(string parent, NasJob nasJob, CancellationToken cancellationToken)

Creates a NasJob

Parameters
Name Description
parent string

Required. The resource name of the Location to create the NasJob in. Format: projects/{project}/locations/{location}

nasJob NasJob

Required. The NasJob to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskNasJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
NasJob nasJob = new NasJob();
// Make the request
NasJob response = await jobServiceClient.CreateNasJobAsync(parent, nasJob);

DeleteBatchPredictionJob(BatchPredictionJobName, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteBatchPredictionJob(BatchPredictionJobName name, CallSettings callSettings = null)

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

Parameters
Name Description
name BatchPredictionJobName

Required. The name of the BatchPredictionJob resource to be deleted. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
BatchPredictionJobName name = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteBatchPredictionJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteBatchPredictionJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBatchPredictionJob(DeleteBatchPredictionJobRequest, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteBatchPredictionJob(DeleteBatchPredictionJobRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request DeleteBatchPredictionJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
DeleteBatchPredictionJobRequest request = new DeleteBatchPredictionJobRequest
{
    BatchPredictionJobName = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteBatchPredictionJob(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteBatchPredictionJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBatchPredictionJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteBatchPredictionJob(string name, CallSettings callSettings = null)

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

Parameters
Name Description
name string

Required. The name of the BatchPredictionJob resource to be deleted. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/batchPredictionJobs/[BATCH_PREDICTION_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteBatchPredictionJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteBatchPredictionJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBatchPredictionJobAsync(BatchPredictionJobName, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteBatchPredictionJobAsync(BatchPredictionJobName name, CallSettings callSettings = null)

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

Parameters
Name Description
name BatchPredictionJobName

Required. The name of the BatchPredictionJob resource to be deleted. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPredictionJobName name = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteBatchPredictionJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteBatchPredictionJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBatchPredictionJobAsync(BatchPredictionJobName, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteBatchPredictionJobAsync(BatchPredictionJobName name, CancellationToken cancellationToken)

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

Parameters
Name Description
name BatchPredictionJobName

Required. The name of the BatchPredictionJob resource to be deleted. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPredictionJobName name = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteBatchPredictionJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteBatchPredictionJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBatchPredictionJobAsync(DeleteBatchPredictionJobRequest, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteBatchPredictionJobAsync(DeleteBatchPredictionJobRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request DeleteBatchPredictionJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteBatchPredictionJobRequest request = new DeleteBatchPredictionJobRequest
{
    BatchPredictionJobName = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteBatchPredictionJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteBatchPredictionJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBatchPredictionJobAsync(DeleteBatchPredictionJobRequest, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteBatchPredictionJobAsync(DeleteBatchPredictionJobRequest request, CancellationToken cancellationToken)

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

Parameters
Name Description
request DeleteBatchPredictionJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteBatchPredictionJobRequest request = new DeleteBatchPredictionJobRequest
{
    BatchPredictionJobName = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteBatchPredictionJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteBatchPredictionJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBatchPredictionJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteBatchPredictionJobAsync(string name, CallSettings callSettings = null)

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

Parameters
Name Description
name string

Required. The name of the BatchPredictionJob resource to be deleted. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/batchPredictionJobs/[BATCH_PREDICTION_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteBatchPredictionJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteBatchPredictionJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBatchPredictionJobAsync(string, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteBatchPredictionJobAsync(string name, CancellationToken cancellationToken)

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

Parameters
Name Description
name string

Required. The name of the BatchPredictionJob resource to be deleted. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/batchPredictionJobs/[BATCH_PREDICTION_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteBatchPredictionJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteBatchPredictionJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteCustomJob(CustomJobName, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteCustomJob(CustomJobName name, CallSettings callSettings = null)

Deletes a CustomJob.

Parameters
Name Description
name CustomJobName

Required. The name of the CustomJob resource to be deleted. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CustomJobName name = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteCustomJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteCustomJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteCustomJob(DeleteCustomJobRequest, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteCustomJob(DeleteCustomJobRequest request, CallSettings callSettings = null)

Deletes a CustomJob.

Parameters
Name Description
request DeleteCustomJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
DeleteCustomJobRequest request = new DeleteCustomJobRequest
{
    CustomJobName = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteCustomJob(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteCustomJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteCustomJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteCustomJob(string name, CallSettings callSettings = null)

Deletes a CustomJob.

Parameters
Name Description
name string

Required. The name of the CustomJob resource to be deleted. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/customJobs/[CUSTOM_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteCustomJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteCustomJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteCustomJobAsync(CustomJobName, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteCustomJobAsync(CustomJobName name, CallSettings callSettings = null)

Deletes a CustomJob.

Parameters
Name Description
name CustomJobName

Required. The name of the CustomJob resource to be deleted. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CustomJobName name = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteCustomJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteCustomJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteCustomJobAsync(CustomJobName, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteCustomJobAsync(CustomJobName name, CancellationToken cancellationToken)

Deletes a CustomJob.

Parameters
Name Description
name CustomJobName

Required. The name of the CustomJob resource to be deleted. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CustomJobName name = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteCustomJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteCustomJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteCustomJobAsync(DeleteCustomJobRequest, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteCustomJobAsync(DeleteCustomJobRequest request, CallSettings callSettings = null)

Deletes a CustomJob.

Parameters
Name Description
request DeleteCustomJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCustomJobRequest request = new DeleteCustomJobRequest
{
    CustomJobName = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteCustomJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteCustomJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteCustomJobAsync(DeleteCustomJobRequest, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteCustomJobAsync(DeleteCustomJobRequest request, CancellationToken cancellationToken)

Deletes a CustomJob.

Parameters
Name Description
request DeleteCustomJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCustomJobRequest request = new DeleteCustomJobRequest
{
    CustomJobName = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteCustomJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteCustomJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteCustomJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteCustomJobAsync(string name, CallSettings callSettings = null)

Deletes a CustomJob.

Parameters
Name Description
name string

Required. The name of the CustomJob resource to be deleted. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/customJobs/[CUSTOM_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteCustomJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteCustomJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteCustomJobAsync(string, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteCustomJobAsync(string name, CancellationToken cancellationToken)

Deletes a CustomJob.

Parameters
Name Description
name string

Required. The name of the CustomJob resource to be deleted. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/customJobs/[CUSTOM_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteCustomJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteCustomJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDataLabelingJob(DataLabelingJobName, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteDataLabelingJob(DataLabelingJobName name, CallSettings callSettings = null)

Deletes a DataLabelingJob.

Parameters
Name Description
name DataLabelingJobName

Required. The name of the DataLabelingJob to be deleted. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
DataLabelingJobName name = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteDataLabelingJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteDataLabelingJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDataLabelingJob(DeleteDataLabelingJobRequest, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteDataLabelingJob(DeleteDataLabelingJobRequest request, CallSettings callSettings = null)

Deletes a DataLabelingJob.

Parameters
Name Description
request DeleteDataLabelingJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
DeleteDataLabelingJobRequest request = new DeleteDataLabelingJobRequest
{
    DataLabelingJobName = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteDataLabelingJob(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteDataLabelingJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDataLabelingJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteDataLabelingJob(string name, CallSettings callSettings = null)

Deletes a DataLabelingJob.

Parameters
Name Description
name string

Required. The name of the DataLabelingJob to be deleted. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataLabelingJobs/[DATA_LABELING_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteDataLabelingJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteDataLabelingJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDataLabelingJobAsync(DataLabelingJobName, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteDataLabelingJobAsync(DataLabelingJobName name, CallSettings callSettings = null)

Deletes a DataLabelingJob.

Parameters
Name Description
name DataLabelingJobName

Required. The name of the DataLabelingJob to be deleted. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DataLabelingJobName name = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteDataLabelingJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteDataLabelingJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDataLabelingJobAsync(DataLabelingJobName, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteDataLabelingJobAsync(DataLabelingJobName name, CancellationToken cancellationToken)

Deletes a DataLabelingJob.

Parameters
Name Description
name DataLabelingJobName

Required. The name of the DataLabelingJob to be deleted. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DataLabelingJobName name = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteDataLabelingJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteDataLabelingJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDataLabelingJobAsync(DeleteDataLabelingJobRequest, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteDataLabelingJobAsync(DeleteDataLabelingJobRequest request, CallSettings callSettings = null)

Deletes a DataLabelingJob.

Parameters
Name Description
request DeleteDataLabelingJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDataLabelingJobRequest request = new DeleteDataLabelingJobRequest
{
    DataLabelingJobName = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteDataLabelingJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteDataLabelingJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDataLabelingJobAsync(DeleteDataLabelingJobRequest, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteDataLabelingJobAsync(DeleteDataLabelingJobRequest request, CancellationToken cancellationToken)

Deletes a DataLabelingJob.

Parameters
Name Description
request DeleteDataLabelingJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDataLabelingJobRequest request = new DeleteDataLabelingJobRequest
{
    DataLabelingJobName = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteDataLabelingJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteDataLabelingJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDataLabelingJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteDataLabelingJobAsync(string name, CallSettings callSettings = null)

Deletes a DataLabelingJob.

Parameters
Name Description
name string

Required. The name of the DataLabelingJob to be deleted. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataLabelingJobs/[DATA_LABELING_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteDataLabelingJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteDataLabelingJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDataLabelingJobAsync(string, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteDataLabelingJobAsync(string name, CancellationToken cancellationToken)

Deletes a DataLabelingJob.

Parameters
Name Description
name string

Required. The name of the DataLabelingJob to be deleted. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataLabelingJobs/[DATA_LABELING_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteDataLabelingJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteDataLabelingJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteHyperparameterTuningJob(DeleteHyperparameterTuningJobRequest, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteHyperparameterTuningJob(DeleteHyperparameterTuningJobRequest request, CallSettings callSettings = null)

Deletes a HyperparameterTuningJob.

Parameters
Name Description
request DeleteHyperparameterTuningJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
DeleteHyperparameterTuningJobRequest request = new DeleteHyperparameterTuningJobRequest
{
    HyperparameterTuningJobName = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteHyperparameterTuningJob(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteHyperparameterTuningJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteHyperparameterTuningJob(HyperparameterTuningJobName, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteHyperparameterTuningJob(HyperparameterTuningJobName name, CallSettings callSettings = null)

Deletes a HyperparameterTuningJob.

Parameters
Name Description
name HyperparameterTuningJobName

Required. The name of the HyperparameterTuningJob resource to be deleted. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
HyperparameterTuningJobName name = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteHyperparameterTuningJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteHyperparameterTuningJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteHyperparameterTuningJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteHyperparameterTuningJob(string name, CallSettings callSettings = null)

Deletes a HyperparameterTuningJob.

Parameters
Name Description
name string

Required. The name of the HyperparameterTuningJob resource to be deleted. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hyperparameterTuningJobs/[HYPERPARAMETER_TUNING_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteHyperparameterTuningJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteHyperparameterTuningJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteHyperparameterTuningJobAsync(DeleteHyperparameterTuningJobRequest, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteHyperparameterTuningJobAsync(DeleteHyperparameterTuningJobRequest request, CallSettings callSettings = null)

Deletes a HyperparameterTuningJob.

Parameters
Name Description
request DeleteHyperparameterTuningJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteHyperparameterTuningJobRequest request = new DeleteHyperparameterTuningJobRequest
{
    HyperparameterTuningJobName = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteHyperparameterTuningJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteHyperparameterTuningJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteHyperparameterTuningJobAsync(DeleteHyperparameterTuningJobRequest, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteHyperparameterTuningJobAsync(DeleteHyperparameterTuningJobRequest request, CancellationToken cancellationToken)

Deletes a HyperparameterTuningJob.

Parameters
Name Description
request DeleteHyperparameterTuningJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteHyperparameterTuningJobRequest request = new DeleteHyperparameterTuningJobRequest
{
    HyperparameterTuningJobName = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteHyperparameterTuningJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteHyperparameterTuningJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteHyperparameterTuningJobAsync(HyperparameterTuningJobName, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteHyperparameterTuningJobAsync(HyperparameterTuningJobName name, CallSettings callSettings = null)

Deletes a HyperparameterTuningJob.

Parameters
Name Description
name HyperparameterTuningJobName

Required. The name of the HyperparameterTuningJob resource to be deleted. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
HyperparameterTuningJobName name = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteHyperparameterTuningJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteHyperparameterTuningJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteHyperparameterTuningJobAsync(HyperparameterTuningJobName, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteHyperparameterTuningJobAsync(HyperparameterTuningJobName name, CancellationToken cancellationToken)

Deletes a HyperparameterTuningJob.

Parameters
Name Description
name HyperparameterTuningJobName

Required. The name of the HyperparameterTuningJob resource to be deleted. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
HyperparameterTuningJobName name = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteHyperparameterTuningJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteHyperparameterTuningJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteHyperparameterTuningJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteHyperparameterTuningJobAsync(string name, CallSettings callSettings = null)

Deletes a HyperparameterTuningJob.

Parameters
Name Description
name string

Required. The name of the HyperparameterTuningJob resource to be deleted. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hyperparameterTuningJobs/[HYPERPARAMETER_TUNING_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteHyperparameterTuningJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteHyperparameterTuningJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteHyperparameterTuningJobAsync(string, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteHyperparameterTuningJobAsync(string name, CancellationToken cancellationToken)

Deletes a HyperparameterTuningJob.

Parameters
Name Description
name string

Required. The name of the HyperparameterTuningJob resource to be deleted. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hyperparameterTuningJobs/[HYPERPARAMETER_TUNING_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteHyperparameterTuningJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteHyperparameterTuningJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelDeploymentMonitoringJob(DeleteModelDeploymentMonitoringJobRequest, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteModelDeploymentMonitoringJob(DeleteModelDeploymentMonitoringJobRequest request, CallSettings callSettings = null)

Deletes a ModelDeploymentMonitoringJob.

Parameters
Name Description
request DeleteModelDeploymentMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
DeleteModelDeploymentMonitoringJobRequest request = new DeleteModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteModelDeploymentMonitoringJob(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteModelDeploymentMonitoringJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName name, CallSettings callSettings = null)

Deletes a ModelDeploymentMonitoringJob.

Parameters
Name Description
name ModelDeploymentMonitoringJobName

Required. The resource name of the model monitoring job to delete. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName name = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteModelDeploymentMonitoringJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteModelDeploymentMonitoringJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelDeploymentMonitoringJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteModelDeploymentMonitoringJob(string name, CallSettings callSettings = null)

Deletes a ModelDeploymentMonitoringJob.

Parameters
Name Description
name string

Required. The resource name of the model monitoring job to delete. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteModelDeploymentMonitoringJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteModelDeploymentMonitoringJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelDeploymentMonitoringJobAsync(DeleteModelDeploymentMonitoringJobRequest, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelDeploymentMonitoringJobAsync(DeleteModelDeploymentMonitoringJobRequest request, CallSettings callSettings = null)

Deletes a ModelDeploymentMonitoringJob.

Parameters
Name Description
request DeleteModelDeploymentMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteModelDeploymentMonitoringJobRequest request = new DeleteModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteModelDeploymentMonitoringJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteModelDeploymentMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelDeploymentMonitoringJobAsync(DeleteModelDeploymentMonitoringJobRequest, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelDeploymentMonitoringJobAsync(DeleteModelDeploymentMonitoringJobRequest request, CancellationToken cancellationToken)

Deletes a ModelDeploymentMonitoringJob.

Parameters
Name Description
request DeleteModelDeploymentMonitoringJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteModelDeploymentMonitoringJobRequest request = new DeleteModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteModelDeploymentMonitoringJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteModelDeploymentMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName name, CallSettings callSettings = null)

Deletes a ModelDeploymentMonitoringJob.

Parameters
Name Description
name ModelDeploymentMonitoringJobName

Required. The resource name of the model monitoring job to delete. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName name = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteModelDeploymentMonitoringJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteModelDeploymentMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName name, CancellationToken cancellationToken)

Deletes a ModelDeploymentMonitoringJob.

Parameters
Name Description
name ModelDeploymentMonitoringJobName

Required. The resource name of the model monitoring job to delete. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName name = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteModelDeploymentMonitoringJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteModelDeploymentMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelDeploymentMonitoringJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelDeploymentMonitoringJobAsync(string name, CallSettings callSettings = null)

Deletes a ModelDeploymentMonitoringJob.

Parameters
Name Description
name string

Required. The resource name of the model monitoring job to delete. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteModelDeploymentMonitoringJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteModelDeploymentMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelDeploymentMonitoringJobAsync(string, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelDeploymentMonitoringJobAsync(string name, CancellationToken cancellationToken)

Deletes a ModelDeploymentMonitoringJob.

Parameters
Name Description
name string

Required. The resource name of the model monitoring job to delete. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteModelDeploymentMonitoringJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteModelDeploymentMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteNasJob(DeleteNasJobRequest, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteNasJob(DeleteNasJobRequest request, CallSettings callSettings = null)

Deletes a NasJob.

Parameters
Name Description
request DeleteNasJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
DeleteNasJobRequest request = new DeleteNasJobRequest
{
    NasJobName = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteNasJob(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteNasJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteNasJob(NasJobName, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteNasJob(NasJobName name, CallSettings callSettings = null)

Deletes a NasJob.

Parameters
Name Description
name NasJobName

Required. The name of the NasJob resource to be deleted. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
NasJobName name = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteNasJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteNasJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteNasJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteNasJob(string name, CallSettings callSettings = null)

Deletes a NasJob.

Parameters
Name Description
name string

Required. The name of the NasJob resource to be deleted. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = jobServiceClient.DeleteNasJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = jobServiceClient.PollOnceDeleteNasJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteNasJobAsync(DeleteNasJobRequest, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteNasJobAsync(DeleteNasJobRequest request, CallSettings callSettings = null)

Deletes a NasJob.

Parameters
Name Description
request DeleteNasJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteNasJobRequest request = new DeleteNasJobRequest
{
    NasJobName = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteNasJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteNasJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteNasJobAsync(DeleteNasJobRequest, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteNasJobAsync(DeleteNasJobRequest request, CancellationToken cancellationToken)

Deletes a NasJob.

Parameters
Name Description
request DeleteNasJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteNasJobRequest request = new DeleteNasJobRequest
{
    NasJobName = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteNasJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteNasJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteNasJobAsync(NasJobName, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteNasJobAsync(NasJobName name, CallSettings callSettings = null)

Deletes a NasJob.

Parameters
Name Description
name NasJobName

Required. The name of the NasJob resource to be deleted. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
NasJobName name = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteNasJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteNasJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteNasJobAsync(NasJobName, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteNasJobAsync(NasJobName name, CancellationToken cancellationToken)

Deletes a NasJob.

Parameters
Name Description
name NasJobName

Required. The name of the NasJob resource to be deleted. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
NasJobName name = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteNasJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteNasJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteNasJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteNasJobAsync(string name, CallSettings callSettings = null)

Deletes a NasJob.

Parameters
Name Description
name string

Required. The name of the NasJob resource to be deleted. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteNasJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteNasJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteNasJobAsync(string, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteNasJobAsync(string name, CancellationToken cancellationToken)

Deletes a NasJob.

Parameters
Name Description
name string

Required. The name of the NasJob resource to be deleted. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await jobServiceClient.DeleteNasJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceDeleteNasJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

GetBatchPredictionJob(BatchPredictionJobName, CallSettings)

public virtual BatchPredictionJob GetBatchPredictionJob(BatchPredictionJobName name, CallSettings callSettings = null)

Gets a BatchPredictionJob

Parameters
Name Description
name BatchPredictionJobName

Required. The name of the BatchPredictionJob resource. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchPredictionJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
BatchPredictionJobName name = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
// Make the request
BatchPredictionJob response = jobServiceClient.GetBatchPredictionJob(name);

GetBatchPredictionJob(GetBatchPredictionJobRequest, CallSettings)

public virtual BatchPredictionJob GetBatchPredictionJob(GetBatchPredictionJobRequest request, CallSettings callSettings = null)

Gets a BatchPredictionJob

Parameters
Name Description
request GetBatchPredictionJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchPredictionJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
GetBatchPredictionJobRequest request = new GetBatchPredictionJobRequest
{
    BatchPredictionJobName = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]"),
};
// Make the request
BatchPredictionJob response = jobServiceClient.GetBatchPredictionJob(request);

GetBatchPredictionJob(string, CallSettings)

public virtual BatchPredictionJob GetBatchPredictionJob(string name, CallSettings callSettings = null)

Gets a BatchPredictionJob

Parameters
Name Description
name string

Required. The name of the BatchPredictionJob resource. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchPredictionJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/batchPredictionJobs/[BATCH_PREDICTION_JOB]";
// Make the request
BatchPredictionJob response = jobServiceClient.GetBatchPredictionJob(name);

GetBatchPredictionJobAsync(BatchPredictionJobName, CallSettings)

public virtual Task<BatchPredictionJob> GetBatchPredictionJobAsync(BatchPredictionJobName name, CallSettings callSettings = null)

Gets a BatchPredictionJob

Parameters
Name Description
name BatchPredictionJobName

Required. The name of the BatchPredictionJob resource. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBatchPredictionJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPredictionJobName name = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
// Make the request
BatchPredictionJob response = await jobServiceClient.GetBatchPredictionJobAsync(name);

GetBatchPredictionJobAsync(BatchPredictionJobName, CancellationToken)

public virtual Task<BatchPredictionJob> GetBatchPredictionJobAsync(BatchPredictionJobName name, CancellationToken cancellationToken)

Gets a BatchPredictionJob

Parameters
Name Description
name BatchPredictionJobName

Required. The name of the BatchPredictionJob resource. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBatchPredictionJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPredictionJobName name = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
// Make the request
BatchPredictionJob response = await jobServiceClient.GetBatchPredictionJobAsync(name);

GetBatchPredictionJobAsync(GetBatchPredictionJobRequest, CallSettings)

public virtual Task<BatchPredictionJob> GetBatchPredictionJobAsync(GetBatchPredictionJobRequest request, CallSettings callSettings = null)

Gets a BatchPredictionJob

Parameters
Name Description
request GetBatchPredictionJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBatchPredictionJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetBatchPredictionJobRequest request = new GetBatchPredictionJobRequest
{
    BatchPredictionJobName = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]"),
};
// Make the request
BatchPredictionJob response = await jobServiceClient.GetBatchPredictionJobAsync(request);

GetBatchPredictionJobAsync(GetBatchPredictionJobRequest, CancellationToken)

public virtual Task<BatchPredictionJob> GetBatchPredictionJobAsync(GetBatchPredictionJobRequest request, CancellationToken cancellationToken)

Gets a BatchPredictionJob

Parameters
Name Description
request GetBatchPredictionJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBatchPredictionJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetBatchPredictionJobRequest request = new GetBatchPredictionJobRequest
{
    BatchPredictionJobName = BatchPredictionJobName.FromProjectLocationBatchPredictionJob("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]"),
};
// Make the request
BatchPredictionJob response = await jobServiceClient.GetBatchPredictionJobAsync(request);

GetBatchPredictionJobAsync(string, CallSettings)

public virtual Task<BatchPredictionJob> GetBatchPredictionJobAsync(string name, CallSettings callSettings = null)

Gets a BatchPredictionJob

Parameters
Name Description
name string

Required. The name of the BatchPredictionJob resource. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBatchPredictionJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/batchPredictionJobs/[BATCH_PREDICTION_JOB]";
// Make the request
BatchPredictionJob response = await jobServiceClient.GetBatchPredictionJobAsync(name);

GetBatchPredictionJobAsync(string, CancellationToken)

public virtual Task<BatchPredictionJob> GetBatchPredictionJobAsync(string name, CancellationToken cancellationToken)

Gets a BatchPredictionJob

Parameters
Name Description
name string

Required. The name of the BatchPredictionJob resource. Format: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBatchPredictionJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/batchPredictionJobs/[BATCH_PREDICTION_JOB]";
// Make the request
BatchPredictionJob response = await jobServiceClient.GetBatchPredictionJobAsync(name);

GetCustomJob(CustomJobName, CallSettings)

public virtual CustomJob GetCustomJob(CustomJobName name, CallSettings callSettings = null)

Gets a CustomJob.

Parameters
Name Description
name CustomJobName

Required. The name of the CustomJob resource. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CustomJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CustomJobName name = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
// Make the request
CustomJob response = jobServiceClient.GetCustomJob(name);

GetCustomJob(GetCustomJobRequest, CallSettings)

public virtual CustomJob GetCustomJob(GetCustomJobRequest request, CallSettings callSettings = null)

Gets a CustomJob.

Parameters
Name Description
request GetCustomJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CustomJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
GetCustomJobRequest request = new GetCustomJobRequest
{
    CustomJobName = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]"),
};
// Make the request
CustomJob response = jobServiceClient.GetCustomJob(request);

GetCustomJob(string, CallSettings)

public virtual CustomJob GetCustomJob(string name, CallSettings callSettings = null)

Gets a CustomJob.

Parameters
Name Description
name string

Required. The name of the CustomJob resource. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CustomJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/customJobs/[CUSTOM_JOB]";
// Make the request
CustomJob response = jobServiceClient.GetCustomJob(name);

GetCustomJobAsync(CustomJobName, CallSettings)

public virtual Task<CustomJob> GetCustomJobAsync(CustomJobName name, CallSettings callSettings = null)

Gets a CustomJob.

Parameters
Name Description
name CustomJobName

Required. The name of the CustomJob resource. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCustomJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CustomJobName name = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
// Make the request
CustomJob response = await jobServiceClient.GetCustomJobAsync(name);

GetCustomJobAsync(CustomJobName, CancellationToken)

public virtual Task<CustomJob> GetCustomJobAsync(CustomJobName name, CancellationToken cancellationToken)

Gets a CustomJob.

Parameters
Name Description
name CustomJobName

Required. The name of the CustomJob resource. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskCustomJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CustomJobName name = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
// Make the request
CustomJob response = await jobServiceClient.GetCustomJobAsync(name);

GetCustomJobAsync(GetCustomJobRequest, CallSettings)

public virtual Task<CustomJob> GetCustomJobAsync(GetCustomJobRequest request, CallSettings callSettings = null)

Gets a CustomJob.

Parameters
Name Description
request GetCustomJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCustomJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetCustomJobRequest request = new GetCustomJobRequest
{
    CustomJobName = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]"),
};
// Make the request
CustomJob response = await jobServiceClient.GetCustomJobAsync(request);

GetCustomJobAsync(GetCustomJobRequest, CancellationToken)

public virtual Task<CustomJob> GetCustomJobAsync(GetCustomJobRequest request, CancellationToken cancellationToken)

Gets a CustomJob.

Parameters
Name Description
request GetCustomJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskCustomJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetCustomJobRequest request = new GetCustomJobRequest
{
    CustomJobName = CustomJobName.FromProjectLocationCustomJob("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]"),
};
// Make the request
CustomJob response = await jobServiceClient.GetCustomJobAsync(request);

GetCustomJobAsync(string, CallSettings)

public virtual Task<CustomJob> GetCustomJobAsync(string name, CallSettings callSettings = null)

Gets a CustomJob.

Parameters
Name Description
name string

Required. The name of the CustomJob resource. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCustomJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/customJobs/[CUSTOM_JOB]";
// Make the request
CustomJob response = await jobServiceClient.GetCustomJobAsync(name);

GetCustomJobAsync(string, CancellationToken)

public virtual Task<CustomJob> GetCustomJobAsync(string name, CancellationToken cancellationToken)

Gets a CustomJob.

Parameters
Name Description
name string

Required. The name of the CustomJob resource. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskCustomJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/customJobs/[CUSTOM_JOB]";
// Make the request
CustomJob response = await jobServiceClient.GetCustomJobAsync(name);

GetDataLabelingJob(DataLabelingJobName, CallSettings)

public virtual DataLabelingJob GetDataLabelingJob(DataLabelingJobName name, CallSettings callSettings = null)

Gets a DataLabelingJob.

Parameters
Name Description
name DataLabelingJobName

Required. The name of the DataLabelingJob. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataLabelingJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
DataLabelingJobName name = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
// Make the request
DataLabelingJob response = jobServiceClient.GetDataLabelingJob(name);

GetDataLabelingJob(GetDataLabelingJobRequest, CallSettings)

public virtual DataLabelingJob GetDataLabelingJob(GetDataLabelingJobRequest request, CallSettings callSettings = null)

Gets a DataLabelingJob.

Parameters
Name Description
request GetDataLabelingJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataLabelingJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
GetDataLabelingJobRequest request = new GetDataLabelingJobRequest
{
    DataLabelingJobName = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]"),
};
// Make the request
DataLabelingJob response = jobServiceClient.GetDataLabelingJob(request);

GetDataLabelingJob(string, CallSettings)

public virtual DataLabelingJob GetDataLabelingJob(string name, CallSettings callSettings = null)

Gets a DataLabelingJob.

Parameters
Name Description
name string

Required. The name of the DataLabelingJob. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataLabelingJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataLabelingJobs/[DATA_LABELING_JOB]";
// Make the request
DataLabelingJob response = jobServiceClient.GetDataLabelingJob(name);

GetDataLabelingJobAsync(DataLabelingJobName, CallSettings)

public virtual Task<DataLabelingJob> GetDataLabelingJobAsync(DataLabelingJobName name, CallSettings callSettings = null)

Gets a DataLabelingJob.

Parameters
Name Description
name DataLabelingJobName

Required. The name of the DataLabelingJob. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataLabelingJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DataLabelingJobName name = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
// Make the request
DataLabelingJob response = await jobServiceClient.GetDataLabelingJobAsync(name);

GetDataLabelingJobAsync(DataLabelingJobName, CancellationToken)

public virtual Task<DataLabelingJob> GetDataLabelingJobAsync(DataLabelingJobName name, CancellationToken cancellationToken)

Gets a DataLabelingJob.

Parameters
Name Description
name DataLabelingJobName

Required. The name of the DataLabelingJob. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataLabelingJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DataLabelingJobName name = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
// Make the request
DataLabelingJob response = await jobServiceClient.GetDataLabelingJobAsync(name);

GetDataLabelingJobAsync(GetDataLabelingJobRequest, CallSettings)

public virtual Task<DataLabelingJob> GetDataLabelingJobAsync(GetDataLabelingJobRequest request, CallSettings callSettings = null)

Gets a DataLabelingJob.

Parameters
Name Description
request GetDataLabelingJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataLabelingJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetDataLabelingJobRequest request = new GetDataLabelingJobRequest
{
    DataLabelingJobName = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]"),
};
// Make the request
DataLabelingJob response = await jobServiceClient.GetDataLabelingJobAsync(request);

GetDataLabelingJobAsync(GetDataLabelingJobRequest, CancellationToken)

public virtual Task<DataLabelingJob> GetDataLabelingJobAsync(GetDataLabelingJobRequest request, CancellationToken cancellationToken)

Gets a DataLabelingJob.

Parameters
Name Description
request GetDataLabelingJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataLabelingJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetDataLabelingJobRequest request = new GetDataLabelingJobRequest
{
    DataLabelingJobName = DataLabelingJobName.FromProjectLocationDataLabelingJob("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]"),
};
// Make the request
DataLabelingJob response = await jobServiceClient.GetDataLabelingJobAsync(request);

GetDataLabelingJobAsync(string, CallSettings)

public virtual Task<DataLabelingJob> GetDataLabelingJobAsync(string name, CallSettings callSettings = null)

Gets a DataLabelingJob.

Parameters
Name Description
name string

Required. The name of the DataLabelingJob. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataLabelingJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataLabelingJobs/[DATA_LABELING_JOB]";
// Make the request
DataLabelingJob response = await jobServiceClient.GetDataLabelingJobAsync(name);

GetDataLabelingJobAsync(string, CancellationToken)

public virtual Task<DataLabelingJob> GetDataLabelingJobAsync(string name, CancellationToken cancellationToken)

Gets a DataLabelingJob.

Parameters
Name Description
name string

Required. The name of the DataLabelingJob. Format: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataLabelingJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataLabelingJobs/[DATA_LABELING_JOB]";
// Make the request
DataLabelingJob response = await jobServiceClient.GetDataLabelingJobAsync(name);

GetHyperparameterTuningJob(GetHyperparameterTuningJobRequest, CallSettings)

public virtual HyperparameterTuningJob GetHyperparameterTuningJob(GetHyperparameterTuningJobRequest request, CallSettings callSettings = null)

Gets a HyperparameterTuningJob

Parameters
Name Description
request GetHyperparameterTuningJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HyperparameterTuningJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
GetHyperparameterTuningJobRequest request = new GetHyperparameterTuningJobRequest
{
    HyperparameterTuningJobName = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]"),
};
// Make the request
HyperparameterTuningJob response = jobServiceClient.GetHyperparameterTuningJob(request);

GetHyperparameterTuningJob(HyperparameterTuningJobName, CallSettings)

public virtual HyperparameterTuningJob GetHyperparameterTuningJob(HyperparameterTuningJobName name, CallSettings callSettings = null)

Gets a HyperparameterTuningJob

Parameters
Name Description
name HyperparameterTuningJobName

Required. The name of the HyperparameterTuningJob resource. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HyperparameterTuningJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
HyperparameterTuningJobName name = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
// Make the request
HyperparameterTuningJob response = jobServiceClient.GetHyperparameterTuningJob(name);

GetHyperparameterTuningJob(string, CallSettings)

public virtual HyperparameterTuningJob GetHyperparameterTuningJob(string name, CallSettings callSettings = null)

Gets a HyperparameterTuningJob

Parameters
Name Description
name string

Required. The name of the HyperparameterTuningJob resource. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HyperparameterTuningJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hyperparameterTuningJobs/[HYPERPARAMETER_TUNING_JOB]";
// Make the request
HyperparameterTuningJob response = jobServiceClient.GetHyperparameterTuningJob(name);

GetHyperparameterTuningJobAsync(GetHyperparameterTuningJobRequest, CallSettings)

public virtual Task<HyperparameterTuningJob> GetHyperparameterTuningJobAsync(GetHyperparameterTuningJobRequest request, CallSettings callSettings = null)

Gets a HyperparameterTuningJob

Parameters
Name Description
request GetHyperparameterTuningJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHyperparameterTuningJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetHyperparameterTuningJobRequest request = new GetHyperparameterTuningJobRequest
{
    HyperparameterTuningJobName = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]"),
};
// Make the request
HyperparameterTuningJob response = await jobServiceClient.GetHyperparameterTuningJobAsync(request);

GetHyperparameterTuningJobAsync(GetHyperparameterTuningJobRequest, CancellationToken)

public virtual Task<HyperparameterTuningJob> GetHyperparameterTuningJobAsync(GetHyperparameterTuningJobRequest request, CancellationToken cancellationToken)

Gets a HyperparameterTuningJob

Parameters
Name Description
request GetHyperparameterTuningJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHyperparameterTuningJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetHyperparameterTuningJobRequest request = new GetHyperparameterTuningJobRequest
{
    HyperparameterTuningJobName = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]"),
};
// Make the request
HyperparameterTuningJob response = await jobServiceClient.GetHyperparameterTuningJobAsync(request);

GetHyperparameterTuningJobAsync(HyperparameterTuningJobName, CallSettings)

public virtual Task<HyperparameterTuningJob> GetHyperparameterTuningJobAsync(HyperparameterTuningJobName name, CallSettings callSettings = null)

Gets a HyperparameterTuningJob

Parameters
Name Description
name HyperparameterTuningJobName

Required. The name of the HyperparameterTuningJob resource. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHyperparameterTuningJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
HyperparameterTuningJobName name = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
// Make the request
HyperparameterTuningJob response = await jobServiceClient.GetHyperparameterTuningJobAsync(name);

GetHyperparameterTuningJobAsync(HyperparameterTuningJobName, CancellationToken)

public virtual Task<HyperparameterTuningJob> GetHyperparameterTuningJobAsync(HyperparameterTuningJobName name, CancellationToken cancellationToken)

Gets a HyperparameterTuningJob

Parameters
Name Description
name HyperparameterTuningJobName

Required. The name of the HyperparameterTuningJob resource. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHyperparameterTuningJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
HyperparameterTuningJobName name = HyperparameterTuningJobName.FromProjectLocationHyperparameterTuningJob("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
// Make the request
HyperparameterTuningJob response = await jobServiceClient.GetHyperparameterTuningJobAsync(name);

GetHyperparameterTuningJobAsync(string, CallSettings)

public virtual Task<HyperparameterTuningJob> GetHyperparameterTuningJobAsync(string name, CallSettings callSettings = null)

Gets a HyperparameterTuningJob

Parameters
Name Description
name string

Required. The name of the HyperparameterTuningJob resource. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHyperparameterTuningJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hyperparameterTuningJobs/[HYPERPARAMETER_TUNING_JOB]";
// Make the request
HyperparameterTuningJob response = await jobServiceClient.GetHyperparameterTuningJobAsync(name);

GetHyperparameterTuningJobAsync(string, CancellationToken)

public virtual Task<HyperparameterTuningJob> GetHyperparameterTuningJobAsync(string name, CancellationToken cancellationToken)

Gets a HyperparameterTuningJob

Parameters
Name Description
name string

Required. The name of the HyperparameterTuningJob resource. Format: projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHyperparameterTuningJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/hyperparameterTuningJobs/[HYPERPARAMETER_TUNING_JOB]";
// Make the request
HyperparameterTuningJob response = await jobServiceClient.GetHyperparameterTuningJobAsync(name);

GetModelDeploymentMonitoringJob(GetModelDeploymentMonitoringJobRequest, CallSettings)

public virtual ModelDeploymentMonitoringJob GetModelDeploymentMonitoringJob(GetModelDeploymentMonitoringJobRequest request, CallSettings callSettings = null)

Gets a ModelDeploymentMonitoringJob.

Parameters
Name Description
request GetModelDeploymentMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelDeploymentMonitoringJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
GetModelDeploymentMonitoringJobRequest request = new GetModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
};
// Make the request
ModelDeploymentMonitoringJob response = jobServiceClient.GetModelDeploymentMonitoringJob(request);

GetModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName, CallSettings)

public virtual ModelDeploymentMonitoringJob GetModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName name, CallSettings callSettings = null)

Gets a ModelDeploymentMonitoringJob.

Parameters
Name Description
name ModelDeploymentMonitoringJobName

Required. The resource name of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelDeploymentMonitoringJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName name = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
// Make the request
ModelDeploymentMonitoringJob response = jobServiceClient.GetModelDeploymentMonitoringJob(name);

GetModelDeploymentMonitoringJob(string, CallSettings)

public virtual ModelDeploymentMonitoringJob GetModelDeploymentMonitoringJob(string name, CallSettings callSettings = null)

Gets a ModelDeploymentMonitoringJob.

Parameters
Name Description
name string

Required. The resource name of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelDeploymentMonitoringJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
// Make the request
ModelDeploymentMonitoringJob response = jobServiceClient.GetModelDeploymentMonitoringJob(name);

GetModelDeploymentMonitoringJobAsync(GetModelDeploymentMonitoringJobRequest, CallSettings)

public virtual Task<ModelDeploymentMonitoringJob> GetModelDeploymentMonitoringJobAsync(GetModelDeploymentMonitoringJobRequest request, CallSettings callSettings = null)

Gets a ModelDeploymentMonitoringJob.

Parameters
Name Description
request GetModelDeploymentMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelDeploymentMonitoringJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetModelDeploymentMonitoringJobRequest request = new GetModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
};
// Make the request
ModelDeploymentMonitoringJob response = await jobServiceClient.GetModelDeploymentMonitoringJobAsync(request);

GetModelDeploymentMonitoringJobAsync(GetModelDeploymentMonitoringJobRequest, CancellationToken)

public virtual Task<ModelDeploymentMonitoringJob> GetModelDeploymentMonitoringJobAsync(GetModelDeploymentMonitoringJobRequest request, CancellationToken cancellationToken)

Gets a ModelDeploymentMonitoringJob.

Parameters
Name Description
request GetModelDeploymentMonitoringJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelDeploymentMonitoringJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetModelDeploymentMonitoringJobRequest request = new GetModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
};
// Make the request
ModelDeploymentMonitoringJob response = await jobServiceClient.GetModelDeploymentMonitoringJobAsync(request);

GetModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName, CallSettings)

public virtual Task<ModelDeploymentMonitoringJob> GetModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName name, CallSettings callSettings = null)

Gets a ModelDeploymentMonitoringJob.

Parameters
Name Description
name ModelDeploymentMonitoringJobName

Required. The resource name of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelDeploymentMonitoringJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName name = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
// Make the request
ModelDeploymentMonitoringJob response = await jobServiceClient.GetModelDeploymentMonitoringJobAsync(name);

GetModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName, CancellationToken)

public virtual Task<ModelDeploymentMonitoringJob> GetModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName name, CancellationToken cancellationToken)

Gets a ModelDeploymentMonitoringJob.

Parameters
Name Description
name ModelDeploymentMonitoringJobName

Required. The resource name of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelDeploymentMonitoringJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName name = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
// Make the request
ModelDeploymentMonitoringJob response = await jobServiceClient.GetModelDeploymentMonitoringJobAsync(name);

GetModelDeploymentMonitoringJobAsync(string, CallSettings)

public virtual Task<ModelDeploymentMonitoringJob> GetModelDeploymentMonitoringJobAsync(string name, CallSettings callSettings = null)

Gets a ModelDeploymentMonitoringJob.

Parameters
Name Description
name string

Required. The resource name of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelDeploymentMonitoringJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
// Make the request
ModelDeploymentMonitoringJob response = await jobServiceClient.GetModelDeploymentMonitoringJobAsync(name);

GetModelDeploymentMonitoringJobAsync(string, CancellationToken)

public virtual Task<ModelDeploymentMonitoringJob> GetModelDeploymentMonitoringJobAsync(string name, CancellationToken cancellationToken)

Gets a ModelDeploymentMonitoringJob.

Parameters
Name Description
name string

Required. The resource name of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelDeploymentMonitoringJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
// Make the request
ModelDeploymentMonitoringJob response = await jobServiceClient.GetModelDeploymentMonitoringJobAsync(name);

GetNasJob(GetNasJobRequest, CallSettings)

public virtual NasJob GetNasJob(GetNasJobRequest request, CallSettings callSettings = null)

Gets a NasJob

Parameters
Name Description
request GetNasJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
NasJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
GetNasJobRequest request = new GetNasJobRequest
{
    NasJobName = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]"),
};
// Make the request
NasJob response = jobServiceClient.GetNasJob(request);

GetNasJob(NasJobName, CallSettings)

public virtual NasJob GetNasJob(NasJobName name, CallSettings callSettings = null)

Gets a NasJob

Parameters
Name Description
name NasJobName

Required. The name of the NasJob resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
NasJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
NasJobName name = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]");
// Make the request
NasJob response = jobServiceClient.GetNasJob(name);

GetNasJob(string, CallSettings)

public virtual NasJob GetNasJob(string name, CallSettings callSettings = null)

Gets a NasJob

Parameters
Name Description
name string

Required. The name of the NasJob resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
NasJob

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]";
// Make the request
NasJob response = jobServiceClient.GetNasJob(name);

GetNasJobAsync(GetNasJobRequest, CallSettings)

public virtual Task<NasJob> GetNasJobAsync(GetNasJobRequest request, CallSettings callSettings = null)

Gets a NasJob

Parameters
Name Description
request GetNasJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNasJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetNasJobRequest request = new GetNasJobRequest
{
    NasJobName = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]"),
};
// Make the request
NasJob response = await jobServiceClient.GetNasJobAsync(request);

GetNasJobAsync(GetNasJobRequest, CancellationToken)

public virtual Task<NasJob> GetNasJobAsync(GetNasJobRequest request, CancellationToken cancellationToken)

Gets a NasJob

Parameters
Name Description
request GetNasJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskNasJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetNasJobRequest request = new GetNasJobRequest
{
    NasJobName = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]"),
};
// Make the request
NasJob response = await jobServiceClient.GetNasJobAsync(request);

GetNasJobAsync(NasJobName, CallSettings)

public virtual Task<NasJob> GetNasJobAsync(NasJobName name, CallSettings callSettings = null)

Gets a NasJob

Parameters
Name Description
name NasJobName

Required. The name of the NasJob resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNasJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
NasJobName name = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]");
// Make the request
NasJob response = await jobServiceClient.GetNasJobAsync(name);

GetNasJobAsync(NasJobName, CancellationToken)

public virtual Task<NasJob> GetNasJobAsync(NasJobName name, CancellationToken cancellationToken)

Gets a NasJob

Parameters
Name Description
name NasJobName

Required. The name of the NasJob resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskNasJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
NasJobName name = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]");
// Make the request
NasJob response = await jobServiceClient.GetNasJobAsync(name);

GetNasJobAsync(string, CallSettings)

public virtual Task<NasJob> GetNasJobAsync(string name, CallSettings callSettings = null)

Gets a NasJob

Parameters
Name Description
name string

Required. The name of the NasJob resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNasJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]";
// Make the request
NasJob response = await jobServiceClient.GetNasJobAsync(name);

GetNasJobAsync(string, CancellationToken)

public virtual Task<NasJob> GetNasJobAsync(string name, CancellationToken cancellationToken)

Gets a NasJob

Parameters
Name Description
name string

Required. The name of the NasJob resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskNasJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]";
// Make the request
NasJob response = await jobServiceClient.GetNasJobAsync(name);

GetNasTrialDetail(GetNasTrialDetailRequest, CallSettings)

public virtual NasTrialDetail GetNasTrialDetail(GetNasTrialDetailRequest request, CallSettings callSettings = null)

Gets a NasTrialDetail.

Parameters
Name Description
request GetNasTrialDetailRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
NasTrialDetail

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
GetNasTrialDetailRequest request = new GetNasTrialDetailRequest
{
    NasTrialDetailName = NasTrialDetailName.FromProjectLocationNasJobNasTrialDetail("[PROJECT]", "[LOCATION]", "[NAS_JOB]", "[NAS_TRIAL_DETAIL]"),
};
// Make the request
NasTrialDetail response = jobServiceClient.GetNasTrialDetail(request);

GetNasTrialDetail(NasTrialDetailName, CallSettings)

public virtual NasTrialDetail GetNasTrialDetail(NasTrialDetailName name, CallSettings callSettings = null)

Gets a NasTrialDetail.

Parameters
Name Description
name NasTrialDetailName

Required. The name of the NasTrialDetail resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
NasTrialDetail

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
NasTrialDetailName name = NasTrialDetailName.FromProjectLocationNasJobNasTrialDetail("[PROJECT]", "[LOCATION]", "[NAS_JOB]", "[NAS_TRIAL_DETAIL]");
// Make the request
NasTrialDetail response = jobServiceClient.GetNasTrialDetail(name);

GetNasTrialDetail(string, CallSettings)

public virtual NasTrialDetail GetNasTrialDetail(string name, CallSettings callSettings = null)

Gets a NasTrialDetail.

Parameters
Name Description
name string

Required. The name of the NasTrialDetail resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
NasTrialDetail

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]/nasTrialDetails/[NAS_TRIAL_DETAIL]";
// Make the request
NasTrialDetail response = jobServiceClient.GetNasTrialDetail(name);

GetNasTrialDetailAsync(GetNasTrialDetailRequest, CallSettings)

public virtual Task<NasTrialDetail> GetNasTrialDetailAsync(GetNasTrialDetailRequest request, CallSettings callSettings = null)

Gets a NasTrialDetail.

Parameters
Name Description
request GetNasTrialDetailRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNasTrialDetail

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetNasTrialDetailRequest request = new GetNasTrialDetailRequest
{
    NasTrialDetailName = NasTrialDetailName.FromProjectLocationNasJobNasTrialDetail("[PROJECT]", "[LOCATION]", "[NAS_JOB]", "[NAS_TRIAL_DETAIL]"),
};
// Make the request
NasTrialDetail response = await jobServiceClient.GetNasTrialDetailAsync(request);

GetNasTrialDetailAsync(GetNasTrialDetailRequest, CancellationToken)

public virtual Task<NasTrialDetail> GetNasTrialDetailAsync(GetNasTrialDetailRequest request, CancellationToken cancellationToken)

Gets a NasTrialDetail.

Parameters
Name Description
request GetNasTrialDetailRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskNasTrialDetail

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetNasTrialDetailRequest request = new GetNasTrialDetailRequest
{
    NasTrialDetailName = NasTrialDetailName.FromProjectLocationNasJobNasTrialDetail("[PROJECT]", "[LOCATION]", "[NAS_JOB]", "[NAS_TRIAL_DETAIL]"),
};
// Make the request
NasTrialDetail response = await jobServiceClient.GetNasTrialDetailAsync(request);

GetNasTrialDetailAsync(NasTrialDetailName, CallSettings)

public virtual Task<NasTrialDetail> GetNasTrialDetailAsync(NasTrialDetailName name, CallSettings callSettings = null)

Gets a NasTrialDetail.

Parameters
Name Description
name NasTrialDetailName

Required. The name of the NasTrialDetail resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNasTrialDetail

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
NasTrialDetailName name = NasTrialDetailName.FromProjectLocationNasJobNasTrialDetail("[PROJECT]", "[LOCATION]", "[NAS_JOB]", "[NAS_TRIAL_DETAIL]");
// Make the request
NasTrialDetail response = await jobServiceClient.GetNasTrialDetailAsync(name);

GetNasTrialDetailAsync(NasTrialDetailName, CancellationToken)

public virtual Task<NasTrialDetail> GetNasTrialDetailAsync(NasTrialDetailName name, CancellationToken cancellationToken)

Gets a NasTrialDetail.

Parameters
Name Description
name NasTrialDetailName

Required. The name of the NasTrialDetail resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskNasTrialDetail

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
NasTrialDetailName name = NasTrialDetailName.FromProjectLocationNasJobNasTrialDetail("[PROJECT]", "[LOCATION]", "[NAS_JOB]", "[NAS_TRIAL_DETAIL]");
// Make the request
NasTrialDetail response = await jobServiceClient.GetNasTrialDetailAsync(name);

GetNasTrialDetailAsync(string, CallSettings)

public virtual Task<NasTrialDetail> GetNasTrialDetailAsync(string name, CallSettings callSettings = null)

Gets a NasTrialDetail.

Parameters
Name Description
name string

Required. The name of the NasTrialDetail resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNasTrialDetail

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]/nasTrialDetails/[NAS_TRIAL_DETAIL]";
// Make the request
NasTrialDetail response = await jobServiceClient.GetNasTrialDetailAsync(name);

GetNasTrialDetailAsync(string, CancellationToken)

public virtual Task<NasTrialDetail> GetNasTrialDetailAsync(string name, CancellationToken cancellationToken)

Gets a NasTrialDetail.

Parameters
Name Description
name string

Required. The name of the NasTrialDetail resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskNasTrialDetail

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]/nasTrialDetails/[NAS_TRIAL_DETAIL]";
// Make the request
NasTrialDetail response = await jobServiceClient.GetNasTrialDetailAsync(name);

ListBatchPredictionJobs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListBatchPredictionJobsResponse, BatchPredictionJob> ListBatchPredictionJobs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists BatchPredictionJobs in a Location.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to list the BatchPredictionJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBatchPredictionJobsResponseBatchPredictionJob

A pageable sequence of BatchPredictionJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListBatchPredictionJobsResponse, BatchPredictionJob> response = jobServiceClient.ListBatchPredictionJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (BatchPredictionJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBatchPredictionJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BatchPredictionJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BatchPredictionJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BatchPredictionJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBatchPredictionJobs(ListBatchPredictionJobsRequest, CallSettings)

public virtual PagedEnumerable<ListBatchPredictionJobsResponse, BatchPredictionJob> ListBatchPredictionJobs(ListBatchPredictionJobsRequest request, CallSettings callSettings = null)

Lists BatchPredictionJobs in a Location.

Parameters
Name Description
request ListBatchPredictionJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBatchPredictionJobsResponseBatchPredictionJob

A pageable sequence of BatchPredictionJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ListBatchPredictionJobsRequest request = new ListBatchPredictionJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedEnumerable<ListBatchPredictionJobsResponse, BatchPredictionJob> response = jobServiceClient.ListBatchPredictionJobs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (BatchPredictionJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBatchPredictionJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BatchPredictionJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BatchPredictionJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BatchPredictionJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBatchPredictionJobs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListBatchPredictionJobsResponse, BatchPredictionJob> ListBatchPredictionJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists BatchPredictionJobs in a Location.

Parameters
Name Description
parent string

Required. The resource name of the Location to list the BatchPredictionJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBatchPredictionJobsResponseBatchPredictionJob

A pageable sequence of BatchPredictionJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListBatchPredictionJobsResponse, BatchPredictionJob> response = jobServiceClient.ListBatchPredictionJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (BatchPredictionJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBatchPredictionJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BatchPredictionJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BatchPredictionJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BatchPredictionJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBatchPredictionJobsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListBatchPredictionJobsResponse, BatchPredictionJob> ListBatchPredictionJobsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists BatchPredictionJobs in a Location.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to list the BatchPredictionJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBatchPredictionJobsResponseBatchPredictionJob

A pageable asynchronous sequence of BatchPredictionJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListBatchPredictionJobsResponse, BatchPredictionJob> response = jobServiceClient.ListBatchPredictionJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BatchPredictionJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBatchPredictionJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BatchPredictionJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BatchPredictionJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BatchPredictionJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBatchPredictionJobsAsync(ListBatchPredictionJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListBatchPredictionJobsResponse, BatchPredictionJob> ListBatchPredictionJobsAsync(ListBatchPredictionJobsRequest request, CallSettings callSettings = null)

Lists BatchPredictionJobs in a Location.

Parameters
Name Description
request ListBatchPredictionJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBatchPredictionJobsResponseBatchPredictionJob

A pageable asynchronous sequence of BatchPredictionJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ListBatchPredictionJobsRequest request = new ListBatchPredictionJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedAsyncEnumerable<ListBatchPredictionJobsResponse, BatchPredictionJob> response = jobServiceClient.ListBatchPredictionJobsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BatchPredictionJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBatchPredictionJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BatchPredictionJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BatchPredictionJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BatchPredictionJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBatchPredictionJobsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListBatchPredictionJobsResponse, BatchPredictionJob> ListBatchPredictionJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists BatchPredictionJobs in a Location.

Parameters
Name Description
parent string

Required. The resource name of the Location to list the BatchPredictionJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBatchPredictionJobsResponseBatchPredictionJob

A pageable asynchronous sequence of BatchPredictionJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListBatchPredictionJobsResponse, BatchPredictionJob> response = jobServiceClient.ListBatchPredictionJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BatchPredictionJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBatchPredictionJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BatchPredictionJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BatchPredictionJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BatchPredictionJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCustomJobs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListCustomJobsResponse, CustomJob> ListCustomJobs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists CustomJobs in a Location.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to list the CustomJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListCustomJobsResponseCustomJob

A pageable sequence of CustomJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListCustomJobsResponse, CustomJob> response = jobServiceClient.ListCustomJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CustomJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCustomJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CustomJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CustomJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CustomJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCustomJobs(ListCustomJobsRequest, CallSettings)

public virtual PagedEnumerable<ListCustomJobsResponse, CustomJob> ListCustomJobs(ListCustomJobsRequest request, CallSettings callSettings = null)

Lists CustomJobs in a Location.

Parameters
Name Description
request ListCustomJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListCustomJobsResponseCustomJob

A pageable sequence of CustomJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ListCustomJobsRequest request = new ListCustomJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedEnumerable<ListCustomJobsResponse, CustomJob> response = jobServiceClient.ListCustomJobs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (CustomJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCustomJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CustomJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CustomJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CustomJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCustomJobs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListCustomJobsResponse, CustomJob> ListCustomJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists CustomJobs in a Location.

Parameters
Name Description
parent string

Required. The resource name of the Location to list the CustomJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListCustomJobsResponseCustomJob

A pageable sequence of CustomJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListCustomJobsResponse, CustomJob> response = jobServiceClient.ListCustomJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CustomJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCustomJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CustomJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CustomJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CustomJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCustomJobsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListCustomJobsResponse, CustomJob> ListCustomJobsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists CustomJobs in a Location.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to list the CustomJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListCustomJobsResponseCustomJob

A pageable asynchronous sequence of CustomJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListCustomJobsResponse, CustomJob> response = jobServiceClient.ListCustomJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CustomJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCustomJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CustomJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CustomJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CustomJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCustomJobsAsync(ListCustomJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListCustomJobsResponse, CustomJob> ListCustomJobsAsync(ListCustomJobsRequest request, CallSettings callSettings = null)

Lists CustomJobs in a Location.

Parameters
Name Description
request ListCustomJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListCustomJobsResponseCustomJob

A pageable asynchronous sequence of CustomJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ListCustomJobsRequest request = new ListCustomJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedAsyncEnumerable<ListCustomJobsResponse, CustomJob> response = jobServiceClient.ListCustomJobsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CustomJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCustomJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CustomJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CustomJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CustomJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCustomJobsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListCustomJobsResponse, CustomJob> ListCustomJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists CustomJobs in a Location.

Parameters
Name Description
parent string

Required. The resource name of the Location to list the CustomJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListCustomJobsResponseCustomJob

A pageable asynchronous sequence of CustomJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListCustomJobsResponse, CustomJob> response = jobServiceClient.ListCustomJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CustomJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCustomJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CustomJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CustomJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CustomJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDataLabelingJobs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListDataLabelingJobsResponse, DataLabelingJob> ListDataLabelingJobs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DataLabelingJobs in a Location.

Parameters
Name Description
parent LocationName

Required. The parent of the DataLabelingJob. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListDataLabelingJobsResponseDataLabelingJob

A pageable sequence of DataLabelingJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDataLabelingJobsResponse, DataLabelingJob> response = jobServiceClient.ListDataLabelingJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DataLabelingJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDataLabelingJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DataLabelingJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DataLabelingJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DataLabelingJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDataLabelingJobs(ListDataLabelingJobsRequest, CallSettings)

public virtual PagedEnumerable<ListDataLabelingJobsResponse, DataLabelingJob> ListDataLabelingJobs(ListDataLabelingJobsRequest request, CallSettings callSettings = null)

Lists DataLabelingJobs in a Location.

Parameters
Name Description
request ListDataLabelingJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListDataLabelingJobsResponseDataLabelingJob

A pageable sequence of DataLabelingJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ListDataLabelingJobsRequest request = new ListDataLabelingJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListDataLabelingJobsResponse, DataLabelingJob> response = jobServiceClient.ListDataLabelingJobs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (DataLabelingJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDataLabelingJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DataLabelingJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DataLabelingJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DataLabelingJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDataLabelingJobs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListDataLabelingJobsResponse, DataLabelingJob> ListDataLabelingJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DataLabelingJobs in a Location.

Parameters
Name Description
parent string

Required. The parent of the DataLabelingJob. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListDataLabelingJobsResponseDataLabelingJob

A pageable sequence of DataLabelingJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListDataLabelingJobsResponse, DataLabelingJob> response = jobServiceClient.ListDataLabelingJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DataLabelingJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDataLabelingJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DataLabelingJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DataLabelingJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DataLabelingJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDataLabelingJobsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDataLabelingJobsResponse, DataLabelingJob> ListDataLabelingJobsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DataLabelingJobs in a Location.

Parameters
Name Description
parent LocationName

Required. The parent of the DataLabelingJob. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListDataLabelingJobsResponseDataLabelingJob

A pageable asynchronous sequence of DataLabelingJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDataLabelingJobsResponse, DataLabelingJob> response = jobServiceClient.ListDataLabelingJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DataLabelingJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDataLabelingJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DataLabelingJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DataLabelingJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DataLabelingJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDataLabelingJobsAsync(ListDataLabelingJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListDataLabelingJobsResponse, DataLabelingJob> ListDataLabelingJobsAsync(ListDataLabelingJobsRequest request, CallSettings callSettings = null)

Lists DataLabelingJobs in a Location.

Parameters
Name Description
request ListDataLabelingJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListDataLabelingJobsResponseDataLabelingJob

A pageable asynchronous sequence of DataLabelingJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ListDataLabelingJobsRequest request = new ListDataLabelingJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListDataLabelingJobsResponse, DataLabelingJob> response = jobServiceClient.ListDataLabelingJobsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DataLabelingJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDataLabelingJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DataLabelingJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DataLabelingJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DataLabelingJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDataLabelingJobsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDataLabelingJobsResponse, DataLabelingJob> ListDataLabelingJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DataLabelingJobs in a Location.

Parameters
Name Description
parent string

Required. The parent of the DataLabelingJob. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListDataLabelingJobsResponseDataLabelingJob

A pageable asynchronous sequence of DataLabelingJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListDataLabelingJobsResponse, DataLabelingJob> response = jobServiceClient.ListDataLabelingJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DataLabelingJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDataLabelingJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DataLabelingJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DataLabelingJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DataLabelingJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListHyperparameterTuningJobs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> ListHyperparameterTuningJobs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists HyperparameterTuningJobs in a Location.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListHyperparameterTuningJobsResponseHyperparameterTuningJob

A pageable sequence of HyperparameterTuningJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> response = jobServiceClient.ListHyperparameterTuningJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (HyperparameterTuningJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListHyperparameterTuningJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (HyperparameterTuningJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<HyperparameterTuningJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (HyperparameterTuningJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListHyperparameterTuningJobs(ListHyperparameterTuningJobsRequest, CallSettings)

public virtual PagedEnumerable<ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> ListHyperparameterTuningJobs(ListHyperparameterTuningJobsRequest request, CallSettings callSettings = null)

Lists HyperparameterTuningJobs in a Location.

Parameters
Name Description
request ListHyperparameterTuningJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListHyperparameterTuningJobsResponseHyperparameterTuningJob

A pageable sequence of HyperparameterTuningJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ListHyperparameterTuningJobsRequest request = new ListHyperparameterTuningJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedEnumerable<ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> response = jobServiceClient.ListHyperparameterTuningJobs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (HyperparameterTuningJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListHyperparameterTuningJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (HyperparameterTuningJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<HyperparameterTuningJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (HyperparameterTuningJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListHyperparameterTuningJobs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> ListHyperparameterTuningJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists HyperparameterTuningJobs in a Location.

Parameters
Name Description
parent string

Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListHyperparameterTuningJobsResponseHyperparameterTuningJob

A pageable sequence of HyperparameterTuningJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> response = jobServiceClient.ListHyperparameterTuningJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (HyperparameterTuningJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListHyperparameterTuningJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (HyperparameterTuningJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<HyperparameterTuningJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (HyperparameterTuningJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListHyperparameterTuningJobsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> ListHyperparameterTuningJobsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists HyperparameterTuningJobs in a Location.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListHyperparameterTuningJobsResponseHyperparameterTuningJob

A pageable asynchronous sequence of HyperparameterTuningJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> response = jobServiceClient.ListHyperparameterTuningJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((HyperparameterTuningJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListHyperparameterTuningJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (HyperparameterTuningJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<HyperparameterTuningJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (HyperparameterTuningJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListHyperparameterTuningJobsAsync(ListHyperparameterTuningJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> ListHyperparameterTuningJobsAsync(ListHyperparameterTuningJobsRequest request, CallSettings callSettings = null)

Lists HyperparameterTuningJobs in a Location.

Parameters
Name Description
request ListHyperparameterTuningJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListHyperparameterTuningJobsResponseHyperparameterTuningJob

A pageable asynchronous sequence of HyperparameterTuningJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ListHyperparameterTuningJobsRequest request = new ListHyperparameterTuningJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedAsyncEnumerable<ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> response = jobServiceClient.ListHyperparameterTuningJobsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((HyperparameterTuningJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListHyperparameterTuningJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (HyperparameterTuningJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<HyperparameterTuningJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (HyperparameterTuningJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListHyperparameterTuningJobsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> ListHyperparameterTuningJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists HyperparameterTuningJobs in a Location.

Parameters
Name Description
parent string

Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListHyperparameterTuningJobsResponseHyperparameterTuningJob

A pageable asynchronous sequence of HyperparameterTuningJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> response = jobServiceClient.ListHyperparameterTuningJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((HyperparameterTuningJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListHyperparameterTuningJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (HyperparameterTuningJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<HyperparameterTuningJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (HyperparameterTuningJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelDeploymentMonitoringJobs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> ListModelDeploymentMonitoringJobs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ModelDeploymentMonitoringJobs in a Location.

Parameters
Name Description
parent LocationName

Required. The parent of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListModelDeploymentMonitoringJobsResponseModelDeploymentMonitoringJob

A pageable sequence of ModelDeploymentMonitoringJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> response = jobServiceClient.ListModelDeploymentMonitoringJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelDeploymentMonitoringJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListModelDeploymentMonitoringJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelDeploymentMonitoringJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelDeploymentMonitoringJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelDeploymentMonitoringJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelDeploymentMonitoringJobs(ListModelDeploymentMonitoringJobsRequest, CallSettings)

public virtual PagedEnumerable<ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> ListModelDeploymentMonitoringJobs(ListModelDeploymentMonitoringJobsRequest request, CallSettings callSettings = null)

Lists ModelDeploymentMonitoringJobs in a Location.

Parameters
Name Description
request ListModelDeploymentMonitoringJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListModelDeploymentMonitoringJobsResponseModelDeploymentMonitoringJob

A pageable sequence of ModelDeploymentMonitoringJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ListModelDeploymentMonitoringJobsRequest request = new ListModelDeploymentMonitoringJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedEnumerable<ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> response = jobServiceClient.ListModelDeploymentMonitoringJobs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelDeploymentMonitoringJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListModelDeploymentMonitoringJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelDeploymentMonitoringJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelDeploymentMonitoringJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelDeploymentMonitoringJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelDeploymentMonitoringJobs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> ListModelDeploymentMonitoringJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ModelDeploymentMonitoringJobs in a Location.

Parameters
Name Description
parent string

Required. The parent of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListModelDeploymentMonitoringJobsResponseModelDeploymentMonitoringJob

A pageable sequence of ModelDeploymentMonitoringJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> response = jobServiceClient.ListModelDeploymentMonitoringJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelDeploymentMonitoringJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListModelDeploymentMonitoringJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelDeploymentMonitoringJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelDeploymentMonitoringJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelDeploymentMonitoringJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelDeploymentMonitoringJobsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> ListModelDeploymentMonitoringJobsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ModelDeploymentMonitoringJobs in a Location.

Parameters
Name Description
parent LocationName

Required. The parent of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListModelDeploymentMonitoringJobsResponseModelDeploymentMonitoringJob

A pageable asynchronous sequence of ModelDeploymentMonitoringJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> response = jobServiceClient.ListModelDeploymentMonitoringJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelDeploymentMonitoringJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListModelDeploymentMonitoringJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelDeploymentMonitoringJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelDeploymentMonitoringJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelDeploymentMonitoringJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelDeploymentMonitoringJobsAsync(ListModelDeploymentMonitoringJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> ListModelDeploymentMonitoringJobsAsync(ListModelDeploymentMonitoringJobsRequest request, CallSettings callSettings = null)

Lists ModelDeploymentMonitoringJobs in a Location.

Parameters
Name Description
request ListModelDeploymentMonitoringJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListModelDeploymentMonitoringJobsResponseModelDeploymentMonitoringJob

A pageable asynchronous sequence of ModelDeploymentMonitoringJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ListModelDeploymentMonitoringJobsRequest request = new ListModelDeploymentMonitoringJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedAsyncEnumerable<ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> response = jobServiceClient.ListModelDeploymentMonitoringJobsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelDeploymentMonitoringJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListModelDeploymentMonitoringJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelDeploymentMonitoringJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelDeploymentMonitoringJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelDeploymentMonitoringJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelDeploymentMonitoringJobsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> ListModelDeploymentMonitoringJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ModelDeploymentMonitoringJobs in a Location.

Parameters
Name Description
parent string

Required. The parent of the ModelDeploymentMonitoringJob. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListModelDeploymentMonitoringJobsResponseModelDeploymentMonitoringJob

A pageable asynchronous sequence of ModelDeploymentMonitoringJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> response = jobServiceClient.ListModelDeploymentMonitoringJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelDeploymentMonitoringJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListModelDeploymentMonitoringJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelDeploymentMonitoringJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelDeploymentMonitoringJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelDeploymentMonitoringJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNasJobs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListNasJobsResponse, NasJob> ListNasJobs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists NasJobs in a Location.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to list the NasJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListNasJobsResponseNasJob

A pageable sequence of NasJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListNasJobsResponse, NasJob> response = jobServiceClient.ListNasJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (NasJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNasJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NasJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NasJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NasJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNasJobs(ListNasJobsRequest, CallSettings)

public virtual PagedEnumerable<ListNasJobsResponse, NasJob> ListNasJobs(ListNasJobsRequest request, CallSettings callSettings = null)

Lists NasJobs in a Location.

Parameters
Name Description
request ListNasJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListNasJobsResponseNasJob

A pageable sequence of NasJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ListNasJobsRequest request = new ListNasJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedEnumerable<ListNasJobsResponse, NasJob> response = jobServiceClient.ListNasJobs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (NasJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNasJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NasJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NasJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NasJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNasJobs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListNasJobsResponse, NasJob> ListNasJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists NasJobs in a Location.

Parameters
Name Description
parent string

Required. The resource name of the Location to list the NasJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListNasJobsResponseNasJob

A pageable sequence of NasJob resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListNasJobsResponse, NasJob> response = jobServiceClient.ListNasJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (NasJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNasJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NasJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NasJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NasJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNasJobsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListNasJobsResponse, NasJob> ListNasJobsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists NasJobs in a Location.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to list the NasJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListNasJobsResponseNasJob

A pageable asynchronous sequence of NasJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListNasJobsResponse, NasJob> response = jobServiceClient.ListNasJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NasJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNasJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NasJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NasJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NasJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNasJobsAsync(ListNasJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListNasJobsResponse, NasJob> ListNasJobsAsync(ListNasJobsRequest request, CallSettings callSettings = null)

Lists NasJobs in a Location.

Parameters
Name Description
request ListNasJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListNasJobsResponseNasJob

A pageable asynchronous sequence of NasJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ListNasJobsRequest request = new ListNasJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedAsyncEnumerable<ListNasJobsResponse, NasJob> response = jobServiceClient.ListNasJobsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NasJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNasJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NasJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NasJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NasJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNasJobsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListNasJobsResponse, NasJob> ListNasJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists NasJobs in a Location.

Parameters
Name Description
parent string

Required. The resource name of the Location to list the NasJobs from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListNasJobsResponseNasJob

A pageable asynchronous sequence of NasJob resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListNasJobsResponse, NasJob> response = jobServiceClient.ListNasJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NasJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNasJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NasJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NasJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NasJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNasTrialDetails(ListNasTrialDetailsRequest, CallSettings)

public virtual PagedEnumerable<ListNasTrialDetailsResponse, NasTrialDetail> ListNasTrialDetails(ListNasTrialDetailsRequest request, CallSettings callSettings = null)

List top NasTrialDetails of a NasJob.

Parameters
Name Description
request ListNasTrialDetailsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListNasTrialDetailsResponseNasTrialDetail

A pageable sequence of NasTrialDetail resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ListNasTrialDetailsRequest request = new ListNasTrialDetailsRequest
{
    ParentAsNasJobName = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]"),
};
// Make the request
PagedEnumerable<ListNasTrialDetailsResponse, NasTrialDetail> response = jobServiceClient.ListNasTrialDetails(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (NasTrialDetail item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNasTrialDetailsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NasTrialDetail item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NasTrialDetail> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NasTrialDetail item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNasTrialDetails(NasJobName, string, int?, CallSettings)

public virtual PagedEnumerable<ListNasTrialDetailsResponse, NasTrialDetail> ListNasTrialDetails(NasJobName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List top NasTrialDetails of a NasJob.

Parameters
Name Description
parent NasJobName

Required. The name of the NasJob resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListNasTrialDetailsResponseNasTrialDetail

A pageable sequence of NasTrialDetail resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
NasJobName parent = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]");
// Make the request
PagedEnumerable<ListNasTrialDetailsResponse, NasTrialDetail> response = jobServiceClient.ListNasTrialDetails(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (NasTrialDetail item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNasTrialDetailsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NasTrialDetail item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NasTrialDetail> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NasTrialDetail item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNasTrialDetails(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListNasTrialDetailsResponse, NasTrialDetail> ListNasTrialDetails(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List top NasTrialDetails of a NasJob.

Parameters
Name Description
parent string

Required. The name of the NasJob resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListNasTrialDetailsResponseNasTrialDetail

A pageable sequence of NasTrialDetail resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]";
// Make the request
PagedEnumerable<ListNasTrialDetailsResponse, NasTrialDetail> response = jobServiceClient.ListNasTrialDetails(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (NasTrialDetail item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNasTrialDetailsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NasTrialDetail item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NasTrialDetail> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NasTrialDetail item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNasTrialDetailsAsync(ListNasTrialDetailsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListNasTrialDetailsResponse, NasTrialDetail> ListNasTrialDetailsAsync(ListNasTrialDetailsRequest request, CallSettings callSettings = null)

List top NasTrialDetails of a NasJob.

Parameters
Name Description
request ListNasTrialDetailsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListNasTrialDetailsResponseNasTrialDetail

A pageable asynchronous sequence of NasTrialDetail resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ListNasTrialDetailsRequest request = new ListNasTrialDetailsRequest
{
    ParentAsNasJobName = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]"),
};
// Make the request
PagedAsyncEnumerable<ListNasTrialDetailsResponse, NasTrialDetail> response = jobServiceClient.ListNasTrialDetailsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NasTrialDetail item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNasTrialDetailsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NasTrialDetail item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NasTrialDetail> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NasTrialDetail item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNasTrialDetailsAsync(NasJobName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListNasTrialDetailsResponse, NasTrialDetail> ListNasTrialDetailsAsync(NasJobName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List top NasTrialDetails of a NasJob.

Parameters
Name Description
parent NasJobName

Required. The name of the NasJob resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListNasTrialDetailsResponseNasTrialDetail

A pageable asynchronous sequence of NasTrialDetail resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
NasJobName parent = NasJobName.FromProjectLocationNasJob("[PROJECT]", "[LOCATION]", "[NAS_JOB]");
// Make the request
PagedAsyncEnumerable<ListNasTrialDetailsResponse, NasTrialDetail> response = jobServiceClient.ListNasTrialDetailsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NasTrialDetail item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNasTrialDetailsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NasTrialDetail item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NasTrialDetail> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NasTrialDetail item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNasTrialDetailsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListNasTrialDetailsResponse, NasTrialDetail> ListNasTrialDetailsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List top NasTrialDetails of a NasJob.

Parameters
Name Description
parent string

Required. The name of the NasJob resource. Format: projects/{project}/locations/{location}/nasJobs/{nas_job}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListNasTrialDetailsResponseNasTrialDetail

A pageable asynchronous sequence of NasTrialDetail resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/nasJobs/[NAS_JOB]";
// Make the request
PagedAsyncEnumerable<ListNasTrialDetailsResponse, NasTrialDetail> response = jobServiceClient.ListNasTrialDetailsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NasTrialDetail item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNasTrialDetailsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NasTrialDetail item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NasTrialDetail> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NasTrialDetail item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

PauseModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName, CallSettings)

public virtual void PauseModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName name, CallSettings callSettings = null)

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
name ModelDeploymentMonitoringJobName

Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName name = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
// Make the request
jobServiceClient.PauseModelDeploymentMonitoringJob(name);

PauseModelDeploymentMonitoringJob(PauseModelDeploymentMonitoringJobRequest, CallSettings)

public virtual void PauseModelDeploymentMonitoringJob(PauseModelDeploymentMonitoringJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
PauseModelDeploymentMonitoringJobRequest request = new PauseModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
};
// Make the request
jobServiceClient.PauseModelDeploymentMonitoringJob(request);

PauseModelDeploymentMonitoringJob(string, CallSettings)

public virtual void PauseModelDeploymentMonitoringJob(string name, CallSettings callSettings = null)

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
name string

Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
// Make the request
jobServiceClient.PauseModelDeploymentMonitoringJob(name);

PauseModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName, CallSettings)

public virtual Task PauseModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName name, CallSettings callSettings = null)

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
name ModelDeploymentMonitoringJobName

Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName name = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
// Make the request
await jobServiceClient.PauseModelDeploymentMonitoringJobAsync(name);

PauseModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName, CancellationToken)

public virtual Task PauseModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName name, CancellationToken cancellationToken)

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
name ModelDeploymentMonitoringJobName

Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName name = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
// Make the request
await jobServiceClient.PauseModelDeploymentMonitoringJobAsync(name);

PauseModelDeploymentMonitoringJobAsync(PauseModelDeploymentMonitoringJobRequest, CallSettings)

public virtual Task PauseModelDeploymentMonitoringJobAsync(PauseModelDeploymentMonitoringJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
PauseModelDeploymentMonitoringJobRequest request = new PauseModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
};
// Make the request
await jobServiceClient.PauseModelDeploymentMonitoringJobAsync(request);

PauseModelDeploymentMonitoringJobAsync(PauseModelDeploymentMonitoringJobRequest, CancellationToken)

public virtual Task PauseModelDeploymentMonitoringJobAsync(PauseModelDeploymentMonitoringJobRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
PauseModelDeploymentMonitoringJobRequest request = new PauseModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
};
// Make the request
await jobServiceClient.PauseModelDeploymentMonitoringJobAsync(request);

PauseModelDeploymentMonitoringJobAsync(string, CallSettings)

public virtual Task PauseModelDeploymentMonitoringJobAsync(string name, CallSettings callSettings = null)

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
name string

Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
// Make the request
await jobServiceClient.PauseModelDeploymentMonitoringJobAsync(name);

PauseModelDeploymentMonitoringJobAsync(string, CancellationToken)

public virtual Task PauseModelDeploymentMonitoringJobAsync(string name, CancellationToken cancellationToken)

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
name string

Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
// Make the request
await jobServiceClient.PauseModelDeploymentMonitoringJobAsync(name);

PollOnceDeleteBatchPredictionJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeleteBatchPredictionJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteBatchPredictionJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The result of polling the operation.

PollOnceDeleteBatchPredictionJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> PollOnceDeleteBatchPredictionJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteBatchPredictionJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteCustomJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeleteCustomJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteCustomJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The result of polling the operation.

PollOnceDeleteCustomJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> PollOnceDeleteCustomJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteCustomJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteDataLabelingJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeleteDataLabelingJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteDataLabelingJob .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The result of polling the operation.

PollOnceDeleteDataLabelingJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> PollOnceDeleteDataLabelingJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteDataLabelingJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteHyperparameterTuningJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeleteHyperparameterTuningJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteHyperparameterTuningJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The result of polling the operation.

PollOnceDeleteHyperparameterTuningJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> PollOnceDeleteHyperparameterTuningJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteHyperparameterTuningJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteModelDeploymentMonitoringJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeleteModelDeploymentMonitoringJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteModelDeploymentMonitoringJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The result of polling the operation.

PollOnceDeleteModelDeploymentMonitoringJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> PollOnceDeleteModelDeploymentMonitoringJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteModelDeploymentMonitoringJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteNasJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeleteNasJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteNasJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The result of polling the operation.

PollOnceDeleteNasJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> PollOnceDeleteNasJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteNasJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateModelDeploymentMonitoringJob(string, CallSettings)

public virtual Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> PollOnceUpdateModelDeploymentMonitoringJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateModelDeploymentMonitoringJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationModelDeploymentMonitoringJobUpdateModelDeploymentMonitoringJobOperationMetadata

The result of polling the operation.

PollOnceUpdateModelDeploymentMonitoringJobAsync(string, CallSettings)

public virtual Task<Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata>> PollOnceUpdateModelDeploymentMonitoringJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateModelDeploymentMonitoringJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationModelDeploymentMonitoringJobUpdateModelDeploymentMonitoringJobOperationMetadata

A task representing the result of polling the operation.

ResumeModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName, CallSettings)

public virtual void ResumeModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName name, CallSettings callSettings = null)

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

Parameters
Name Description
name ModelDeploymentMonitoringJobName

Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName name = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
// Make the request
jobServiceClient.ResumeModelDeploymentMonitoringJob(name);

ResumeModelDeploymentMonitoringJob(ResumeModelDeploymentMonitoringJobRequest, CallSettings)

public virtual void ResumeModelDeploymentMonitoringJob(ResumeModelDeploymentMonitoringJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ResumeModelDeploymentMonitoringJobRequest request = new ResumeModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
};
// Make the request
jobServiceClient.ResumeModelDeploymentMonitoringJob(request);

ResumeModelDeploymentMonitoringJob(string, CallSettings)

public virtual void ResumeModelDeploymentMonitoringJob(string name, CallSettings callSettings = null)

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

Parameters
Name Description
name string

Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
// Make the request
jobServiceClient.ResumeModelDeploymentMonitoringJob(name);

ResumeModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName, CallSettings)

public virtual Task ResumeModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName name, CallSettings callSettings = null)

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

Parameters
Name Description
name ModelDeploymentMonitoringJobName

Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName name = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
// Make the request
await jobServiceClient.ResumeModelDeploymentMonitoringJobAsync(name);

ResumeModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName, CancellationToken)

public virtual Task ResumeModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName name, CancellationToken cancellationToken)

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

Parameters
Name Description
name ModelDeploymentMonitoringJobName

Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName name = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
// Make the request
await jobServiceClient.ResumeModelDeploymentMonitoringJobAsync(name);

ResumeModelDeploymentMonitoringJobAsync(ResumeModelDeploymentMonitoringJobRequest, CallSettings)

public virtual Task ResumeModelDeploymentMonitoringJobAsync(ResumeModelDeploymentMonitoringJobRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ResumeModelDeploymentMonitoringJobRequest request = new ResumeModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
};
// Make the request
await jobServiceClient.ResumeModelDeploymentMonitoringJobAsync(request);

ResumeModelDeploymentMonitoringJobAsync(ResumeModelDeploymentMonitoringJobRequest, CancellationToken)

public virtual Task ResumeModelDeploymentMonitoringJobAsync(ResumeModelDeploymentMonitoringJobRequest request, CancellationToken cancellationToken)

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 object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ResumeModelDeploymentMonitoringJobRequest request = new ResumeModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
};
// Make the request
await jobServiceClient.ResumeModelDeploymentMonitoringJobAsync(request);

ResumeModelDeploymentMonitoringJobAsync(string, CallSettings)

public virtual Task ResumeModelDeploymentMonitoringJobAsync(string name, CallSettings callSettings = null)

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

Parameters
Name Description
name string

Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
// Make the request
await jobServiceClient.ResumeModelDeploymentMonitoringJobAsync(name);

ResumeModelDeploymentMonitoringJobAsync(string, CancellationToken)

public virtual Task ResumeModelDeploymentMonitoringJobAsync(string name, CancellationToken cancellationToken)

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

Parameters
Name Description
name string

Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
// Make the request
await jobServiceClient.ResumeModelDeploymentMonitoringJobAsync(name);

SearchModelDeploymentMonitoringStatsAnomalies(ModelDeploymentMonitoringJobName, string, string, int?, CallSettings)

public virtual PagedEnumerable<SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> SearchModelDeploymentMonitoringStatsAnomalies(ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob, string deployedModelId, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Searches Model Monitoring Statistics generated within a given time window.

Parameters
Name Description
modelDeploymentMonitoringJob ModelDeploymentMonitoringJobName

Required. ModelDeploymentMonitoring Job resource name. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

deployedModelId string

Required. The DeployedModel ID of the [ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableSearchModelDeploymentMonitoringStatsAnomaliesResponseModelMonitoringStatsAnomalies

A pageable sequence of ModelMonitoringStatsAnomalies resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
string deployedModelId = "";
// Make the request
PagedEnumerable<SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> response = jobServiceClient.SearchModelDeploymentMonitoringStatsAnomalies(modelDeploymentMonitoringJob, deployedModelId);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitoringStatsAnomalies item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchModelDeploymentMonitoringStatsAnomaliesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringStatsAnomalies item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringStatsAnomalies> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringStatsAnomalies item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelDeploymentMonitoringStatsAnomalies(SearchModelDeploymentMonitoringStatsAnomaliesRequest, CallSettings)

public virtual PagedEnumerable<SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> SearchModelDeploymentMonitoringStatsAnomalies(SearchModelDeploymentMonitoringStatsAnomaliesRequest request, CallSettings callSettings = null)

Searches Model Monitoring Statistics generated within a given time window.

Parameters
Name Description
request SearchModelDeploymentMonitoringStatsAnomaliesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableSearchModelDeploymentMonitoringStatsAnomaliesResponseModelMonitoringStatsAnomalies

A pageable sequence of ModelMonitoringStatsAnomalies resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
SearchModelDeploymentMonitoringStatsAnomaliesRequest request = new SearchModelDeploymentMonitoringStatsAnomaliesRequest
{
    ModelDeploymentMonitoringJobAsModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
    DeployedModelId = "",
    FeatureDisplayName = "",
    Objectives =
    {
        new SearchModelDeploymentMonitoringStatsAnomaliesRequest.Types.StatsAnomaliesObjective(),
    },
    StartTime = new Timestamp(),
    EndTime = new Timestamp(),
};
// Make the request
PagedEnumerable<SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> response = jobServiceClient.SearchModelDeploymentMonitoringStatsAnomalies(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitoringStatsAnomalies item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchModelDeploymentMonitoringStatsAnomaliesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringStatsAnomalies item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringStatsAnomalies> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringStatsAnomalies item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelDeploymentMonitoringStatsAnomalies(string, string, string, int?, CallSettings)

public virtual PagedEnumerable<SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> SearchModelDeploymentMonitoringStatsAnomalies(string modelDeploymentMonitoringJob, string deployedModelId, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Searches Model Monitoring Statistics generated within a given time window.

Parameters
Name Description
modelDeploymentMonitoringJob string

Required. ModelDeploymentMonitoring Job resource name. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

deployedModelId string

Required. The DeployedModel ID of the [ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableSearchModelDeploymentMonitoringStatsAnomaliesResponseModelMonitoringStatsAnomalies

A pageable sequence of ModelMonitoringStatsAnomalies resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string modelDeploymentMonitoringJob = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
string deployedModelId = "";
// Make the request
PagedEnumerable<SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> response = jobServiceClient.SearchModelDeploymentMonitoringStatsAnomalies(modelDeploymentMonitoringJob, deployedModelId);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitoringStatsAnomalies item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchModelDeploymentMonitoringStatsAnomaliesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringStatsAnomalies item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringStatsAnomalies> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringStatsAnomalies item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelDeploymentMonitoringStatsAnomaliesAsync(ModelDeploymentMonitoringJobName, string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> SearchModelDeploymentMonitoringStatsAnomaliesAsync(ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob, string deployedModelId, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Searches Model Monitoring Statistics generated within a given time window.

Parameters
Name Description
modelDeploymentMonitoringJob ModelDeploymentMonitoringJobName

Required. ModelDeploymentMonitoring Job resource name. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

deployedModelId string

Required. The DeployedModel ID of the [ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableSearchModelDeploymentMonitoringStatsAnomaliesResponseModelMonitoringStatsAnomalies

A pageable asynchronous sequence of ModelMonitoringStatsAnomalies resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
string deployedModelId = "";
// Make the request
PagedAsyncEnumerable<SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> response = jobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesAsync(modelDeploymentMonitoringJob, deployedModelId);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitoringStatsAnomalies item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchModelDeploymentMonitoringStatsAnomaliesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringStatsAnomalies item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringStatsAnomalies> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringStatsAnomalies item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelDeploymentMonitoringStatsAnomaliesAsync(SearchModelDeploymentMonitoringStatsAnomaliesRequest, CallSettings)

public virtual PagedAsyncEnumerable<SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> SearchModelDeploymentMonitoringStatsAnomaliesAsync(SearchModelDeploymentMonitoringStatsAnomaliesRequest request, CallSettings callSettings = null)

Searches Model Monitoring Statistics generated within a given time window.

Parameters
Name Description
request SearchModelDeploymentMonitoringStatsAnomaliesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableSearchModelDeploymentMonitoringStatsAnomaliesResponseModelMonitoringStatsAnomalies

A pageable asynchronous sequence of ModelMonitoringStatsAnomalies resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
SearchModelDeploymentMonitoringStatsAnomaliesRequest request = new SearchModelDeploymentMonitoringStatsAnomaliesRequest
{
    ModelDeploymentMonitoringJobAsModelDeploymentMonitoringJobName = ModelDeploymentMonitoringJobName.FromProjectLocationModelDeploymentMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"),
    DeployedModelId = "",
    FeatureDisplayName = "",
    Objectives =
    {
        new SearchModelDeploymentMonitoringStatsAnomaliesRequest.Types.StatsAnomaliesObjective(),
    },
    StartTime = new Timestamp(),
    EndTime = new Timestamp(),
};
// Make the request
PagedAsyncEnumerable<SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> response = jobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitoringStatsAnomalies item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchModelDeploymentMonitoringStatsAnomaliesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringStatsAnomalies item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringStatsAnomalies> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringStatsAnomalies item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelDeploymentMonitoringStatsAnomaliesAsync(string, string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> SearchModelDeploymentMonitoringStatsAnomaliesAsync(string modelDeploymentMonitoringJob, string deployedModelId, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Searches Model Monitoring Statistics generated within a given time window.

Parameters
Name Description
modelDeploymentMonitoringJob string

Required. ModelDeploymentMonitoring Job resource name. Format: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}

deployedModelId string

Required. The DeployedModel ID of the [ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableSearchModelDeploymentMonitoringStatsAnomaliesResponseModelMonitoringStatsAnomalies

A pageable asynchronous sequence of ModelMonitoringStatsAnomalies resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string modelDeploymentMonitoringJob = "projects/[PROJECT]/locations/[LOCATION]/modelDeploymentMonitoringJobs/[MODEL_DEPLOYMENT_MONITORING_JOB]";
string deployedModelId = "";
// Make the request
PagedAsyncEnumerable<SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> response = jobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesAsync(modelDeploymentMonitoringJob, deployedModelId);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitoringStatsAnomalies item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchModelDeploymentMonitoringStatsAnomaliesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringStatsAnomalies item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringStatsAnomalies> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringStatsAnomalies item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateModelDeploymentMonitoringJob(ModelDeploymentMonitoringJob, FieldMask, CallSettings)

public virtual Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> UpdateModelDeploymentMonitoringJob(ModelDeploymentMonitoringJob modelDeploymentMonitoringJob, FieldMask updateMask, CallSettings callSettings = null)

Updates a ModelDeploymentMonitoringJob.

Parameters
Name Description
modelDeploymentMonitoringJob ModelDeploymentMonitoringJob

Required. The model monitoring configuration which replaces the resource on the server.

updateMask FieldMask

Required. The update mask is used to specify the fields to be overwritten in the ModelDeploymentMonitoringJob resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to * to override all fields. For the objective config, the user can either provide the update mask for model_deployment_monitoring_objective_configs or any combination of its nested fields, such as: model_deployment_monitoring_objective_configs.objective_config.training_dataset.

Updatable fields:

  • display_name
  • model_deployment_monitoring_schedule_config
  • model_monitoring_alert_config
  • logging_sampling_strategy
  • labels
  • log_ttl
  • enable_monitoring_pipeline_logs . and
  • model_deployment_monitoring_objective_configs . or
  • model_deployment_monitoring_objective_configs.objective_config.training_dataset
  • model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config
  • model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config
callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationModelDeploymentMonitoringJobUpdateModelDeploymentMonitoringJobOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> response = jobServiceClient.UpdateModelDeploymentMonitoringJob(modelDeploymentMonitoringJob, updateMask);

// Poll until the returned long-running operation is complete
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ModelDeploymentMonitoringJob result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> retrievedResponse = jobServiceClient.PollOnceUpdateModelDeploymentMonitoringJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelDeploymentMonitoringJob retrievedResult = retrievedResponse.Result;
}

UpdateModelDeploymentMonitoringJob(UpdateModelDeploymentMonitoringJobRequest, CallSettings)

public virtual Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> UpdateModelDeploymentMonitoringJob(UpdateModelDeploymentMonitoringJobRequest request, CallSettings callSettings = null)

Updates a ModelDeploymentMonitoringJob.

Parameters
Name Description
request UpdateModelDeploymentMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationModelDeploymentMonitoringJobUpdateModelDeploymentMonitoringJobOperationMetadata

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
UpdateModelDeploymentMonitoringJobRequest request = new UpdateModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> response = jobServiceClient.UpdateModelDeploymentMonitoringJob(request);

// Poll until the returned long-running operation is complete
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ModelDeploymentMonitoringJob result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> retrievedResponse = jobServiceClient.PollOnceUpdateModelDeploymentMonitoringJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelDeploymentMonitoringJob retrievedResult = retrievedResponse.Result;
}

UpdateModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJob, FieldMask, CallSettings)

public virtual Task<Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata>> UpdateModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJob modelDeploymentMonitoringJob, FieldMask updateMask, CallSettings callSettings = null)

Updates a ModelDeploymentMonitoringJob.

Parameters
Name Description
modelDeploymentMonitoringJob ModelDeploymentMonitoringJob

Required. The model monitoring configuration which replaces the resource on the server.

updateMask FieldMask

Required. The update mask is used to specify the fields to be overwritten in the ModelDeploymentMonitoringJob resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to * to override all fields. For the objective config, the user can either provide the update mask for model_deployment_monitoring_objective_configs or any combination of its nested fields, such as: model_deployment_monitoring_objective_configs.objective_config.training_dataset.

Updatable fields:

  • display_name
  • model_deployment_monitoring_schedule_config
  • model_monitoring_alert_config
  • logging_sampling_strategy
  • labels
  • log_ttl
  • enable_monitoring_pipeline_logs . and
  • model_deployment_monitoring_objective_configs . or
  • model_deployment_monitoring_objective_configs.objective_config.training_dataset
  • model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config
  • model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config
callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationModelDeploymentMonitoringJobUpdateModelDeploymentMonitoringJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> response = await jobServiceClient.UpdateModelDeploymentMonitoringJobAsync(modelDeploymentMonitoringJob, updateMask);

// Poll until the returned long-running operation is complete
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelDeploymentMonitoringJob result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceUpdateModelDeploymentMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelDeploymentMonitoringJob retrievedResult = retrievedResponse.Result;
}

UpdateModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJob, FieldMask, CancellationToken)

public virtual Task<Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata>> UpdateModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJob modelDeploymentMonitoringJob, FieldMask updateMask, CancellationToken cancellationToken)

Updates a ModelDeploymentMonitoringJob.

Parameters
Name Description
modelDeploymentMonitoringJob ModelDeploymentMonitoringJob

Required. The model monitoring configuration which replaces the resource on the server.

updateMask FieldMask

Required. The update mask is used to specify the fields to be overwritten in the ModelDeploymentMonitoringJob resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to * to override all fields. For the objective config, the user can either provide the update mask for model_deployment_monitoring_objective_configs or any combination of its nested fields, such as: model_deployment_monitoring_objective_configs.objective_config.training_dataset.

Updatable fields:

  • display_name
  • model_deployment_monitoring_schedule_config
  • model_monitoring_alert_config
  • logging_sampling_strategy
  • labels
  • log_ttl
  • enable_monitoring_pipeline_logs . and
  • model_deployment_monitoring_objective_configs . or
  • model_deployment_monitoring_objective_configs.objective_config.training_dataset
  • model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config
  • model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config
cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationModelDeploymentMonitoringJobUpdateModelDeploymentMonitoringJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> response = await jobServiceClient.UpdateModelDeploymentMonitoringJobAsync(modelDeploymentMonitoringJob, updateMask);

// Poll until the returned long-running operation is complete
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelDeploymentMonitoringJob result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceUpdateModelDeploymentMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelDeploymentMonitoringJob retrievedResult = retrievedResponse.Result;
}

UpdateModelDeploymentMonitoringJobAsync(UpdateModelDeploymentMonitoringJobRequest, CallSettings)

public virtual Task<Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata>> UpdateModelDeploymentMonitoringJobAsync(UpdateModelDeploymentMonitoringJobRequest request, CallSettings callSettings = null)

Updates a ModelDeploymentMonitoringJob.

Parameters
Name Description
request UpdateModelDeploymentMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationModelDeploymentMonitoringJobUpdateModelDeploymentMonitoringJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateModelDeploymentMonitoringJobRequest request = new UpdateModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> response = await jobServiceClient.UpdateModelDeploymentMonitoringJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelDeploymentMonitoringJob result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceUpdateModelDeploymentMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelDeploymentMonitoringJob retrievedResult = retrievedResponse.Result;
}

UpdateModelDeploymentMonitoringJobAsync(UpdateModelDeploymentMonitoringJobRequest, CancellationToken)

public virtual Task<Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata>> UpdateModelDeploymentMonitoringJobAsync(UpdateModelDeploymentMonitoringJobRequest request, CancellationToken cancellationToken)

Updates a ModelDeploymentMonitoringJob.

Parameters
Name Description
request UpdateModelDeploymentMonitoringJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationModelDeploymentMonitoringJobUpdateModelDeploymentMonitoringJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateModelDeploymentMonitoringJobRequest request = new UpdateModelDeploymentMonitoringJobRequest
{
    ModelDeploymentMonitoringJob = new ModelDeploymentMonitoringJob(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> response = await jobServiceClient.UpdateModelDeploymentMonitoringJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelDeploymentMonitoringJob result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceUpdateModelDeploymentMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelDeploymentMonitoringJob retrievedResult = retrievedResponse.Result;
}