# Interface RunOrBuilder (0.85.0)

0.85.0 (latest) 0.83.0 0.80.0 0.79.0 0.77.0 0.75.0 0.74.0 0.73.0 0.72.0 0.70.0 0.68.0 0.67.0 0.66.0 0.65.0 0.64.0 0.62.0 0.60.0 0.59.0 0.56.0 0.55.0 0.54.0 0.52.0 0.51.0 0.50.0 0.49.0 0.48.0 0.47.0 0.46.0 0.45.0 0.44.0 0.43.0 0.41.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.1.0

    public interface RunOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsAttributes(String key)

    public abstract boolean containsAttributes(String key)

Optional. The attributes of the run. Should only be used for the purpose of
non-semantic management (classifying, describing or labeling the run).

Up to 100 attributes are allowed.

`
map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **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` |   |

### getAttributes() (deprecated)

    public abstract Map<String,Value> getAttributes()

Use [#getAttributesMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-datalineage/latest/com.google.cloud.datacatalog.lineage.v1.RunOrBuilder#com_google_cloud_datacatalog_lineage_v1_RunOrBuilder_getAttributesMap__) 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://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html>` |   |

### getAttributesCount()

    public abstract int getAttributesCount()

Optional. The attributes of the run. Should only be used for the purpose of
non-semantic management (classifying, describing or labeling the run).

Up to 100 attributes are allowed.

`
map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getAttributesMap()

    public abstract Map<String,Value> getAttributesMap()

Optional. The attributes of the run. Should only be used for the purpose of
non-semantic management (classifying, describing or labeling the run).

Up to 100 attributes are allowed.

`
map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **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://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html>` |   |

### getAttributesOrDefault(String key, Value defaultValue)

    public abstract Value getAttributesOrDefault(String key, Value defaultValue)

Optional. The attributes of the run. Should only be used for the purpose of
non-semantic management (classifying, describing or labeling the run).

Up to 100 attributes are allowed.

`
map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html` |

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

### getAttributesOrThrow(String key)

    public abstract Value getAttributesOrThrow(String key)

Optional. The attributes of the run. Should only be used for the purpose of
non-semantic management (classifying, describing or labeling the run).

Up to 100 attributes are allowed.

`
map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
`

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

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

### getDisplayName()

    public abstract String getDisplayName()

Optional. A human-readable name you can set to display in a user interface.
Must be not longer than 200 characters and only contain UTF-8 letters
or numbers, spaces or characters like `_-:&.`

`string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getDisplayNameBytes()

    public abstract ByteString getDisplayNameBytes()

Optional. A human-readable name you can set to display in a user interface.
Must be not longer than 200 characters and only contain UTF-8 letters
or numbers, spaces or characters like `_-:&.`

`string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getEndTime()

    public abstract Timestamp getEndTime()

Optional. The timestamp of the end of the run.

`.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### getEndTimeOrBuilder()

    public abstract TimestampOrBuilder getEndTimeOrBuilder()

Optional. The timestamp of the end of the run.

`.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### getName()

    public abstract String getName()

Immutable. The resource name of the run. Format:
`projects/{project}/locations/{location}/processes/{process}/runs/{run}`.
Can be specified or auto-assigned.
{run} must be not longer than 200 characters and only
contain characters in a set: `a-zA-Z0-9_-:.`

`string name = 1 [(.google.api.field_behavior) = IMMUTABLE];`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Immutable. The resource name of the run. Format:
`projects/{project}/locations/{location}/processes/{process}/runs/{run}`.
Can be specified or auto-assigned.
{run} must be not longer than 200 characters and only
contain characters in a set: `a-zA-Z0-9_-:.`

`string name = 1 [(.google.api.field_behavior) = IMMUTABLE];`

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

### getStartTime()

    public abstract Timestamp getStartTime()

Required. The timestamp of the start of the run.

`.google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED];
`

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

### getStartTimeOrBuilder()

    public abstract TimestampOrBuilder getStartTimeOrBuilder()

Required. The timestamp of the start of the run.

`.google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED];
`

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

### getState()

    public abstract Run.State getState()

Required. The state of the run.

`
.google.cloud.datacatalog.lineage.v1.Run.State state = 6 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datalineage/latest/com.google.cloud.datacatalog.lineage.v1.Run.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

Required. The state of the run.

`
.google.cloud.datacatalog.lineage.v1.Run.State state = 6 [(.google.api.field_behavior) = REQUIRED];
`

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

### hasEndTime()

    public abstract boolean hasEndTime()

Optional. The timestamp of the end of the run.

`.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasStartTime()

    public abstract boolean hasStartTime()

Required. The timestamp of the start of the run.

`.google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED];
`

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