# Interface WorkflowMetadataOrBuilder (4.90.0)

4.90.0 (latest) 4.88.0 4.85.0 4.84.0 4.82.0 4.80.0 4.79.0 4.78.0 4.77.0 4.75.0 4.73.0 4.72.0 4.71.0 4.70.0 4.69.0 4.67.0 4.65.0 4.64.0 4.61.0 4.60.0 4.59.0 4.57.0 4.56.0 4.55.0 4.54.0 4.53.0 4.52.0 4.51.0 4.50.0 4.49.0 4.48.0 4.46.0 4.45.0 4.44.0 4.43.0 4.42.0 4.41.0 4.40.0 4.39.0 4.38.0 4.37.0 4.36.0 4.34.0 4.33.0 4.32.0 4.31.0 4.30.0 4.29.0 4.28.0 4.27.0 4.26.0 4.25.0 4.24.0 4.21.0 4.20.0 4.19.0 4.18.0 4.17.0 4.16.0 4.15.0 4.14.0 4.13.0 4.12.0 4.11.0 4.10.0 4.9.0 4.8.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.8 3.1.2 3.0.3 2.3.1

    public interface WorkflowMetadataOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsParameters(String key)

    public abstract boolean containsParameters(String key)

Map from parameter names to values that were used for those parameters.

`map<string, string> parameters = 8;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getClusterName()

    public abstract String getClusterName()

Output only. The name of the target cluster.

`string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The clusterName. |

### getClusterNameBytes()

    public abstract ByteString getClusterNameBytes()

Output only. The name of the target cluster.

`string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for clusterName. |

### getClusterUuid()

    public abstract String getClusterUuid()

Output only. The UUID of target cluster.

`string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The clusterUuid. |

### getClusterUuidBytes()

    public abstract ByteString getClusterUuidBytes()

Output only. The UUID of target cluster.

`string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for clusterUuid. |

### getCreateCluster()

    public abstract ClusterOperation getCreateCluster()

Output only. The create cluster operation metadata.

`
.google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/com.google.cloud.dataproc.v1.ClusterOperation` | The createCluster. |

### getCreateClusterOrBuilder()

    public abstract ClusterOperationOrBuilder getCreateClusterOrBuilder()

Output only. The create cluster operation metadata.

`
.google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/com.google.cloud.dataproc.v1.ClusterOperationOrBuilder` |   |

### getDagEndTime()

    public abstract Timestamp getDagEndTime()

Output only. DAG end time, only set for workflows with
dag_timeout when
DAG ends.

`
.google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The dagEndTime. |

### getDagEndTimeOrBuilder()

    public abstract TimestampOrBuilder getDagEndTimeOrBuilder()

Output only. DAG end time, only set for workflows with
dag_timeout when
DAG ends.

`
.google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getDagStartTime()

    public abstract Timestamp getDagStartTime()

Output only. DAG start time, only set for workflows with
dag_timeout when
DAG begins.

`
.google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The dagStartTime. |

### getDagStartTimeOrBuilder()

    public abstract TimestampOrBuilder getDagStartTimeOrBuilder()

Output only. DAG start time, only set for workflows with
dag_timeout when
DAG begins.

`
.google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getDagTimeout()

    public abstract Duration getDagTimeout()

Output only. The timeout duration for the DAG of jobs, expressed in seconds
(see [JSON representation of
duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).

`.google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The dagTimeout. |

### getDagTimeoutOrBuilder()

    public abstract DurationOrBuilder getDagTimeoutOrBuilder()

