Google Cloud Dataform V1 Client - Class CompilationResult (0.9.2)

Reference documentation and code samples for the Google Cloud Dataform V1 Client class CompilationResult.

Represents the result of compiling a Dataform project.

Generated from protobuf messagegoogle.cloud.dataform.v1.CompilationResult

Namespace

Google \ Cloud \ Dataform \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ git_commitishstring

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

↳ workspacestring

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

↳ release_configstring

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

↳ namestring

Output only. The compilation result's name.

↳ code_compilation_configCodeCompilationConfig

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

↳ resolved_git_commit_shastring

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

↳ dataform_core_versionstring

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

↳ compilation_errorsarray<CompilationResult\CompilationError>

Output only. Errors encountered during project compilation.

↳ data_encryption_stateDataEncryptionState

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

↳ create_timeGoogle\Protobuf\Timestamp

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

↳ internal_metadatastring

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.

getGitCommitish

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

  • a commit SHA:12ade345
  • a tag:tag1
  • a branch name:branch1
Returns
TypeDescription
string

hasGitCommitish

setGitCommitish

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

  • a commit SHA:12ade345
  • a tag:tag1
  • a branch name:branch1
Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getWorkspace

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

Returns
TypeDescription
string

hasWorkspace

setWorkspace

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getReleaseConfig

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

Returns
TypeDescription
string

hasReleaseConfig

setReleaseConfig

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getName

Output only. The compilation result's name.

Returns
TypeDescription
string

setName

Output only. The compilation result's name.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCodeCompilationConfig

Immutable. If set, fields ofcode_compilation_config override the defaultcompilation settings that are specified in dataform.json.

Returns
TypeDescription
CodeCompilationConfig|null

hasCodeCompilationConfig

clearCodeCompilationConfig

setCodeCompilationConfig

Immutable. If set, fields ofcode_compilation_config override the defaultcompilation settings that are specified in dataform.json.

Parameter
NameDescription
varCodeCompilationConfig
Returns
TypeDescription
$this

getResolvedGitCommitSha

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

Returns
TypeDescription
string

setResolvedGitCommitSha

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDataformCoreVersion

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

Returns
TypeDescription
string

setDataformCoreVersion

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCompilationErrors

Output only. Errors encountered during project compilation.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCompilationErrors

Output only. Errors encountered during project compilation.

Parameter
NameDescription
vararray<CompilationResult\CompilationError>
Returns
TypeDescription
$this

getDataEncryptionState

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

Returns
TypeDescription
DataEncryptionState|null

hasDataEncryptionState

clearDataEncryptionState

setDataEncryptionState

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

Parameter
NameDescription
varDataEncryptionState
Returns
TypeDescription
$this

getCreateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

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

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getInternalMetadata

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

Returns
TypeDescription
string

hasInternalMetadata

clearInternalMetadata

setInternalMetadata

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSource

Returns
TypeDescription
string

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-09 UTC.