Class JobServiceClient (1.3.0)

public abstract class JobServiceClient

JobService client wrapper, for convenient use.

Inheritance

Object > JobServiceClient

Derived Types

Namespace

Google.Cloud.Talent.V4

Assembly

Google.Cloud.Talent.V4.dll

Remarks

A service handles job management, including job CRUD, enumeration and search.

Properties

BatchCreateJobsOperationsClient

public virtual OperationsClient BatchCreateJobsOperationsClient { get; }

The long-running operations client for BatchCreateJobs.

Property Value
TypeDescription
OperationsClient

BatchDeleteJobsOperationsClient

public virtual OperationsClient BatchDeleteJobsOperationsClient { get; }

The long-running operations client for BatchDeleteJobs.

Property Value
TypeDescription
OperationsClient

BatchUpdateJobsOperationsClient

public virtual OperationsClient BatchUpdateJobsOperationsClient { get; }

The long-running operations client for BatchUpdateJobs.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default JobService scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

GrpcClient

public virtual JobService.JobServiceClient GrpcClient { get; }

The underlying gRPC JobService client

Property Value
TypeDescription
JobService.JobServiceClient

Methods

BatchCreateJobs(BatchCreateJobsRequest, CallSettings)

public virtual Operation<BatchCreateJobsResponse, BatchOperationMetadata> BatchCreateJobs(BatchCreateJobsRequest request, CallSettings callSettings = null)

Begins executing a batch create jobs operation.

Parameters
NameDescription
requestBatchCreateJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchCreateJobsResponse, BatchOperationMetadata>

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
BatchCreateJobsRequest request = new BatchCreateJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Jobs = { new Job(), },
};
// Make the request
Operation<BatchCreateJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(request);

// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchCreateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateJobs(TenantName, IEnumerable<Job>, CallSettings)

public virtual Operation<BatchCreateJobsResponse, BatchOperationMetadata> BatchCreateJobs(TenantName parent, IEnumerable<Job> jobs, CallSettings callSettings = null)

Begins executing a batch create jobs operation.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobsIEnumerable<Job>

Required. The jobs to be created. A maximum of 200 jobs can be created in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchCreateJobsResponse, BatchOperationMetadata>

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<BatchCreateJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchCreateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateJobs(String, IEnumerable<Job>, CallSettings)

public virtual Operation<BatchCreateJobsResponse, BatchOperationMetadata> BatchCreateJobs(string parent, IEnumerable<Job> jobs, CallSettings callSettings = null)

Begins executing a batch create jobs operation.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobsIEnumerable<Job>

Required. The jobs to be created. A maximum of 200 jobs can be created in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchCreateJobsResponse, BatchOperationMetadata>

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<BatchCreateJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchCreateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(BatchCreateJobsRequest, CallSettings)

public virtual Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>> BatchCreateJobsAsync(BatchCreateJobsRequest request, CallSettings callSettings = null)

Begins executing a batch create jobs operation.

Parameters
NameDescription
requestBatchCreateJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateJobsRequest request = new BatchCreateJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Jobs = { new Job(), },
};
// Make the request
Operation<BatchCreateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(BatchCreateJobsRequest, CancellationToken)

public virtual Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>> BatchCreateJobsAsync(BatchCreateJobsRequest request, CancellationToken cancellationToken)

Begins executing a batch create jobs operation.

Parameters
NameDescription
requestBatchCreateJobsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateJobsRequest request = new BatchCreateJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Jobs = { new Job(), },
};
// Make the request
Operation<BatchCreateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(TenantName, IEnumerable<Job>, CallSettings)

public virtual Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>> BatchCreateJobsAsync(TenantName parent, IEnumerable<Job> jobs, CallSettings callSettings = null)

Begins executing a batch create jobs operation.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobsIEnumerable<Job>

Required. The jobs to be created. A maximum of 200 jobs can be created in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<BatchCreateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(TenantName, IEnumerable<Job>, CancellationToken)

public virtual Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>> BatchCreateJobsAsync(TenantName parent, IEnumerable<Job> jobs, CancellationToken cancellationToken)

Begins executing a batch create jobs operation.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobsIEnumerable<Job>

Required. The jobs to be created. A maximum of 200 jobs can be created in a batch.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<BatchCreateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(String, IEnumerable<Job>, CallSettings)

public virtual Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>> BatchCreateJobsAsync(string parent, IEnumerable<Job> jobs, CallSettings callSettings = null)

Begins executing a batch create jobs operation.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobsIEnumerable<Job>

Required. The jobs to be created. A maximum of 200 jobs can be created in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<BatchCreateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(String, IEnumerable<Job>, CancellationToken)

public virtual Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>> BatchCreateJobsAsync(string parent, IEnumerable<Job> jobs, CancellationToken cancellationToken)

