# Google Cloud Scheduler v1 API - Class CloudScheduler.CloudSchedulerBase (3.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)
- [3.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.5.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.4.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.3.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.2.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.1.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.0.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/2.3.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/2.2.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)

    [BindServiceMethod(typeof(CloudScheduler), "BindService")]
    public abstract class CloudScheduler.CloudSchedulerBase

Reference documentation and code samples for the Google Cloud Scheduler v1 API class CloudScheduler.CloudSchedulerBase.

Base class for server-side implementations of CloudScheduler

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CloudScheduler.CloudSchedulerBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Scheduler.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1)

## Assembly

Google.Cloud.Scheduler.V1.dll

## Methods

### CreateJob(CreateJobRequest, ServerCallContext)

    public virtual Task<Job> CreateJob(CreateJobRequest request, ServerCallContext context)

Creates a job.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.CreateJobRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.Job` | The response to send back to the client (wrapped by a task). |

### DeleteJob(DeleteJobRequest, ServerCallContext)

    public virtual Task<Empty> DeleteJob(DeleteJobRequest request, ServerCallContext context)

Deletes a job.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.DeleteJobRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | The response to send back to the client (wrapped by a task). |

### GetJob(GetJobRequest, ServerCallContext)

    public virtual Task<Job> GetJob(GetJobRequest request, ServerCallContext context)

Gets a job.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.GetJobRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.Job` | The response to send back to the client (wrapped by a task). |

### ListJobs(ListJobsRequest, ServerCallContext)

    public virtual Task<ListJobsResponse> ListJobs(ListJobsRequest request, ServerCallContext context)

Lists jobs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.ListJobsRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.ListJobsResponse` | The response to send back to the client (wrapped by a task). |

### PauseJob(PauseJobRequest, ServerCallContext)

    public virtual Task<Job> PauseJob(PauseJobRequest request, ServerCallContext context)

Pauses a job.

If a job is paused then the system will stop executing the job
until it is re-enabled via
\[ResumeJob\]\[google.cloud.scheduler.v1.CloudScheduler.ResumeJob\]. The state
of the job is stored in \[state\]\[google.cloud.scheduler.v1.Job.state\]; if
paused it will be set to
\[Job.State.PAUSED\]\[google.cloud.scheduler.v1.Job.State.PAUSED\]. A job must
be in \[Job.State.ENABLED\]\[google.cloud.scheduler.v1.Job.State.ENABLED\] to
be paused.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.PauseJobRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.Job` | The response to send back to the client (wrapped by a task). |

### ResumeJob(ResumeJobRequest, ServerCallContext)

    public virtual Task<Job> ResumeJob(ResumeJobRequest request, ServerCallContext context)

Resume a job.

This method reenables a job after it has been
\[Job.State.PAUSED\]\[google.cloud.scheduler.v1.Job.State.PAUSED\]. The state
of a job is stored in \[Job.state\]\[google.cloud.scheduler.v1.Job.state\];
after calling this method it will be set to
\[Job.State.ENABLED\]\[google.cloud.scheduler.v1.Job.State.ENABLED\]. A job
must be in \[Job.State.PAUSED\]\[google.cloud.scheduler.v1.Job.State.PAUSED\]
to be resumed.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.ResumeJobRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.Job` | The response to send back to the client (wrapped by a task). |

### RunJob(RunJobRequest, ServerCallContext)

    public virtual Task<Job> RunJob(RunJobRequest request, ServerCallContext context)

Forces a job to run now.

When this method is called, Cloud Scheduler will dispatch the job, even
if the job is already running.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.RunJobRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.Job` | The response to send back to the client (wrapped by a task). |

### UpdateJob(UpdateJobRequest, ServerCallContext)

    public virtual Task<Job> UpdateJob(UpdateJobRequest request, ServerCallContext context)

Updates a job.

If successful, the updated \[Job\]\[google.cloud.scheduler.v1.Job\] is
returned. If the job does not exist, `NOT_FOUND` is returned.

If UpdateJob does not successfully return, it is possible for the
job to be in an
\[Job.State.UPDATE_FAILED\]\[google.cloud.scheduler.v1.Job.State.UPDATE_FAILED\]
state. A job in this state may not be executed. If this happens, retry the
UpdateJob request until a successful response is received.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.UpdateJobRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.Job` | The response to send back to the client (wrapped by a task). |