Class CompilationResult.Builder (0.11.0)

public static final class CompilationResult.Builder extends GeneratedMessageV3.Builder<CompilationResult.Builder> implements CompilationResultOrBuilder

Represents the result of compiling a Dataform project.

Protobuf type google.cloud.dataform.v1alpha2.CompilationResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllCompilationErrors(Iterable<? extends CompilationResult.CompilationError> values)

public CompilationResult.Builder addAllCompilationErrors(Iterable<? extends CompilationResult.CompilationError> values)

Output only. Errors encountered during project compilation.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError>
Returns
Type Description
CompilationResult.Builder

addCompilationErrors(CompilationResult.CompilationError value)

public CompilationResult.Builder addCompilationErrors(CompilationResult.CompilationError value)

Output only. Errors encountered during project compilation.

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

Parameter
Name Description
value CompilationResult.CompilationError
Returns
Type Description
CompilationResult.Builder

addCompilationErrors(CompilationResult.CompilationError.Builder builderForValue)

public CompilationResult.Builder addCompilationErrors(CompilationResult.CompilationError.Builder builderForValue)

Output only. Errors encountered during project compilation.

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

Parameter
Name Description
builderForValue CompilationResult.CompilationError.Builder
Returns
Type Description
CompilationResult.Builder

addCompilationErrors(int index, CompilationResult.CompilationError value)

public CompilationResult.Builder addCompilationErrors(int index, CompilationResult.CompilationError value)

Output only. Errors encountered during project compilation.

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

Parameters
Name Description
index int
value CompilationResult.CompilationError
Returns
Type Description
CompilationResult.Builder

addCompilationErrors(int index, CompilationResult.CompilationError.Builder builderForValue)

public CompilationResult.Builder addCompilationErrors(int index, CompilationResult.CompilationError.Builder builderForValue)

Output only. Errors encountered during project compilation.

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

Parameters
Name Description
index int
builderForValue CompilationResult.CompilationError.Builder
Returns
Type Description
CompilationResult.Builder

addCompilationErrorsBuilder()

public CompilationResult.CompilationError.Builder addCompilationErrorsBuilder()

Output only. Errors encountered during project compilation.

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

Returns
Type Description
CompilationResult.CompilationError.Builder

addCompilationErrorsBuilder(int index)

public CompilationResult.CompilationError.Builder addCompilationErrorsBuilder(int index)

Output only. Errors encountered during project compilation.

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

Parameter
Name Description
index int
Returns
Type Description
CompilationResult.CompilationError.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CompilationResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CompilationResult.Builder
Overrides

build()

public CompilationResult build()
Returns
Type Description
CompilationResult

buildPartial()

public CompilationResult buildPartial()
Returns
Type Description
CompilationResult

clear()

public CompilationResult.Builder clear()
Returns
Type Description
CompilationResult.Builder
Overrides

clearCodeCompilationConfig()

public CompilationResult.Builder clearCodeCompilationConfig()

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

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

Returns
Type Description
CompilationResult.Builder

clearCompilationErrors()

public CompilationResult.Builder clearCompilationErrors()

Output only. Errors encountered during project compilation.

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

Returns
Type Description
CompilationResult.Builder

clearDataformCoreVersion()

public CompilationResult.Builder clearDataformCoreVersion()

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
CompilationResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CompilationResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CompilationResult.Builder
Overrides

clearGitCommitish()

public CompilationResult.Builder clearGitCommitish()

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
CompilationResult.Builder

This builder for chaining.

clearName()

public CompilationResult.Builder clearName()

Output only. The compilation result's name.

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

Returns
Type Description
CompilationResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CompilationResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CompilationResult.Builder
Overrides

clearSource()

public CompilationResult.Builder clearSource()
Returns
Type Description
CompilationResult.Builder

clearWorkspace()

public CompilationResult.Builder clearWorkspace()

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
CompilationResult.Builder

This builder for chaining.

clone()

public CompilationResult.Builder clone()
Returns
Type Description
CompilationResult.Builder
Overrides

getCodeCompilationConfig()

public CompilationResult.CodeCompilationConfig getCodeCompilationConfig()

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

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

Returns
Type Description
CompilationResult.CodeCompilationConfig

The codeCompilationConfig.

getCodeCompilationConfigBuilder()

public CompilationResult.CodeCompilationConfig.Builder getCodeCompilationConfigBuilder()

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

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

Returns
Type Description
CompilationResult.CodeCompilationConfig.Builder

getCodeCompilationConfigOrBuilder()

public CompilationResult.CodeCompilationConfigOrBuilder getCodeCompilationConfigOrBuilder()

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

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

Returns
Type Description
CompilationResult.CodeCompilationConfigOrBuilder

getCompilationErrors(int index)

public CompilationResult.CompilationError getCompilationErrors(int index)

Output only. Errors encountered during project compilation.

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

Parameter
Name Description
index int
Returns
Type Description
CompilationResult.CompilationError

getCompilationErrorsBuilder(int index)

public CompilationResult.CompilationError.Builder getCompilationErrorsBuilder(int index)

Output only. Errors encountered during project compilation.

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

Parameter
Name Description
index int
Returns
Type Description
CompilationResult.CompilationError.Builder

getCompilationErrorsBuilderList()

public List<CompilationResult.CompilationError.Builder> getCompilationErrorsBuilderList()

Output only. Errors encountered during project compilation.

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

Returns
Type Description
List<Builder>

getCompilationErrorsCount()

public int getCompilationErrorsCount()

Output only. Errors encountered during project compilation.

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

Returns
Type Description
int

getCompilationErrorsList()