Begins executing a batch create jobs operation.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobsIEnumerable<Job>

Required. The jobs to be created. A maximum of 200 jobs can be created in a batch.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<BatchCreateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchDeleteJobs(BatchDeleteJobsRequest, CallSettings)

public virtual Operation<BatchDeleteJobsResponse, BatchOperationMetadata> BatchDeleteJobs(BatchDeleteJobsRequest request, CallSettings callSettings = null)

Begins executing a batch delete jobs operation.

Parameters
NameDescription
requestBatchDeleteJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchDeleteJobsResponse, BatchOperationMetadata>

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
BatchDeleteJobsRequest request = new BatchDeleteJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    JobNames =
    {
        JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
    },
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchDeleteJobs(request);

// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchDeleteJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchDeleteJobs(TenantName, IEnumerable<JobName>, CallSettings)

public virtual Operation<BatchDeleteJobsResponse, BatchOperationMetadata> BatchDeleteJobs(TenantName parent, IEnumerable<JobName> names, CallSettings callSettings = null)

Begins executing a batch delete jobs operation.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

The parent of all of the jobs specified in names must match this field.

namesIEnumerable<JobName>

The names of the jobs to delete.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

A maximum of 200 jobs can be deleted in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchDeleteJobsResponse, BatchOperationMetadata>

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<JobName> names = new JobName[]
{
    JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchDeleteJobs(parent, names);

// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchDeleteJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchDeleteJobs(String, IEnumerable<String>, CallSettings)

public virtual Operation<BatchDeleteJobsResponse, BatchOperationMetadata> BatchDeleteJobs(string parent, IEnumerable<string> names, CallSettings callSettings = null)

Begins executing a batch delete jobs operation.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

The parent of all of the jobs specified in names must match this field.

namesIEnumerable<String>

The names of the jobs to delete.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

A maximum of 200 jobs can be deleted in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchDeleteJobsResponse, BatchOperationMetadata>

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<string> names = new string[]
{
    "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]",
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchDeleteJobs(parent, names);

// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchDeleteJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchDeleteJobsAsync(BatchDeleteJobsRequest, CallSettings)

public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> BatchDeleteJobsAsync(BatchDeleteJobsRequest request, CallSettings callSettings = null)

Begins executing a batch delete jobs operation.

Parameters
NameDescription
requestBatchDeleteJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteJobsRequest request = new BatchDeleteJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    JobNames =
    {
        JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
    },
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchDeleteJobsAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchDeleteJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchDeleteJobsAsync(BatchDeleteJobsRequest, CancellationToken)

public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> BatchDeleteJobsAsync(BatchDeleteJobsRequest request, CancellationToken cancellationToken)

Begins executing a batch delete jobs operation.

Parameters
NameDescription
requestBatchDeleteJobsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteJobsRequest request = new BatchDeleteJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    JobNames =
    {
        JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
    },
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchDeleteJobsAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchDeleteJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchDeleteJobsAsync(TenantName, IEnumerable<JobName>, CallSettings)

public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> BatchDeleteJobsAsync(TenantName parent, IEnumerable<JobName> names, CallSettings callSettings = null)

Begins executing a batch delete jobs operation.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

The parent of all of the jobs specified in names must match this field.

namesIEnumerable<JobName>

The names of the jobs to delete.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

A maximum of 200 jobs can be deleted in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<JobName> names = new JobName[]
{
    JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchDeleteJobsAsync(parent, names);

// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchDeleteJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchDeleteJobsAsync(TenantName, IEnumerable<JobName>, CancellationToken)

public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> BatchDeleteJobsAsync(TenantName parent, IEnumerable<JobName> names, CancellationToken cancellationToken)

Begins executing a batch delete jobs operation.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

The parent of all of the jobs specified in names must match this field.

namesIEnumerable<JobName>

The names of the jobs to delete.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

A maximum of 200 jobs can be deleted in a batch.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<JobName> names = new JobName[]
{
    JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchDeleteJobsAsync(parent, names);

// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchDeleteJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchDeleteJobsAsync(String, IEnumerable<String>, CallSettings)

public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> BatchDeleteJobsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)

Begins executing a batch delete jobs operation.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

The parent of all of the jobs specified in names must match this field.

namesIEnumerable<String>

The names of the jobs to delete.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

A maximum of 200 jobs can be deleted in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<string> names = new string[]
{
    "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]",
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchDeleteJobsAsync(parent, names);

// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchDeleteJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchDeleteJobsAsync(String, IEnumerable<String>, CancellationToken)

public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> BatchDeleteJobsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)

Begins executing a batch delete jobs operation.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

The parent of all of the jobs specified in names must match this field.

namesIEnumerable<String>

The names of the jobs to delete.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

A maximum of 200 jobs can be deleted in a batch.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<string> names = new string[]
{
    "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]",
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchDeleteJobsAsync(parent, names);

// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchDeleteJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobs(BatchUpdateJobsRequest, CallSettings)

public virtual Operation<BatchUpdateJobsResponse, BatchOperationMetadata> BatchUpdateJobs(BatchUpdateJobsRequest request, CallSettings callSettings = null)

Begins executing a batch update jobs operation.

Parameters
NameDescription
requestBatchUpdateJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchUpdateJobsResponse, BatchOperationMetadata>

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
BatchUpdateJobsRequest request = new BatchUpdateJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Jobs = { new Job(), },
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(request);

// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchUpdateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobs(TenantName, IEnumerable<Job>, CallSettings)

public virtual Operation<BatchUpdateJobsResponse, BatchOperationMetadata> BatchUpdateJobs(TenantName parent, IEnumerable<Job> jobs, CallSettings callSettings = null)

Begins executing a batch update jobs operation.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobsIEnumerable<Job>

Required. The jobs to be updated. A maximum of 200 jobs can be updated in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchUpdateJobsResponse, BatchOperationMetadata>

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchUpdateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobs(String, IEnumerable<Job>, CallSettings)

public virtual Operation<BatchUpdateJobsResponse, BatchOperationMetadata> BatchUpdateJobs(string parent, IEnumerable<Job> jobs, CallSettings callSettings = null)

Begins executing a batch update jobs operation.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobsIEnumerable<Job>

Required. The jobs to be updated. A maximum of 200 jobs can be updated in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchUpdateJobsResponse, BatchOperationMetadata>

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchUpdateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(BatchUpdateJobsRequest, CallSettings)

public virtual Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>> BatchUpdateJobsAsync(BatchUpdateJobsRequest request, CallSettings callSettings = null)

Begins executing a batch update jobs operation.

Parameters
NameDescription
requestBatchUpdateJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateJobsRequest request = new BatchUpdateJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Jobs = { new Job(), },
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(BatchUpdateJobsRequest, CancellationToken)

public virtual Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>> BatchUpdateJobsAsync(BatchUpdateJobsRequest request, CancellationToken cancellationToken)

Begins executing a batch update jobs operation.

Parameters
NameDescription
requestBatchUpdateJobsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateJobsRequest request = new BatchUpdateJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Jobs = { new Job(), },
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(TenantName, IEnumerable<Job>, CallSettings)

public virtual Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>> BatchUpdateJobsAsync(TenantName parent, IEnumerable<Job> jobs, CallSettings callSettings = null)

Begins executing a batch update jobs operation.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobsIEnumerable<Job>

Required. The jobs to be updated. A maximum of 200 jobs can be updated in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(TenantName, IEnumerable<Job>, CancellationToken)

public virtual Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>> BatchUpdateJobsAsync(TenantName parent, IEnumerable<Job> jobs, CancellationToken cancellationToken)

Begins executing a batch update jobs operation.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobsIEnumerable<Job>

Required. The jobs to be updated. A maximum of 200 jobs can be updated in a batch.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(String, IEnumerable<Job>, CallSettings)

public virtual Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>> BatchUpdateJobsAsync(string parent, IEnumerable<Job> jobs, CallSettings callSettings = null)

Begins executing a batch update jobs operation.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobsIEnumerable<Job>

Required. The jobs to be updated. A maximum of 200 jobs can be updated in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(String, IEnumerable<Job>, CancellationToken)

public virtual Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>> BatchUpdateJobsAsync(string parent, IEnumerable<Job> jobs, CancellationToken cancellationToken)

Begins executing a batch update jobs operation.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobsIEnumerable<Job>

Required. The jobs to be updated. A maximum of 200 jobs can be updated in a batch.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}

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
TypeDescription
JobServiceClient

The created JobServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<JobServiceClient>

The task representing the created JobServiceClient.

CreateJob(CreateJobRequest, CallSettings)

public virtual Job CreateJob(CreateJobRequest request, CallSettings callSettings = null)

Creates a new job.

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
requestCreateJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Job

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CreateJobRequest request = new CreateJobRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Job = new Job(),
};
// Make the request
Job response = jobServiceClient.CreateJob(request);

CreateJob(TenantName, Job, CallSettings)

public virtual Job CreateJob(TenantName parent, Job job, CallSettings callSettings = null)

Creates a new job.

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobJob

Required. The Job to be created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Job

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
Job job = new Job();
// Make the request
Job response = jobServiceClient.CreateJob(parent, job);

CreateJob(String, Job, CallSettings)

public virtual Job CreateJob(string parent, Job job, CallSettings callSettings = null)

Creates a new job.

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobJob

Required. The Job to be created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Job

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
Job job = new Job();
// Make the request
Job response = jobServiceClient.CreateJob(parent, job);

CreateJobAsync(CreateJobRequest, CallSettings)

public virtual Task<Job> CreateJobAsync(CreateJobRequest request, CallSettings callSettings = null)

Creates a new job.

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
requestCreateJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateJobRequest request = new CreateJobRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Job = new Job(),
};
// Make the request
Job response = await jobServiceClient.CreateJobAsync(request);

CreateJobAsync(CreateJobRequest, CancellationToken)

public virtual Task<Job> CreateJobAsync(CreateJobRequest request, CancellationToken cancellationToken)

Creates a new job.

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
requestCreateJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateJobRequest request = new CreateJobRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Job = new Job(),
};
// Make the request
Job response = await jobServiceClient.CreateJobAsync(request);

