Google Cloud Talent Solution v4beta1 API - Class JobServiceClient (3.0.0-beta05)

public abstract class JobServiceClient

Reference documentation and code samples for the Google Cloud Talent Solution v4beta1 API class JobServiceClient.

JobService client wrapper, for convenient use.

Inheritance

object > JobServiceClient

Derived Types

Namespace

Google.Cloud.Talent.V4Beta1

Assembly

Google.Cloud.Talent.V4Beta1.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
Type Description
OperationsClient

BatchUpdateJobsOperationsClient

public virtual OperationsClient BatchUpdateJobsOperationsClient { get; }

The long-running operations client for BatchUpdateJobs.

Property Value
Type Description
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
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default JobService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

GrpcClient

public virtual JobService.JobServiceClient GrpcClient { get; }

The underlying gRPC JobService client

Property Value
Type Description
JobServiceJobServiceClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

Methods

BatchCreateJobs(ProjectName, IEnumerable<Job>, CallSettings)

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

Begins executing a batch create jobs operation.

Parameters
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationJobOperationResultBatchOperationMetadata

The RPC response.

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

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchCreateJobs(BatchCreateJobsRequest, CallSettings)

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

Begins executing a batch create jobs operation.

Parameters
Name Description
request BatchCreateJobsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(request);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchCreateJobs(TenantName, IEnumerable<Job>, CallSettings)

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

Begins executing a batch create jobs operation.

Parameters
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchCreateJobs(string, IEnumerable<Job>, CallSettings)

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

Begins executing a batch create jobs operation.

Parameters
Name Description
parent string

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(ProjectName, IEnumerable<Job>, CallSettings)

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

Begins executing a batch create jobs operation.

Parameters
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(ProjectName, IEnumerable<Job>, CancellationToken)

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

Begins executing a batch create jobs operation.

Parameters
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(BatchCreateJobsRequest, CallSettings)

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

Begins executing a batch create jobs operation.

Parameters
Name Description
request BatchCreateJobsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(request);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(BatchCreateJobsRequest, CancellationToken)

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

Begins executing a batch create jobs operation.

Parameters
Name Description
request BatchCreateJobsRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(request);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(TenantName, IEnumerable<Job>, CallSettings)

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

Begins executing a batch create jobs operation.

Parameters
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(TenantName, IEnumerable<Job>, CancellationToken)

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

Begins executing a batch create jobs operation.

Parameters
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(string, IEnumerable<Job>, CallSettings)

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

Begins executing a batch create jobs operation.

Parameters
Name Description
parent string

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchCreateJobsAsync(string, IEnumerable<Job>, CancellationToken)

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

Begins executing a batch create jobs operation.

Parameters
Name Description
parent string

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchDeleteJobs(ProjectName, string, CallSettings)

public virtual void BatchDeleteJobs(ProjectName parent, string filter, CallSettings callSettings = null)

Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.

Parameters
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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

Supported operator: =, AND

The fields eligible for filtering are:

  • companyName (Required)
  • requisitionId (Required)

Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
string filter = "";
// Make the request
jobServiceClient.BatchDeleteJobs(parent, filter);

BatchDeleteJobs(BatchDeleteJobsRequest, CallSettings)

public virtual void BatchDeleteJobs(BatchDeleteJobsRequest request, CallSettings callSettings = null)

Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.

Parameters
Name Description
request BatchDeleteJobsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

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

BatchDeleteJobs(TenantName, string, CallSettings)

public virtual void BatchDeleteJobs(TenantName parent, string filter, CallSettings callSettings = null)

Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.

Parameters
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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

Supported operator: =, AND

The fields eligible for filtering are:

  • companyName (Required)
  • requisitionId (Required)

Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
string filter = "";
// Make the request
jobServiceClient.BatchDeleteJobs(parent, filter);

BatchDeleteJobs(string, string, CallSettings)

public virtual void BatchDeleteJobs(string parent, string filter, CallSettings callSettings = null)

Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.

Parameters
Name Description
parent string

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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

Supported operator: =, AND

The fields eligible for filtering are:

  • companyName (Required)
  • requisitionId (Required)

Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
string filter = "";
// Make the request
jobServiceClient.BatchDeleteJobs(parent, filter);

BatchDeleteJobsAsync(ProjectName, string, CallSettings)

public virtual Task BatchDeleteJobsAsync(ProjectName parent, string filter, CallSettings callSettings = null)

Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.

Parameters
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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

Supported operator: =, AND

