# Interface CompilationResultOrBuilder (0.92.0)

0.92.0 (latest) 0.90.0 0.87.0 0.86.0 0.84.0 0.82.0 0.81.0 0.80.0 0.79.0 0.77.0 0.75.0 0.74.0 0.73.0 0.72.0 0.71.0 0.69.0 0.67.0 0.66.0 0.63.0 0.62.0 0.61.0 0.59.0 0.58.0 0.57.0 0.56.0 0.55.0 0.54.0 0.53.0 0.52.0 0.51.0 0.50.0 0.48.0 0.47.0 0.46.0 0.45.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.39.0 0.38.0 0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.4

    public interface CompilationResultOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCodeCompilationConfig()

    public abstract CodeCompilationConfig getCodeCompilationConfig()

Immutable. If set, fields of `code_compilation_config` override the default
compilation settings that are specified in dataform.json.

`
.google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dataform/latest/com.google.cloud.dataform.v1.CodeCompilationConfig` | The codeCompilationConfig. |

### getCodeCompilationConfigOrBuilder()

    public abstract CodeCompilationConfigOrBuilder getCodeCompilationConfigOrBuilder()

Immutable. If set, fields of `code_compilation_config` override the default
compilation settings that are specified in dataform.json.

`
.google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
`

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

### getCompilationErrors(int index)

    public abstract CompilationResult.CompilationError getCompilationErrors(int index)

Output only. Errors encountered during project compilation.

`
repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dataform/latest/com.google.cloud.dataform.v1.CompilationResult.CompilationError` |   |

### getCompilationErrorsCount()

    public abstract int getCompilationErrorsCount()

Output only. Errors encountered during project compilation.

`
repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getCompilationErrorsList()

    public abstract List<CompilationResult.CompilationError> getCompilationErrorsList()

Output only. Errors encountered during project compilation.

`
repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-dataform/latest/com.google.cloud.dataform.v1.CompilationResult.CompilationError>` |   |

### getCompilationErrorsOrBuilder(int index)

    public abstract CompilationResult.CompilationErrorOrBuilder getCompilationErrorsOrBuilder(int index)

Output only. Errors encountered during project compilation.

`
repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dataform/latest/com.google.cloud.dataform.v1.CompilationResult.CompilationErrorOrBuilder` |   |

### getCompilationErrorsOrBuilderList()

    public abstract List<? extends CompilationResult.CompilationErrorOrBuilder> getCompilationErrorsOrBuilderList()

Output only. Errors encountered during project compilation.

`
repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.dataform.v1.CompilationResult.CompilationErrorOrBuilder>` |   |

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. The timestamp of when the compilation result was created.

`.google.protobuf.Timestamp create_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 createTime. |

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp of when the compilation result was created.

`.google.protobuf.Timestamp create_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` |   |

### getDataEncryptionState()

    public abstract DataEncryptionState getDataEncryptionState()

Output only. Only set if the repository has a KMS Key.

`
.google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dataform/latest/com.google.cloud.dataform.v1.DataEncryptionState` | The dataEncryptionState. |

### getDataEncryptionStateOrBuilder()

    public abstract DataEncryptionStateOrBuilder getDataEncryptionStateOrBuilder()

Output only. Only set if the repository has a KMS Key.

`
.google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getDataformCoreVersion()

    public abstract String getDataformCoreVersion()

Output only. The version of `@dataform/core` that was used for compilation.

`string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getDataformCoreVersionBytes()

    public abstract ByteString getDataformCoreVersionBytes()

Output only. The version of `@dataform/core` that was used for compilation.

