5.29.0 (latest) 5.28.0 5.27.0 5.26.0 5.25.0 5.24.0 5.23.0 5.22.0 5.21.0 5.20.0 5.19.0 5.18.0 5.17.0 5.16.0 5.15.0 5.14.0 5.13.0 5.12.0 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0.0 4.0.0 3.4.0 3.3.0 3.2.0 3.1.0

    [BindServiceMethod(typeof(WorkflowTemplateService), "BindService")]
    public abstract class WorkflowTemplateService.WorkflowTemplateServiceBase

Reference documentation and code samples for the Google Cloud Dataproc v1 API class WorkflowTemplateService.WorkflowTemplateServiceBase.

Base class for server-side implementations of WorkflowTemplateService

## Inheritance

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

## 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.Dataproc.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.md.txt)

## Assembly

Google.Cloud.Dataproc.V1.dll

## Methods

### CreateWorkflowTemplate(CreateWorkflowTemplateRequest, ServerCallContext)

    public virtual Task<WorkflowTemplate> CreateWorkflowTemplate(CreateWorkflowTemplateRequest request, ServerCallContext context)

Creates new workflow template.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateWorkflowTemplateRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskWorkflowTemplate` | The response to send back to the client (wrapped by a task). |

### DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest, ServerCallContext)

    public virtual Task<Empty> DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest request, ServerCallContext context)

Deletes a workflow template. It does not cancel in-progress workflows.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteWorkflowTemplateRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskEmpty` | The response to send back to the client (wrapped by a task). |

### GetWorkflowTemplate(GetWorkflowTemplateRequest, ServerCallContext)

    public virtual Task<WorkflowTemplate> GetWorkflowTemplate(GetWorkflowTemplateRequest request, ServerCallContext context)

Retrieves the latest workflow template.

Can retrieve previously instantiated template by specifying optional
version parameter.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetWorkflowTemplateRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskWorkflowTemplate` | The response to send back to the client (wrapped by a task). |

### InstantiateInlineWorkflowTemplate(InstantiateInlineWorkflowTemplateRequest, ServerCallContext)

    public virtual Task<Operation> InstantiateInlineWorkflowTemplate(InstantiateInlineWorkflowTemplateRequest request, ServerCallContext context)

Instantiates a template and begins execution.

This method is equivalent to executing the sequence
\[CreateWorkflowTemplate\]\[google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate\],
\[InstantiateWorkflowTemplate\]\[google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate\],
\[DeleteWorkflowTemplate\]\[google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate\].

The returned Operation can be used to track execution of
workflow by polling
\[operations.get\]\[google.longrunning.Operations.GetOperation\].
The Operation will complete when entire workflow is finished.

The running workflow can be aborted via
\[operations.cancel\]\[google.longrunning.Operations.CancelOperation\].
This will cause any inflight jobs to be cancelled and workflow-owned
clusters to be deleted.

The \[Operation.metadata\]\[google.longrunning.Operation.metadata\] will be
[WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
Also see [Using
WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).

On successful completion,
\[Operation.response\]\[google.longrunning.Operation.response\] will be
\[Empty\]\[google.protobuf.Empty\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `InstantiateInlineWorkflowTemplateRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | The response to send back to the client (wrapped by a task). |

### InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest, ServerCallContext)

    public virtual Task<Operation> InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest request, ServerCallContext context)

Instantiates a template and begins execution.

The returned Operation can be used to track execution of
workflow by polling
\[operations.get\]\[google.longrunning.Operations.GetOperation\].
The Operation will complete when entire workflow is finished.

The running workflow can be aborted via
\[operations.cancel\]\[google.longrunning.Operations.CancelOperation\].
This will cause any inflight jobs to be cancelled and workflow-owned
clusters to be deleted.

The \[Operation.metadata\]\[google.longrunning.Operation.metadata\] will be
[WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
Also see [Using
WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).

On successful completion,
\[Operation.response\]\[google.longrunning.Operation.response\] will be
\[Empty\]\[google.protobuf.Empty\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `InstantiateWorkflowTemplateRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | The response to send back to the client (wrapped by a task). |

### ListWorkflowTemplates(ListWorkflowTemplatesRequest, ServerCallContext)

    public virtual Task<ListWorkflowTemplatesResponse> ListWorkflowTemplates(ListWorkflowTemplatesRequest request, ServerCallContext context)

Lists workflows that match the specified filter in the request.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListWorkflowTemplatesRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListWorkflowTemplatesResponse` | The response to send back to the client (wrapped by a task). |

### UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest, ServerCallContext)

    public virtual Task<WorkflowTemplate> UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest request, ServerCallContext context)

Updates (replaces) workflow template. The updated template
must contain version that matches the current server version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateWorkflowTemplateRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskWorkflowTemplate` | The response to send back to the client (wrapped by a task). |