The fields eligible for filtering are:

  • companyName (Required)
  • requisitionId (Required)

Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
string filter = "";
// Make the request
await jobServiceClient.BatchDeleteJobsAsync(parent, filter);

BatchDeleteJobsAsync(ProjectName, string, CancellationToken)

public virtual Task BatchDeleteJobsAsync(ProjectName parent, string filter, CancellationToken cancellationToken)

Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.

Parameters
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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

Supported operator: =, AND

The fields eligible for filtering are:

  • companyName (Required)
  • requisitionId (Required)

Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
string filter = "";
// Make the request
await jobServiceClient.BatchDeleteJobsAsync(parent, filter);

BatchDeleteJobsAsync(BatchDeleteJobsRequest, CallSettings)

public virtual Task BatchDeleteJobsAsync(BatchDeleteJobsRequest request, CallSettings callSettings = null)

Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.

Parameters
Name Description
request BatchDeleteJobsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

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

BatchDeleteJobsAsync(BatchDeleteJobsRequest, CancellationToken)

public virtual Task BatchDeleteJobsAsync(BatchDeleteJobsRequest request, CancellationToken cancellationToken)

Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.

Parameters
Name Description
request BatchDeleteJobsRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

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

BatchDeleteJobsAsync(TenantName, string, CallSettings)

public virtual Task BatchDeleteJobsAsync(TenantName parent, string filter, CallSettings callSettings = null)

Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.

Parameters
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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

Supported operator: =, AND

The fields eligible for filtering are:

  • companyName (Required)
  • requisitionId (Required)

Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
string filter = "";
// Make the request
await jobServiceClient.BatchDeleteJobsAsync(parent, filter);

BatchDeleteJobsAsync(TenantName, string, CancellationToken)

public virtual Task BatchDeleteJobsAsync(TenantName parent, string filter, CancellationToken cancellationToken)

Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.

Parameters
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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

Supported operator: =, AND

The fields eligible for filtering are:

  • companyName (Required)
  • requisitionId (Required)

Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
string filter = "";
// Make the request
await jobServiceClient.BatchDeleteJobsAsync(parent, filter);

BatchDeleteJobsAsync(string, string, CallSettings)

public virtual Task BatchDeleteJobsAsync(string parent, string filter, CallSettings callSettings = null)

Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.

Parameters
Name Description
parent string

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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

Supported operator: =, AND

The fields eligible for filtering are:

  • companyName (Required)
  • requisitionId (Required)

Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

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

BatchDeleteJobsAsync(string, string, CancellationToken)

public virtual Task BatchDeleteJobsAsync(string parent, string filter, CancellationToken cancellationToken)

Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.

Parameters
Name Description
parent string

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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

Supported operator: =, AND

The fields eligible for filtering are:

  • companyName (Required)
  • requisitionId (Required)

Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

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

BatchUpdateJobs(ProjectName, IEnumerable<Job>, CallSettings)

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

Begins executing a batch update jobs operation.

Parameters
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationJobOperationResultBatchOperationMetadata

The RPC response.

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

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobs(BatchUpdateJobsRequest, CallSettings)

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

Begins executing a batch update jobs operation.

Parameters
Name Description
request BatchUpdateJobsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(request);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobs(TenantName, IEnumerable<Job>, CallSettings)

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

Begins executing a batch update jobs operation.

Parameters
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobs(string, IEnumerable<Job>, CallSettings)

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

Begins executing a batch update jobs operation.

Parameters
Name Description
parent string

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(ProjectName, IEnumerable<Job>, CallSettings)

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

Begins executing a batch update jobs operation.

Parameters
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(ProjectName, IEnumerable<Job>, CancellationToken)

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

Begins executing a batch update jobs operation.

Parameters
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be updated.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(BatchUpdateJobsRequest, CallSettings)

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

Begins executing a batch update jobs operation.

Parameters
Name Description
request BatchUpdateJobsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(request);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(BatchUpdateJobsRequest, CancellationToken)

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

Begins executing a batch update jobs operation.

Parameters
Name Description
request BatchUpdateJobsRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(request);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(TenantName, IEnumerable<Job>, CallSettings)

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

Begins executing a batch update jobs operation.

Parameters
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(TenantName, IEnumerable<Job>, CancellationToken)

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

Begins executing a batch update jobs operation.

Parameters
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be updated.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(string, IEnumerable<Job>, CallSettings)

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

Begins executing a batch update jobs operation.

Parameters
Name Description
parent string

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult retrievedResult = retrievedResponse.Result;
}

BatchUpdateJobsAsync(string, IEnumerable<Job>, CancellationToken)

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