`string dataform_core_version = 5 [(.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 dataformCoreVersion. |

### getGitCommitish()

    public abstract String getGitCommitish()

Immutable. Git commit/tag/branch name at which the repository should be
compiled. Must exist in the remote repository. Examples:

- a commit SHA: `12ade345`
- a tag: `tag1`
- a branch name: `branch1`

`string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE];`

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

### getGitCommitishBytes()

    public abstract ByteString getGitCommitishBytes()

Immutable. Git commit/tag/branch name at which the repository should be
compiled. Must exist in the remote repository. Examples:

- a commit SHA: `12ade345`
- a tag: `tag1`
- a branch name: `branch1`

`string git_commitish = 2 [(.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 gitCommitish. |

### getInternalMetadata()

    public abstract String getInternalMetadata()

Output only. All the metadata information that is used internally to serve
the resource. For example: timestamps, flags, status fields, etc. The
format of this field is a JSON string.

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

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

### getInternalMetadataBytes()

    public abstract ByteString getInternalMetadataBytes()

Output only. All the metadata information that is used internally to serve
the resource. For example: timestamps, flags, status fields, etc. The
format of this field is a JSON string.

`optional string internal_metadata = 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 internalMetadata. |

### getName()

    public abstract String getName()

Output only. The compilation result's name.

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

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Output only. The compilation result's name.

`string name = 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 name. |

### getPrivateResourceMetadata()

    public abstract PrivateResourceMetadata getPrivateResourceMetadata()

Output only. Metadata indicating whether this resource is user-scoped.
`CompilationResult` resource is `user_scoped` only if it is sourced
from a workspace.

`
.google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dataform/latest/com.google.cloud.dataform.v1.PrivateResourceMetadata` | The privateResourceMetadata. |

### getPrivateResourceMetadataOrBuilder()

    public abstract PrivateResourceMetadataOrBuilder getPrivateResourceMetadataOrBuilder()

Output only. Metadata indicating whether this resource is user-scoped.
`CompilationResult` resource is `user_scoped` only if it is sourced
from a workspace.

`
.google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getReleaseConfig()

    public abstract String getReleaseConfig()

Immutable. The name of the release config to compile. Must be in the
format `projects/*/locations/*/repositories/*/releaseConfigs/*`.

`
string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

### getReleaseConfigBytes()

    public abstract ByteString getReleaseConfigBytes()

Immutable. The name of the release config to compile. Must be in the
format `projects/*/locations/*/repositories/*/releaseConfigs/*`.

`
string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

### getResolvedGitCommitSha()

    public abstract String getResolvedGitCommitSha()

Output only. The fully resolved Git commit SHA of the code that was
compiled. Not set for compilation results whose source is a workspace.

`string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getResolvedGitCommitShaBytes()

    public abstract ByteString getResolvedGitCommitShaBytes()

Output only. The fully resolved Git commit SHA of the code that was
compiled. Not set for compilation results whose source is a workspace.

`string resolved_git_commit_sha = 8 [(.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 resolvedGitCommitSha. |

### getSourceCase()

    public abstract CompilationResult.SourceCase getSourceCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dataform/latest/com.google.cloud.dataform.v1.CompilationResult.SourceCase` |   |

### getWorkspace()

    public abstract String getWorkspace()

Immutable. The name of the workspace to compile. Must be in the format
`projects/*/locations/*/repositories/*/workspaces/*`.

`
string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

### getWorkspaceBytes()

    public abstract ByteString getWorkspaceBytes()

Immutable. The name of the workspace to compile. Must be in the format
`projects/*/locations/*/repositories/*/workspaces/*`.

`
string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

### hasCodeCompilationConfig()

    public abstract boolean hasCodeCompilationConfig()

Immutable. If set, fields of `code_compilation_config` override the default
compilation settings that are specified in dataform.json.

`
.google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
`

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

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. The timestamp of when the compilation result was created.

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

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

### hasDataEncryptionState()

    public abstract boolean hasDataEncryptionState()

Output only. Only set if the repository has a KMS Key.

`
.google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasGitCommitish()

    public abstract boolean hasGitCommitish()

Immutable. Git commit/tag/branch name at which the repository should be
compiled. Must exist in the remote repository. Examples:

- a commit SHA: `12ade345`
- a tag: `tag1`
- a branch name: `branch1`

`string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE];`

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

### hasInternalMetadata()

    public abstract boolean hasInternalMetadata()

Output only. All the metadata information that is used internally to serve
the resource. For example: timestamps, flags, status fields, etc. The
format of this field is a JSON string.

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

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

### hasPrivateResourceMetadata()

    public abstract boolean hasPrivateResourceMetadata()

Output only. Metadata indicating whether this resource is user-scoped.
`CompilationResult` resource is `user_scoped` only if it is sourced
from a workspace.

`
.google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasReleaseConfig()

    public abstract boolean hasReleaseConfig()

Immutable. The name of the release config to compile. Must be in the
format `projects/*/locations/*/repositories/*/releaseConfigs/*`.

`
string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

### hasWorkspace()

    public abstract boolean hasWorkspace()

Immutable. The name of the workspace to compile. Must be in the format
`projects/*/locations/*/repositories/*/workspaces/*`.

`
string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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