# Dataform V1beta1 API - Class Google::Cloud::Dataform::V1beta1::CompilationResult (v0.15.0)

0.15.0 (latest) 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.2 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Dataform V1beta1 API class Google::Cloud::Dataform::V1beta1::CompilationResult.

Represents the result of compiling a Dataform project.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #code_compilation_config

    def code_compilation_config() -> ::Google::Cloud::Dataform::V1beta1::CodeCompilationConfig

**Returns**

- ([::Google::Cloud::Dataform::V1beta1::CodeCompilationConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CodeCompilationConfig)) --- Immutable. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json.

### #code_compilation_config=

    def code_compilation_config=(value) -> ::Google::Cloud::Dataform::V1beta1::CodeCompilationConfig

**Parameter**

- **value** ([::Google::Cloud::Dataform::V1beta1::CodeCompilationConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CodeCompilationConfig)) --- Immutable. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json.
**Returns**

- ([::Google::Cloud::Dataform::V1beta1::CodeCompilationConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CodeCompilationConfig)) --- Immutable. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json.

### #compilation_errors

    def compilation_errors() -> ::Array<::Google::Cloud::Dataform::V1beta1::CompilationResult::CompilationError>

**Returns**

- (::Array\<[::Google::Cloud::Dataform::V1beta1::CompilationResult::CompilationError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResult-CompilationError)\>) --- Output only. Errors encountered during project compilation.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp of when the compilation result was created.

### #data_encryption_state

    def data_encryption_state() -> ::Google::Cloud::Dataform::V1beta1::DataEncryptionState

**Returns**

- ([::Google::Cloud::Dataform::V1beta1::DataEncryptionState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-DataEncryptionState)) --- Output only. Only set if the repository has a KMS Key.

### #dataform_core_version

    def dataform_core_version() -> ::String

**Returns**

- (::String) --- Output only. The version of `@dataform/core` that was used for compilation.

### #git_commitish

    def git_commitish() -> ::String

**Returns**

- (::String) --- 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`

  Note: The following fields are mutually exclusive: `git_commitish`, `workspace`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #git_commitish=

    def git_commitish=(value) -> ::String

**Parameter**

- **value** (::String) --- 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`

  Note: The following fields are mutually exclusive: `git_commitish`, `workspace`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- 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`

  Note: The following fields are mutually exclusive: `git_commitish`, `workspace`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #internal_metadata

    def internal_metadata() -> ::String

**Returns**

- (::String) --- 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.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The compilation result's name.

### #private_resource_metadata

    def private_resource_metadata() -> ::Google::Cloud::Dataform::V1beta1::PrivateResourceMetadata

**Returns**

- ([::Google::Cloud::Dataform::V1beta1::PrivateResourceMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-PrivateResourceMetadata)) --- Output only. Metadata indicating whether this resource is user-scoped. `CompilationResult` resource is `user_scoped` only if it is sourced from a workspace.

### #release_config

    def release_config() -> ::String

**Returns**

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


  Note: The following fields are mutually exclusive: `release_config`, `git_commitish`, `workspace`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #release_config=

    def release_config=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. The name of the release config to compile. Must be in the format `projects/*/locations/*/repositories/*/releaseConfigs/*`.


  Note: The following fields are mutually exclusive: `release_config`, `git_commitish`, `workspace`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

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


  Note: The following fields are mutually exclusive: `release_config`, `git_commitish`, `workspace`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #resolved_git_commit_sha

    def resolved_git_commit_sha() -> ::String

**Returns**

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

### #workspace

    def workspace() -> ::String

**Returns**

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


  Note: The following fields are mutually exclusive: `workspace`, `git_commitish`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #workspace=

    def workspace=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. The name of the workspace to compile. Must be in the format `projects/*/locations/*/repositories/*/workspaces/*`.


  Note: The following fields are mutually exclusive: `workspace`, `git_commitish`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

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


  Note: The following fields are mutually exclusive: `workspace`, `git_commitish`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.