Begins executing a batch update jobs operation.

Parameters
Name Description
parent string

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

jobs IEnumerableJob

Required. The jobs to be updated.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

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<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);

// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult 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<JobOperationResult, 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
    JobOperationResult 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
Type Description
JobServiceClient

The created JobServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskJobServiceClient

The task representing the created JobServiceClient.

CreateJob(ProjectName, Job, CallSettings)

public virtual Job CreateJob(ProjectName 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
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified a default tenant is created. For example, "projects/foo".

job Job

Required. The Job to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Job

The RPC response.

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

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
Name Description
request CreateJobRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified a default tenant is created. For example, "projects/foo".

job Job

Required. The Job to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
parent string

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/tenant/bar". If tenant id is unspecified a default tenant is created. For example, "projects/foo".

job Job

Required. The Job to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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(ProjectName, Job, CallSettings)

public virtual Task<Job> CreateJobAsync(ProjectName 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
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified a default tenant is created. For example, "projects/foo".

job Job

Required. The Job to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskJob

A Task containing the RPC response.

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

CreateJobAsync(ProjectName, Job, CancellationToken)

public virtual Task<Job> CreateJobAsync(ProjectName 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
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified a default tenant is created. For example, "projects/foo".

job Job

Required. The Job to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskJob

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
Job job = new Job();
// Make the request
Job response = await jobServiceClient.CreateJobAsync(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
Name Description
request CreateJobRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskJob

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
Name Description
request CreateJobRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskJob

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
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified a default tenant is created. For example, "projects/foo".

job Job

Required. The Job to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskJob

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
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified a default tenant is created. For example, "projects/foo".

job Job

Required. The Job to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskJob

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
Name Description
parent string

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/tenant/bar". If tenant id is unspecified a default tenant is created. For example, "projects/foo".

job Job

Required. The Job to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskJob

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
Name Description
parent string

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/tenant/bar". If tenant id is unspecified a default tenant is created. For example, "projects/foo".

job Job

Required. The Job to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskJob

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
Name Description
request DeleteJobRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
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
Name Description
name JobName

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

If tenant id is unspecified, the default tenant is used. For example, "projects/foo/jobs/bar".

callSettings CallSettings

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

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

If tenant id is unspecified, the default tenant is used. For example, "projects/foo/jobs/bar".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/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
Name Description
request DeleteJobRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
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
Name Description
request DeleteJobRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
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
Name Description
name JobName

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

If tenant id is unspecified, the default tenant is used. For example, "projects/foo/jobs/bar".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
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
Name Description
name JobName

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

If tenant id is unspecified, the default tenant is used. For example, "projects/foo/jobs/bar".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
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
Name Description
name string

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

If tenant id is unspecified, the default tenant is used. For example, "projects/foo/jobs/bar".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/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
Name Description
name string

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

If tenant id is unspecified, the default tenant is used. For example, "projects/foo/jobs/bar".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/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
Name Description
request GetJobRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
name JobName

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

If tenant id is unspecified, the default tenant is used. For example, "projects/foo/jobs/bar".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
name string

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

If tenant id is unspecified, the default tenant is used. For example, "projects/foo/jobs/bar".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request GetJobRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskJob

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
Name Description
request GetJobRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskJob

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
Name Description
name JobName

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

If tenant id is unspecified, the default tenant is used. For example, "projects/foo/jobs/bar".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskJob

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
Name Description
name JobName

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

If tenant id is unspecified, the default tenant is used. For example, "projects/foo/jobs/bar".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskJob

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

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

If tenant id is unspecified, the default tenant is used. For example, "projects/foo/jobs/bar".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskJob

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

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

If tenant id is unspecified, the default tenant is used. For example, "projects/foo/jobs/bar".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskJob

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(ProjectName, string, string, int?, CallSettings)

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

Lists jobs by filter.

Parameters
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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"
pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListJobsResponseJob

A pageable sequence of Job resources.

Example
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
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(ListJobsRequest, CallSettings)

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

Lists jobs by filter.

Parameters
Name Description
request ListJobsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListJobsResponseJob

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, int?, CallSettings)

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

Lists jobs by filter.

Parameters
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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"
pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListJobsResponseJob

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, int?, CallSettings)

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

Lists jobs by filter.

Parameters
Name Description
parent string

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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"
pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListJobsResponseJob

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(ProjectName, string, string, int?, CallSettings)

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

Lists jobs by filter.

Parameters
Name Description
parent ProjectName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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"
pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListJobsResponseJob

A pageable asynchronous sequence of Job resources.

Example
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
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(ListJobsRequest, CallSettings)

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

Lists jobs by filter.

Parameters
Name Description
request ListJobsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListJobsResponseJob

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, int?, CallSettings)

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

Lists jobs by filter.

Parameters
Name Description
parent TenantName

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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"
pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListJobsResponseJob

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, int?, CallSettings)

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