public List<CompilationResult.CompilationError> getCompilationErrorsList()

Output only. Errors encountered during project compilation.

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

Returns
Type Description
List<CompilationError>

getCompilationErrorsOrBuilder(int index)

public CompilationResult.CompilationErrorOrBuilder getCompilationErrorsOrBuilder(int index)

Output only. Errors encountered during project compilation.

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

Parameter
Name Description
index int
Returns
Type Description
CompilationResult.CompilationErrorOrBuilder

getCompilationErrorsOrBuilderList()

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

Output only. Errors encountered during project compilation.

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

Returns
Type Description
List<? extends com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder>

getDataformCoreVersion()

public 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
String

The dataformCoreVersion.

getDataformCoreVersionBytes()

public 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
ByteString

The bytes for dataformCoreVersion.

getDefaultInstanceForType()

public CompilationResult getDefaultInstanceForType()
Returns
Type Description
CompilationResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGitCommitish()

public 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
String

The gitCommitish.

getGitCommitishBytes()

public 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
ByteString

The bytes for gitCommitish.

getName()

public String getName()

Output only. The compilation result's name.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The compilation result's name.

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

Returns
Type Description
ByteString

The bytes for name.

getSourceCase()

public CompilationResult.SourceCase getSourceCase()
Returns
Type Description
CompilationResult.SourceCase

getWorkspace()

public 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
String

The workspace.

getWorkspaceBytes()

public 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
ByteString

The bytes for workspace.

hasCodeCompilationConfig()

public boolean hasCodeCompilationConfig()

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

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

Returns
Type Description
boolean

Whether the codeCompilationConfig field is set.

hasGitCommitish()

public 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
boolean

Whether the gitCommitish field is set.

hasWorkspace()

public 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
boolean

Whether the workspace field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCodeCompilationConfig(CompilationResult.CodeCompilationConfig value)

public CompilationResult.Builder mergeCodeCompilationConfig(CompilationResult.CodeCompilationConfig value)

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

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

Parameter
Name Description
value CompilationResult.CodeCompilationConfig
Returns
Type Description
CompilationResult.Builder

mergeFrom(CompilationResult other)

public CompilationResult.Builder mergeFrom(CompilationResult other)
Parameter
Name Description
other CompilationResult
Returns
Type Description
CompilationResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CompilationResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompilationResult.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public CompilationResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CompilationResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CompilationResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CompilationResult.Builder
Overrides

removeCompilationErrors(int index)

public CompilationResult.Builder removeCompilationErrors(int index)

Output only. Errors encountered during project compilation.

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

Parameter
Name Description
index int
Returns
Type Description
CompilationResult.Builder

setCodeCompilationConfig(CompilationResult.CodeCompilationConfig value)

public CompilationResult.Builder setCodeCompilationConfig(CompilationResult.CodeCompilationConfig value)

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

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

Parameter
Name Description
value CompilationResult.CodeCompilationConfig
Returns
Type Description
CompilationResult.Builder

setCodeCompilationConfig(CompilationResult.CodeCompilationConfig.Builder builderForValue)

public CompilationResult.Builder setCodeCompilationConfig(CompilationResult.CodeCompilationConfig.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue CompilationResult.CodeCompilationConfig.Builder
Returns
Type Description
CompilationResult.Builder

setCompilationErrors(int index, CompilationResult.CompilationError value)

public CompilationResult.Builder setCompilationErrors(int index, CompilationResult.CompilationError value)

Output only. Errors encountered during project compilation.

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

Parameters
Name Description
index int
value CompilationResult.CompilationError
Returns
Type Description
CompilationResult.Builder

setCompilationErrors(int index, CompilationResult.CompilationError.Builder builderForValue)

public CompilationResult.Builder setCompilationErrors(int index, CompilationResult.CompilationError.Builder builderForValue)

Output only. Errors encountered during project compilation.

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

Parameters
Name Description
index int
builderForValue CompilationResult.CompilationError.Builder
Returns
Type Description
CompilationResult.Builder

setDataformCoreVersion(String value)

public CompilationResult.Builder setDataformCoreVersion(String value)

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

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

Parameter
Name Description
value String

The dataformCoreVersion to set.

Returns
Type Description
CompilationResult.Builder

This builder for chaining.

setDataformCoreVersionBytes(ByteString value)

public CompilationResult.Builder setDataformCoreVersionBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for dataformCoreVersion to set.

Returns
Type Description
CompilationResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CompilationResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CompilationResult.Builder
Overrides

setGitCommitish(String value)

public CompilationResult.Builder setGitCommitish(String value)

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];

Parameter
Name Description
value String

The gitCommitish to set.

Returns
Type Description
CompilationResult.Builder

This builder for chaining.

setGitCommitishBytes(ByteString value)

public CompilationResult.Builder setGitCommitishBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for gitCommitish to set.

Returns
Type Description
CompilationResult.Builder

This builder for chaining.

setName(String value)

public CompilationResult.Builder setName(String value)

Output only. The compilation result's name.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
CompilationResult.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CompilationResult.Builder setNameBytes(ByteString value)

Output only. The compilation result's name.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
CompilationResult.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CompilationResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CompilationResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CompilationResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CompilationResult.Builder
Overrides

setWorkspace(String value)

public CompilationResult.Builder setWorkspace(String value)

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) = { ... }

Parameter
Name Description
value String

The workspace to set.

Returns
Type Description
CompilationResult.Builder

This builder for chaining.

setWorkspaceBytes(ByteString value)

public CompilationResult.Builder setWorkspaceBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for workspace to set.

Returns
Type Description
CompilationResult.Builder

This builder for chaining.