CreateJobAsync(TenantName, Job, CallSettings)

public virtual Task<Job> CreateJobAsync(TenantName parent, Job job, CallSettings callSettings = null)

Creates a new job.

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobJob

Required. The Job to be created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
Job job = new Job();
// Make the request
Job response = await jobServiceClient.CreateJobAsync(parent, job);

CreateJobAsync(TenantName, Job, CancellationToken)

public virtual Task<Job> CreateJobAsync(TenantName parent, Job job, CancellationToken cancellationToken)

Creates a new job.

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobJob

Required. The Job to be created.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
Job job = new Job();
// Make the request
Job response = await jobServiceClient.CreateJobAsync(parent, job);

CreateJobAsync(String, Job, CallSettings)

public virtual Task<Job> CreateJobAsync(string parent, Job job, CallSettings callSettings = null)

Creates a new job.

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobJob

Required. The Job to be created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
Job job = new Job();
// Make the request
Job response = await jobServiceClient.CreateJobAsync(parent, job);

CreateJobAsync(String, Job, CancellationToken)

public virtual Task<Job> CreateJobAsync(string parent, Job job, CancellationToken cancellationToken)

Creates a new job.

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

jobJob

Required. The Job to be created.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
Job job = new Job();
// Make the request
Job response = await jobServiceClient.CreateJobAsync(parent, job);

