Class CompilationResult (0.52.0)

public final class CompilationResult extends GeneratedMessageV3 implements CompilationResultOrBuilder

Represents the result of compiling a Dataform project.

Protobuf type google.cloud.dataform.v1alpha2.CompilationResult

Static Fields

CODE_COMPILATION_CONFIG_FIELD_NUMBER

public static final int CODE_COMPILATION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

COMPILATION_ERRORS_FIELD_NUMBER

public static final int COMPILATION_ERRORS_FIELD_NUMBER
Field Value
Type Description
int

DATAFORM_CORE_VERSION_FIELD_NUMBER

public static final int DATAFORM_CORE_VERSION_FIELD_NUMBER
Field Value
Type Description
int

GIT_COMMITISH_FIELD_NUMBER

public static final int GIT_COMMITISH_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

WORKSPACE_FIELD_NUMBER

public static final int WORKSPACE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CompilationResult getDefaultInstance()
Returns
Type Description
CompilationResult

getDescriptor()

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

newBuilder()

public static CompilationResult.Builder newBuilder()
Returns
Type Description
CompilationResult.Builder

newBuilder(CompilationResult prototype)

public static CompilationResult.Builder newBuilder(CompilationResult prototype)
Parameter
Name Description
prototype CompilationResult
Returns
Type Description
CompilationResult.Builder

parseDelimitedFrom(InputStream input)

public static CompilationResult parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CompilationResult
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CompilationResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompilationResult
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CompilationResult parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CompilationResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CompilationResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompilationResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CompilationResult parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CompilationResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CompilationResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompilationResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CompilationResult parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CompilationResult
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CompilationResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompilationResult
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CompilationResult parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CompilationResult
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CompilationResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompilationResult
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CompilationResult parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CompilationResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CompilationResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CompilationResult
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CompilationResult> parser()
Returns
Type Description
Parser<CompilationResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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

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.

getParserForType()

public Parser<CompilationResult> getParserForType()
Returns
Type Description
Parser<CompilationResult>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CompilationResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CompilationResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException