Class CompilationResult.Builder (0.2.1)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError>
Returns
TypeDescription
CompilationResult.Builder

addCompilationErrors(CompilationResult.CompilationError value)

public CompilationResult.Builder addCompilationErrors(CompilationResult.CompilationError value)

Output only. Errors encountered during project compilation.

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

Parameter
NameDescription
valueCompilationResult.CompilationError
Returns
TypeDescription
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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueCompilationResult.CompilationError.Builder
Returns
TypeDescription
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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueCompilationResult.CompilationError
Returns
TypeDescription
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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueCompilationResult.CompilationError.Builder
Returns
TypeDescription
CompilationResult.Builder

addCompilationErrorsBuilder()

public CompilationResult.CompilationError.Builder addCompilationErrorsBuilder()

Output only. Errors encountered during project compilation.

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

Returns
TypeDescription
CompilationResult.CompilationError.Builder

addCompilationErrorsBuilder(int index)

public CompilationResult.CompilationError.Builder addCompilationErrorsBuilder(int index)

Output only. Errors encountered during project compilation.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CompilationResult.CompilationError.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CompilationResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CompilationResult.Builder
Overrides

build()

public CompilationResult build()
Returns
TypeDescription
CompilationResult

buildPartial()

public CompilationResult buildPartial()
Returns
TypeDescription
CompilationResult

clear()

public CompilationResult.Builder clear()
Returns
TypeDescription
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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CompilationResult.Builder

clearCompilationErrors()

public CompilationResult.Builder clearCompilationErrors()

Output only. Errors encountered during project compilation.

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

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CompilationResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CompilationResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CompilationResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CompilationResult.Builder
Overrides

clearSource()

public CompilationResult.Builder clearSource()
Returns
TypeDescription
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
TypeDescription
CompilationResult.Builder

This builder for chaining.

clone()

public CompilationResult.Builder clone()
Returns
TypeDescription
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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CompilationResult.CodeCompilationConfigOrBuilder

getCompilationErrors(int index)

public CompilationResult.CompilationError getCompilationErrors(int index)

Output only. Errors encountered during project compilation.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CompilationResult.CompilationError

getCompilationErrorsBuilder(int index)

public CompilationResult.CompilationError.Builder getCompilationErrorsBuilder(int index)

Output only. Errors encountered during project compilation.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CompilationResult.CompilationError.Builder

getCompilationErrorsBuilderList()

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

Output only. Errors encountered during project compilation.

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

Returns
TypeDescription
List<Builder>

getCompilationErrorsCount()

public int getCompilationErrorsCount()

Output only. Errors encountered during project compilation.

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

Returns
TypeDescription
int

getCompilationErrorsList()

public List<CompilationResult.CompilationError> getCompilationErrorsList()

Output only. Errors encountered during project compilation.

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

Returns
TypeDescription
List<CompilationError>

getCompilationErrorsOrBuilder(int index)

public CompilationResult.CompilationErrorOrBuilder getCompilationErrorsOrBuilder(int index)

Output only. Errors encountered during project compilation.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CompilationResult.CompilationErrorOrBuilder

getCompilationErrorsOrBuilderList()

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

Output only. Errors encountered during project compilation.

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

Returns
TypeDescription
List<? extends com.google.cloud.dataform.v1beta1.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
TypeDescription
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
TypeDescription
ByteString

The bytes for dataformCoreVersion.

getDefaultInstanceForType()

public CompilationResult getDefaultInstanceForType()
Returns
TypeDescription
CompilationResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The compilation result's name.

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

Returns
TypeDescription
ByteString

The bytes for name.

getSourceCase()

public CompilationResult.SourceCase getSourceCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the workspace field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueCompilationResult.CodeCompilationConfig
Returns
TypeDescription
CompilationResult.Builder

mergeFrom(CompilationResult other)

public CompilationResult.Builder mergeFrom(CompilationResult other)
Parameter
NameDescription
otherCompilationResult
Returns
TypeDescription
CompilationResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CompilationResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CompilationResult.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CompilationResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CompilationResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CompilationResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CompilationResult.Builder
Overrides

removeCompilationErrors(int index)

public CompilationResult.Builder removeCompilationErrors(int index)

Output only. Errors encountered during project compilation.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueCompilationResult.CodeCompilationConfig
Returns
TypeDescription
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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
builderForValueCompilationResult.CodeCompilationConfig.Builder
Returns
TypeDescription
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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueCompilationResult.CompilationError
Returns
TypeDescription
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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueCompilationResult.CompilationError.Builder
Returns
TypeDescription
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
NameDescription
valueString

The dataformCoreVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for dataformCoreVersion to set.

Returns
TypeDescription
CompilationResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CompilationResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The gitCommitish to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for gitCommitish to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CompilationResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CompilationResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The workspace to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for workspace to set.

Returns
TypeDescription
CompilationResult.Builder

This builder for chaining.