DeleteJob(DeleteJobRequest, CallSettings)

public virtual void DeleteJob(DeleteJobRequest request, CallSettings callSettings = null)

Deletes the specified job.

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
requestDeleteJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
DeleteJobRequest request = new DeleteJobRequest
{
    JobName = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
jobServiceClient.DeleteJob(request);

DeleteJob(JobName, CallSettings)

public virtual void DeleteJob(JobName name, CallSettings callSettings = null)

Deletes the specified job.

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
nameJobName

Required. The resource name of the job to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
JobName name = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]");
// Make the request
jobServiceClient.DeleteJob(name);

DeleteJob(String, CallSettings)

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

Deletes the specified job.

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
nameString

Required. The resource name of the job to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]";
// Make the request
jobServiceClient.DeleteJob(name);

DeleteJobAsync(DeleteJobRequest, CallSettings)

public virtual Task DeleteJobAsync(DeleteJobRequest request, CallSettings callSettings = null)

Deletes the specified job.

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
requestDeleteJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteJobRequest request = new DeleteJobRequest
{
    JobName = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
await jobServiceClient.DeleteJobAsync(request);

DeleteJobAsync(DeleteJobRequest, CancellationToken)

public virtual Task DeleteJobAsync(DeleteJobRequest request, CancellationToken cancellationToken)

Deletes the specified job.

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
requestDeleteJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteJobRequest request = new DeleteJobRequest
{
    JobName = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
await jobServiceClient.DeleteJobAsync(request);

DeleteJobAsync(JobName, CallSettings)

public virtual Task DeleteJobAsync(JobName name, CallSettings callSettings = null)

Deletes the specified job.

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
nameJobName

Required. The resource name of the job to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
JobName name = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]");
// Make the request
await jobServiceClient.DeleteJobAsync(name);

DeleteJobAsync(JobName, CancellationToken)

public virtual Task DeleteJobAsync(JobName name, CancellationToken cancellationToken)

Deletes the specified job.

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
nameJobName

Required. The resource name of the job to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
JobName name = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]");
// Make the request
await jobServiceClient.DeleteJobAsync(name);

DeleteJobAsync(String, CallSettings)

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

Deletes the specified job.

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
nameString

Required. The resource name of the job to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]";
// Make the request
await jobServiceClient.DeleteJobAsync(name);

DeleteJobAsync(String, CancellationToken)

public virtual Task DeleteJobAsync(string name, CancellationToken cancellationToken)

Deletes the specified job.

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
nameString

Required. The resource name of the job to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]";
// Make the request
await jobServiceClient.DeleteJobAsync(name);

GetJob(GetJobRequest, CallSettings)

public virtual Job GetJob(GetJobRequest request, CallSettings callSettings = null)

Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.