Lists jobs by filter.

Parameters
Name Description
parent string

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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

filter string

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"
pageToken string

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

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListJobsResponseJob

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<JobOperationResult, BatchOperationMetadata> PollOnceBatchCreateJobs(string operationName, CallSettings callSettings = null)

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationJobOperationResultBatchOperationMetadata

The result of polling the operation.

PollOnceBatchCreateJobsAsync(string, CallSettings)

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

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

A task representing the result of polling the operation.

PollOnceBatchUpdateJobs(string, CallSettings)

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

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationJobOperationResultBatchOperationMetadata

The result of polling the operation.

PollOnceBatchUpdateJobsAsync(string, CallSettings)

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

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationJobOperationResultBatchOperationMetadata

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.v4beta1.SearchJobsRequest].

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

Parameters
Name Description
request SearchJobsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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,
    PageSize = 0,
    PageToken = "",
    OrderBy = "",
    DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
    CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
    DisableKeywordMatch = false,
    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.v4beta1.SearchJobsRequest].

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

Parameters
Name Description
request SearchJobsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSearchJobsResponse

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,
    PageSize = 0,
    PageToken = "",
    OrderBy = "",
    DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
    CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
    DisableKeywordMatch = false,
    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.v4beta1.SearchJobsRequest].

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

Parameters
Name Description
request SearchJobsRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSearchJobsResponse

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,
    PageSize = 0,
    PageToken = "",
    OrderBy = "",
    DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
    CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
    DisableKeywordMatch = false,
    KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
SearchJobsResponse response = await jobServiceClient.SearchJobsAsync(request);

SearchJobsForAlert(SearchJobsRequest, CallSettings)

public virtual PagedEnumerable<SearchJobsResponse, SearchJobsResponse.Types.MatchingJob> SearchJobsForAlert(SearchJobsRequest request, CallSettings callSettings = null)

Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.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), and has different algorithmic adjustments that are targeted to passive job seekers.

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

Parameters
Name Description
request SearchJobsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableSearchJobsResponseSearchJobsResponseTypesMatchingJob

A pageable sequence of SearchJobsResponse.Types.MatchingJob resources.

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,
    OrderBy = "",
    DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
    CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
    DisableKeywordMatch = false,
    KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
PagedEnumerable<SearchJobsResponse, SearchJobsResponse.Types.MatchingJob> response = jobServiceClient.SearchJobsForAlert(request);

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

SearchJobsForAlertAsync(SearchJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<SearchJobsResponse, SearchJobsResponse.Types.MatchingJob> SearchJobsForAlertAsync(SearchJobsRequest request, CallSettings callSettings = null)

Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.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), and has different algorithmic adjustments that are targeted to passive job seekers.

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

Parameters
Name Description
request SearchJobsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableSearchJobsResponseSearchJobsResponseTypesMatchingJob

A pageable asynchronous sequence of SearchJobsResponse.Types.MatchingJob resources.

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,
    OrderBy = "",
    DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
    CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
    DisableKeywordMatch = false,
    KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
PagedAsyncEnumerable<SearchJobsResponse, SearchJobsResponse.Types.MatchingJob> response = jobServiceClient.SearchJobsForAlertAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SearchJobsResponse.Types.MatchingJob 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((SearchJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SearchJobsResponse.Types.MatchingJob 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<SearchJobsResponse.Types.MatchingJob> 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 (SearchJobsResponse.Types.MatchingJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateJob(Job, CallSettings)

public virtual Job UpdateJob(Job job, 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
Name Description
job Job

Required. The Job to be updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Job

The RPC response.

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

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
Name Description
request UpdateJobRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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, CallSettings)

public virtual Task<Job> UpdateJobAsync(Job job, 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
Name Description
job Job

Required. The Job to be updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskJob

A Task containing the RPC response.

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

UpdateJobAsync(Job, CancellationToken)

public virtual Task<Job> UpdateJobAsync(Job job, 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
Name Description
job Job

Required. The Job to be updated.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskJob

A Task containing the RPC response.

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

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
Name Description
request UpdateJobRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskJob

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
Name Description
request UpdateJobRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskJob

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);