Output only. The timeout duration for the DAG of jobs, expressed in seconds
(see [JSON representation of
duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).

`.google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### getDeleteCluster()

    public abstract ClusterOperation getDeleteCluster()

Output only. The delete cluster operation metadata.

`
.google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/com.google.cloud.dataproc.v1.ClusterOperation` | The deleteCluster. |

### getDeleteClusterOrBuilder()

    public abstract ClusterOperationOrBuilder getDeleteClusterOrBuilder()

Output only. The delete cluster operation metadata.

`
.google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/com.google.cloud.dataproc.v1.ClusterOperationOrBuilder` |   |

### getEndTime()

    public abstract Timestamp getEndTime()

Output only. Workflow end time.

`.google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The endTime. |

### getEndTimeOrBuilder()

    public abstract TimestampOrBuilder getEndTimeOrBuilder()

Output only. Workflow end time.

`.google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getGraph()

    public abstract WorkflowGraph getGraph()

Output only. The workflow graph.

`
.google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/com.google.cloud.dataproc.v1.WorkflowGraph` | The graph. |

### getGraphOrBuilder()

    public abstract WorkflowGraphOrBuilder getGraphOrBuilder()

Output only. The workflow graph.

`
.google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder` |   |

### getParameters() (deprecated)

    public abstract Map<String,String> getParameters()

Use [#getParametersMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/com.google.cloud.dataproc.v1.WorkflowMetadataOrBuilder#com_google_cloud_dataproc_v1_WorkflowMetadataOrBuilder_getParametersMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getParametersCount()

    public abstract int getParametersCount()

Map from parameter names to values that were used for those parameters.

`map<string, string> parameters = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getParametersMap()

    public abstract Map<String,String> getParametersMap()

Map from parameter names to values that were used for those parameters.

`map<string, string> parameters = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getParametersOrDefault(String key, String defaultValue)

    public abstract String getParametersOrDefault(String key, String defaultValue)

Map from parameter names to values that were used for those parameters.

`map<string, string> parameters = 8;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getParametersOrThrow(String key)

    public abstract String getParametersOrThrow(String key)

Map from parameter names to values that were used for those parameters.

`map<string, string> parameters = 8;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getStartTime()

    public abstract Timestamp getStartTime()

Output only. Workflow start time.

`.google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The startTime. |

### getStartTimeOrBuilder()

    public abstract TimestampOrBuilder getStartTimeOrBuilder()

Output only. Workflow start time.

`.google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getState()

    public abstract WorkflowMetadata.State getState()

Output only. The workflow state.

`
.google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/com.google.cloud.dataproc.v1.WorkflowMetadata.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

Output only. The workflow state.

`
.google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getTemplate()

    public abstract String getTemplate()

Output only. The resource name of the workflow template as described
in <https://cloud.google.com/apis/design/resource_names>.

- For `projects.regions.workflowTemplates`, the resource name of the
  template has the following format:
  `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`

- For `projects.locations.workflowTemplates`, the resource name of the
  template has the following format:
  `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`

`string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The template. |

### getTemplateBytes()

    public abstract ByteString getTemplateBytes()

Output only. The resource name of the workflow template as described
in <https://cloud.google.com/apis/design/resource_names>.

- For `projects.regions.workflowTemplates`, the resource name of the
  template has the following format:
  `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`

- For `projects.locations.workflowTemplates`, the resource name of the
  template has the following format:
  `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`

`string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for template. |

### getVersion()

    public abstract int getVersion()

Output only. The version of template at the time of
workflow instantiation.

`int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The version. |

### hasCreateCluster()

    public abstract boolean hasCreateCluster()

Output only. The create cluster operation metadata.

`
.google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the createCluster field is set. |

### hasDagEndTime()

    public abstract boolean hasDagEndTime()

Output only. DAG end time, only set for workflows with
dag_timeout when
DAG ends.

`
.google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the dagEndTime field is set. |

### hasDagStartTime()

    public abstract boolean hasDagStartTime()

Output only. DAG start time, only set for workflows with
dag_timeout when
DAG begins.

`
.google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the dagStartTime field is set. |

### hasDagTimeout()

    public abstract boolean hasDagTimeout()

Output only. The timeout duration for the DAG of jobs, expressed in seconds
(see [JSON representation of
duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).

`.google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the dagTimeout field is set. |

### hasDeleteCluster()

    public abstract boolean hasDeleteCluster()

Output only. The delete cluster operation metadata.

`
.google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the deleteCluster field is set. |

### hasEndTime()

    public abstract boolean hasEndTime()

Output only. Workflow end time.

`.google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the endTime field is set. |

### hasGraph()

    public abstract boolean hasGraph()

Output only. The workflow graph.

`
.google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the graph field is set. |

### hasStartTime()

    public abstract boolean hasStartTime()

Output only. Workflow start time.

`.google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the startTime field is set. |