Parameters
NameDescription
requestGetJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Job

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
GetJobRequest request = new GetJobRequest
{
    JobName = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
Job response = jobServiceClient.GetJob(request);

GetJob(JobName, CallSettings)

public virtual Job GetJob(JobName name, CallSettings callSettings = null)

Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.

Parameters
NameDescription
nameJobName

Required. The resource name of the job to retrieve.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Job

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
JobName name = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]");
// Make the request
Job response = jobServiceClient.GetJob(name);

GetJob(String, CallSettings)

public virtual Job GetJob(string name, CallSettings callSettings = null)

Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.

Parameters
NameDescription
nameString

Required. The resource name of the job to retrieve.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Job

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]";
// Make the request
Job response = jobServiceClient.GetJob(name);

GetJobAsync(GetJobRequest, CallSettings)

public virtual Task<Job> GetJobAsync(GetJobRequest request, CallSettings callSettings = null)

Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.

Parameters
NameDescription
requestGetJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetJobRequest request = new GetJobRequest
{
    JobName = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
Job response = await jobServiceClient.GetJobAsync(request);

GetJobAsync(GetJobRequest, CancellationToken)

public virtual Task<Job> GetJobAsync(GetJobRequest request, CancellationToken cancellationToken)

Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.

Parameters
NameDescription
requestGetJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetJobRequest request = new GetJobRequest
{
    JobName = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
Job response = await jobServiceClient.GetJobAsync(request);

GetJobAsync(JobName, CallSettings)

public virtual Task<Job> GetJobAsync(JobName name, CallSettings callSettings = null)

Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.

Parameters
NameDescription
nameJobName

Required. The resource name of the job to retrieve.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
JobName name = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]");
// Make the request
Job response = await jobServiceClient.GetJobAsync(name);

GetJobAsync(JobName, CancellationToken)

public virtual Task<Job> GetJobAsync(JobName name, CancellationToken cancellationToken)

Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.

Parameters
NameDescription
nameJobName

Required. The resource name of the job to retrieve.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
JobName name = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]");
// Make the request
Job response = await jobServiceClient.GetJobAsync(name);

GetJobAsync(String, CallSettings)

public virtual Task<Job> GetJobAsync(string name, CallSettings callSettings = null)

Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.

Parameters
NameDescription
nameString

Required. The resource name of the job to retrieve.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]";
// Make the request
Job response = await jobServiceClient.GetJobAsync(name);

GetJobAsync(String, CancellationToken)

public virtual Task<Job> GetJobAsync(string name, CancellationToken cancellationToken)

Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.

Parameters
NameDescription
nameString

Required. The resource name of the job to retrieve.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]";
// Make the request
Job response = await jobServiceClient.GetJobAsync(name);

ListJobs(ListJobsRequest, CallSettings)

public virtual PagedEnumerable<ListJobsResponse, Job> ListJobs(ListJobsRequest request, CallSettings callSettings = null)

Lists jobs by filter.

Parameters
NameDescription
requestListJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListJobsResponse, Job>

A pageable sequence of Job resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ListJobsRequest request = new ListJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Filter = "",
    JobView = JobView.Unspecified,
};
// Make the request
PagedEnumerable<ListJobsResponse, Job> response = jobServiceClient.ListJobs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Job 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 (ListJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Job 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<Job> 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 (Job 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;

ListJobs(TenantName, String, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListJobsResponse, Job> ListJobs(TenantName parent, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists jobs by filter.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

filterString

Required. The filter string specifies the jobs to be enumerated.

Supported operator: =, AND

The fields eligible for filtering are:

  • companyName
  • requisitionId
  • status Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified.

At least one of companyName and requisitionId must present or an INVALID_ARGUMENT error is thrown.

Sample Query:

  • companyName = "projects/foo/tenants/bar/companies/baz"
  • companyName = "projects/foo/tenants/bar/companies/baz" AND requisitionId = "req-1"
  • companyName = "projects/foo/tenants/bar/companies/baz" AND status = "EXPIRED"
  • requisitionId = "req-1"
  • requisitionId = "req-1" AND status = "EXPIRED"
pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListJobsResponse, Job>

A pageable sequence of Job resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
string filter = "";
// Make the request
PagedEnumerable<ListJobsResponse, Job> response = jobServiceClient.ListJobs(parent, filter);

// Iterate over all response items, lazily performing RPCs as required
foreach (Job 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 (ListJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Job 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<Job> 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 (Job 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;

ListJobs(String, String, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListJobsResponse, Job> ListJobs(string parent, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists jobs by filter.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

filterString

Required. The filter string specifies the jobs to be enumerated.

Supported operator: =, AND

The fields eligible for filtering are:

  • companyName
  • requisitionId
  • status Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified.

At least one of companyName and requisitionId must present or an INVALID_ARGUMENT error is thrown.

Sample Query:

  • companyName = "projects/foo/tenants/bar/companies/baz"
  • companyName = "projects/foo/tenants/bar/companies/baz" AND requisitionId = "req-1"
  • companyName = "projects/foo/tenants/bar/companies/baz" AND status = "EXPIRED"
  • requisitionId = "req-1"
  • requisitionId = "req-1" AND status = "EXPIRED"
pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListJobsResponse, Job>

A pageable sequence of Job resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
string filter = "";
// Make the request
PagedEnumerable<ListJobsResponse, Job> response = jobServiceClient.ListJobs(parent, filter);

// Iterate over all response items, lazily performing RPCs as required
foreach (Job 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 (ListJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Job 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<Job> 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 (Job 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;

ListJobsAsync(ListJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListJobsResponse, Job> ListJobsAsync(ListJobsRequest request, CallSettings callSettings = null)

Lists jobs by filter.

Parameters
NameDescription
requestListJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListJobsResponse, Job>

A pageable asynchronous sequence of Job resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ListJobsRequest request = new ListJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Filter = "",
    JobView = JobView.Unspecified,
};
// Make the request
PagedAsyncEnumerable<ListJobsResponse, Job> response = jobServiceClient.ListJobsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Job 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((ListJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Job 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<Job> 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 (Job 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;

ListJobsAsync(TenantName, String, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListJobsResponse, Job> ListJobsAsync(TenantName parent, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists jobs by filter.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

filterString

Required. The filter string specifies the jobs to be enumerated.

Supported operator: =, AND

The fields eligible for filtering are:

  • companyName
  • requisitionId
  • status Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified.

At least one of companyName and requisitionId must present or an INVALID_ARGUMENT error is thrown.

Sample Query:

  • companyName = "projects/foo/tenants/bar/companies/baz"
  • companyName = "projects/foo/tenants/bar/companies/baz" AND requisitionId = "req-1"
  • companyName = "projects/foo/tenants/bar/companies/baz" AND status = "EXPIRED"
  • requisitionId = "req-1"
  • requisitionId = "req-1" AND status = "EXPIRED"
pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListJobsResponse, Job>

A pageable asynchronous sequence of Job resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
string filter = "";
// Make the request
PagedAsyncEnumerable<ListJobsResponse, Job> response = jobServiceClient.ListJobsAsync(parent, filter);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Job 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((ListJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Job 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<Job> 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 (Job 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;

ListJobsAsync(String, String, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListJobsResponse, Job> ListJobsAsync(string parent, string filter, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists jobs by filter.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the job is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

filterString

Required. The filter string specifies the jobs to be enumerated.

Supported operator: =, AND

The fields eligible for filtering are:

  • companyName
  • requisitionId
  • status Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified.

At least one of companyName and requisitionId must present or an INVALID_ARGUMENT error is thrown.

Sample Query:

  • companyName = "projects/foo/tenants/bar/companies/baz"
  • companyName = "projects/foo/tenants/bar/companies/baz" AND requisitionId = "req-1"
  • companyName = "projects/foo/tenants/bar/companies/baz" AND status = "EXPIRED"
  • requisitionId = "req-1"
  • requisitionId = "req-1" AND status = "EXPIRED"
pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListJobsResponse, Job>

A pageable asynchronous sequence of Job resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
string filter = "";
// Make the request
PagedAsyncEnumerable<ListJobsResponse, Job> response = jobServiceClient.ListJobsAsync(parent, filter);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Job 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((ListJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Job 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<Job> 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 (Job 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;

PollOnceBatchCreateJobs(String, CallSettings)

public virtual Operation<BatchCreateJobsResponse, BatchOperationMetadata> PollOnceBatchCreateJobs(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of BatchCreateJobs.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchCreateJobsResponse, BatchOperationMetadata>

The result of polling the operation.

PollOnceBatchCreateJobsAsync(String, CallSettings)

public virtual Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>> PollOnceBatchCreateJobsAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of BatchCreateJobs.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>>

A task representing the result of polling the operation.

PollOnceBatchDeleteJobs(String, CallSettings)

public virtual Operation<BatchDeleteJobsResponse, BatchOperationMetadata> PollOnceBatchDeleteJobs(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of BatchDeleteJobs.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchDeleteJobsResponse, BatchOperationMetadata>

The result of polling the operation.

PollOnceBatchDeleteJobsAsync(String, CallSettings)

public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> PollOnceBatchDeleteJobsAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of BatchDeleteJobs.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>>

A task representing the result of polling the operation.

PollOnceBatchUpdateJobs(String, CallSettings)

public virtual Operation<BatchUpdateJobsResponse, BatchOperationMetadata> PollOnceBatchUpdateJobs(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of BatchUpdateJobs.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchUpdateJobsResponse, BatchOperationMetadata>

The result of polling the operation.

PollOnceBatchUpdateJobsAsync(String, CallSettings)

public virtual Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>> PollOnceBatchUpdateJobsAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of BatchUpdateJobs.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>>

A task representing the result of polling the operation.

SearchJobs(SearchJobsRequest, CallSettings)

public virtual SearchJobsResponse SearchJobs(SearchJobsRequest request, CallSettings callSettings = null)

Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].

This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs that the caller has permission to search against.

Parameters
NameDescription
requestSearchJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SearchJobsResponse

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
SearchJobsRequest request = new SearchJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    SearchMode = SearchJobsRequest.Types.SearchMode.Unspecified,
    RequestMetadata = new RequestMetadata(),
    JobQuery = new JobQuery(),
    EnableBroadening = false,
    HistogramQueries =
    {
        new HistogramQuery(),
    },
    JobView = JobView.Unspecified,
    Offset = 0,
    MaxPageSize = 0,
    PageToken = "",
    OrderBy = "",
    DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
    CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
    KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
SearchJobsResponse response = jobServiceClient.SearchJobs(request);

SearchJobsAsync(SearchJobsRequest, CallSettings)

public virtual Task<SearchJobsResponse> SearchJobsAsync(SearchJobsRequest request, CallSettings callSettings = null)

Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].

This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs that the caller has permission to search against.

Parameters
NameDescription
requestSearchJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SearchJobsResponse>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
SearchJobsRequest request = new SearchJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    SearchMode = SearchJobsRequest.Types.SearchMode.Unspecified,
    RequestMetadata = new RequestMetadata(),
    JobQuery = new JobQuery(),
    EnableBroadening = false,
    HistogramQueries =
    {
        new HistogramQuery(),
    },
    JobView = JobView.Unspecified,
    Offset = 0,
    MaxPageSize = 0,
    PageToken = "",
    OrderBy = "",
    DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
    CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
    KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
SearchJobsResponse response = await jobServiceClient.SearchJobsAsync(request);

SearchJobsAsync(SearchJobsRequest, CancellationToken)

public virtual Task<SearchJobsResponse> SearchJobsAsync(SearchJobsRequest request, CancellationToken cancellationToken)

Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].

This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs that the caller has permission to search against.

Parameters
NameDescription
requestSearchJobsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<SearchJobsResponse>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
SearchJobsRequest request = new SearchJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    SearchMode = SearchJobsRequest.Types.SearchMode.Unspecified,
    RequestMetadata = new RequestMetadata(),
    JobQuery = new JobQuery(),
    EnableBroadening = false,
    HistogramQueries =
    {
        new HistogramQuery(),
    },
    JobView = JobView.Unspecified,
    Offset = 0,
    MaxPageSize = 0,
    PageToken = "",
    OrderBy = "",
    DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
    CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
    KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
SearchJobsResponse response = await jobServiceClient.SearchJobsAsync(request);

SearchJobsForAlert(SearchJobsRequest, CallSettings)

public virtual SearchJobsResponse SearchJobsForAlert(SearchJobsRequest request, CallSettings callSettings = null)

Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].

This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), it has different algorithmic adjustments that are designed to specifically target passive job seekers.

This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs the caller has permission to search against.

Parameters
NameDescription
requestSearchJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SearchJobsResponse

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
SearchJobsRequest request = new SearchJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    SearchMode = SearchJobsRequest.Types.SearchMode.Unspecified,
    RequestMetadata = new RequestMetadata(),
    JobQuery = new JobQuery(),
    EnableBroadening = false,
    HistogramQueries =
    {
        new HistogramQuery(),
    },
    JobView = JobView.Unspecified,
    Offset = 0,
    MaxPageSize = 0,
    PageToken = "",
    OrderBy = "",
    DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
    CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
    KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
SearchJobsResponse response = jobServiceClient.SearchJobsForAlert(request);

SearchJobsForAlertAsync(SearchJobsRequest, CallSettings)

public virtual Task<SearchJobsResponse> SearchJobsForAlertAsync(SearchJobsRequest request, CallSettings callSettings = null)

Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].

This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), it has different algorithmic adjustments that are designed to specifically target passive job seekers.

This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs the caller has permission to search against.

Parameters
NameDescription
requestSearchJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SearchJobsResponse>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
SearchJobsRequest request = new SearchJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    SearchMode = SearchJobsRequest.Types.SearchMode.Unspecified,
    RequestMetadata = new RequestMetadata(),
    JobQuery = new JobQuery(),
    EnableBroadening = false,
    HistogramQueries =
    {
        new HistogramQuery(),
    },
    JobView = JobView.Unspecified,
    Offset = 0,
    MaxPageSize = 0,
    PageToken = "",
    OrderBy = "",
    DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
    CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
    KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
SearchJobsResponse response = await jobServiceClient.SearchJobsForAlertAsync(request);

SearchJobsForAlertAsync(SearchJobsRequest, CancellationToken)

public virtual Task<SearchJobsResponse> SearchJobsForAlertAsync(SearchJobsRequest request, CancellationToken cancellationToken)

Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].

This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), it has different algorithmic adjustments that are designed to specifically target passive job seekers.

This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs the caller has permission to search against.

Parameters
NameDescription
requestSearchJobsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<SearchJobsResponse>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
SearchJobsRequest request = new SearchJobsRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    SearchMode = SearchJobsRequest.Types.SearchMode.Unspecified,
    RequestMetadata = new RequestMetadata(),
    JobQuery = new JobQuery(),
    EnableBroadening = false,
    HistogramQueries =
    {
        new HistogramQuery(),
    },
    JobView = JobView.Unspecified,
    Offset = 0,
    MaxPageSize = 0,
    PageToken = "",
    OrderBy = "",
    DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
    CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
    KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
SearchJobsResponse response = await jobServiceClient.SearchJobsForAlertAsync(request);

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
TypeDescription
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.

UpdateJob(Job, FieldMask, CallSettings)

public virtual Job UpdateJob(Job job, FieldMask updateMask, CallSettings callSettings = null)

Updates specified job.

Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
jobJob

Required. The Job to be updated.

updateMaskFieldMask

Strongly recommended for the best service experience.

If [update_mask][google.cloud.talent.v4.UpdateJobRequest.update_mask] is provided, only the specified fields in [job][google.cloud.talent.v4.UpdateJobRequest.job] are updated. Otherwise all the fields are updated.

A field mask to restrict the fields that are updated. Only top level fields of [Job][google.cloud.talent.v4.Job] are supported.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Job

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
Job job = new Job();
FieldMask updateMask = new FieldMask();
// Make the request
Job response = jobServiceClient.UpdateJob(job, updateMask);

UpdateJob(UpdateJobRequest, CallSettings)

public virtual Job UpdateJob(UpdateJobRequest request, CallSettings callSettings = null)

Updates specified job.

Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
requestUpdateJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Job

The RPC response.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
UpdateJobRequest request = new UpdateJobRequest
{
    Job = new Job(),
    UpdateMask = new FieldMask(),
};
// Make the request
Job response = jobServiceClient.UpdateJob(request);

UpdateJobAsync(Job, FieldMask, CallSettings)

public virtual Task<Job> UpdateJobAsync(Job job, FieldMask updateMask, CallSettings callSettings = null)

Updates specified job.

Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
jobJob

Required. The Job to be updated.

updateMaskFieldMask

Strongly recommended for the best service experience.

If [update_mask][google.cloud.talent.v4.UpdateJobRequest.update_mask] is provided, only the specified fields in [job][google.cloud.talent.v4.UpdateJobRequest.job] are updated. Otherwise all the fields are updated.

A field mask to restrict the fields that are updated. Only top level fields of [Job][google.cloud.talent.v4.Job] are supported.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
Job job = new Job();
FieldMask updateMask = new FieldMask();
// Make the request
Job response = await jobServiceClient.UpdateJobAsync(job, updateMask);

UpdateJobAsync(Job, FieldMask, CancellationToken)

public virtual Task<Job> UpdateJobAsync(Job job, FieldMask updateMask, CancellationToken cancellationToken)

Updates specified job.

Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
jobJob

Required. The Job to be updated.

updateMaskFieldMask

Strongly recommended for the best service experience.

If [update_mask][google.cloud.talent.v4.UpdateJobRequest.update_mask] is provided, only the specified fields in [job][google.cloud.talent.v4.UpdateJobRequest.job] are updated. Otherwise all the fields are updated.

A field mask to restrict the fields that are updated. Only top level fields of [Job][google.cloud.talent.v4.Job] are supported.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
Job job = new Job();
FieldMask updateMask = new FieldMask();
// Make the request
Job response = await jobServiceClient.UpdateJobAsync(job, updateMask);

UpdateJobAsync(UpdateJobRequest, CallSettings)

public virtual Task<Job> UpdateJobAsync(UpdateJobRequest request, CallSettings callSettings = null)

Updates specified job.

Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
requestUpdateJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateJobRequest request = new UpdateJobRequest
{
    Job = new Job(),
    UpdateMask = new FieldMask(),
};
// Make the request
Job response = await jobServiceClient.UpdateJobAsync(request);

UpdateJobAsync(UpdateJobRequest, CancellationToken)

public virtual Task<Job> UpdateJobAsync(UpdateJobRequest request, CancellationToken cancellationToken)

Updates specified job.

Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.

Parameters
NameDescription
requestUpdateJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Job>

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateJobRequest request = new UpdateJobRequest
{
    Job = new Job(),
    UpdateMask = new FieldMask(),
};
// Make the request
Job response = await jobServiceClient.UpdateJobAsync(request);