Class CompilationResult

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dataform.v1.CompilationResult
All Implemented Interfaces:
CompilationResultOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CompilationResult extends com.google.protobuf.GeneratedMessage implements CompilationResultOrBuilder
 Represents the result of compiling a Dataform project.
 
Protobuf type google.cloud.dataform.v1.CompilationResult
See Also:
  • Field Details

    • GIT_COMMITISH_FIELD_NUMBER

      public static final int GIT_COMMITISH_FIELD_NUMBER
      See Also:
    • WORKSPACE_FIELD_NUMBER

      public static final int WORKSPACE_FIELD_NUMBER
      See Also:
    • RELEASE_CONFIG_FIELD_NUMBER

      public static final int RELEASE_CONFIG_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • CODE_COMPILATION_CONFIG_FIELD_NUMBER

      public static final int CODE_COMPILATION_CONFIG_FIELD_NUMBER
      See Also:
    • RESOLVED_GIT_COMMIT_SHA_FIELD_NUMBER

      public static final int RESOLVED_GIT_COMMIT_SHA_FIELD_NUMBER
      See Also:
    • DATAFORM_CORE_VERSION_FIELD_NUMBER

      public static final int DATAFORM_CORE_VERSION_FIELD_NUMBER
      See Also:
    • COMPILATION_ERRORS_FIELD_NUMBER

      public static final int COMPILATION_ERRORS_FIELD_NUMBER
      See Also:
    • DATA_ENCRYPTION_STATE_FIELD_NUMBER

      public static final int DATA_ENCRYPTION_STATE_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • INTERNAL_METADATA_FIELD_NUMBER

      public static final int INTERNAL_METADATA_FIELD_NUMBER
      See Also:
    • PRIVATE_RESOURCE_METADATA_FIELD_NUMBER

      public static final int PRIVATE_RESOURCE_METADATA_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getSourceCase

      public CompilationResult.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface CompilationResultOrBuilder
    • 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];
      Specified by:
      hasGitCommitish in interface CompilationResultOrBuilder
      Returns:
      Whether the gitCommitish field is set.
    • 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];
      Specified by:
      getGitCommitish in interface CompilationResultOrBuilder
      Returns:
      The gitCommitish.
    • getGitCommitishBytes

      public com.google.protobuf.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];
      Specified by:
      getGitCommitishBytes in interface CompilationResultOrBuilder
      Returns:
      The bytes for gitCommitish.
    • 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) = { ... }
      Specified by:
      hasWorkspace in interface CompilationResultOrBuilder
      Returns:
      Whether the workspace field is set.
    • 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) = { ... }
      Specified by:
      getWorkspace in interface CompilationResultOrBuilder
      Returns:
      The workspace.
    • getWorkspaceBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getWorkspaceBytes in interface CompilationResultOrBuilder
      Returns:
      The bytes for workspace.
    • hasReleaseConfig

      public boolean hasReleaseConfig()
       Immutable. The name of the release config to compile. Must be in the
       format `projects/*/locations/*/repositories/*/releaseConfigs/*`.
       
      string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      hasReleaseConfig in interface CompilationResultOrBuilder
      Returns:
      Whether the releaseConfig field is set.
    • getReleaseConfig

      public String getReleaseConfig()
       Immutable. The name of the release config to compile. Must be in the
       format `projects/*/locations/*/repositories/*/releaseConfigs/*`.
       
      string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getReleaseConfig in interface CompilationResultOrBuilder
      Returns:
      The releaseConfig.
    • getReleaseConfigBytes

      public com.google.protobuf.ByteString getReleaseConfigBytes()
       Immutable. The name of the release config to compile. Must be in the
       format `projects/*/locations/*/repositories/*/releaseConfigs/*`.
       
      string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getReleaseConfigBytes in interface CompilationResultOrBuilder
      Returns:
      The bytes for releaseConfig.
    • getName

      public String getName()
       Output only. The compilation result's name.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface CompilationResultOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The compilation result's name.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface CompilationResultOrBuilder
      Returns:
      The bytes for name.
    • hasCodeCompilationConfig

      public boolean hasCodeCompilationConfig()
       Immutable. If set, fields of `code_compilation_config` override the default
       compilation settings that are specified in dataform.json.
       
      .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasCodeCompilationConfig in interface CompilationResultOrBuilder
      Returns:
      Whether the codeCompilationConfig field is set.
    • getCodeCompilationConfig

      public CodeCompilationConfig getCodeCompilationConfig()
       Immutable. If set, fields of `code_compilation_config` override the default
       compilation settings that are specified in dataform.json.
       
      .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCodeCompilationConfig in interface CompilationResultOrBuilder
      Returns:
      The codeCompilationConfig.
    • getCodeCompilationConfigOrBuilder

      public CodeCompilationConfigOrBuilder getCodeCompilationConfigOrBuilder()
       Immutable. If set, fields of `code_compilation_config` override the default
       compilation settings that are specified in dataform.json.
       
      .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCodeCompilationConfigOrBuilder in interface CompilationResultOrBuilder
    • getResolvedGitCommitSha

      public String getResolvedGitCommitSha()
       Output only. The fully resolved Git commit SHA of the code that was
       compiled. Not set for compilation results whose source is a workspace.
       
      string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResolvedGitCommitSha in interface CompilationResultOrBuilder
      Returns:
      The resolvedGitCommitSha.
    • getResolvedGitCommitShaBytes

      public com.google.protobuf.ByteString getResolvedGitCommitShaBytes()
       Output only. The fully resolved Git commit SHA of the code that was
       compiled. Not set for compilation results whose source is a workspace.
       
      string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResolvedGitCommitShaBytes in interface CompilationResultOrBuilder
      Returns:
      The bytes for resolvedGitCommitSha.
    • 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];
      Specified by:
      getDataformCoreVersion in interface CompilationResultOrBuilder
      Returns:
      The dataformCoreVersion.
    • getDataformCoreVersionBytes

      public com.google.protobuf.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];
      Specified by:
      getDataformCoreVersionBytes in interface CompilationResultOrBuilder
      Returns:
      The bytes for dataformCoreVersion.
    • getCompilationErrorsList

      public List<CompilationResult.CompilationError> getCompilationErrorsList()
       Output only. Errors encountered during project compilation.
       
      repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCompilationErrorsList in interface CompilationResultOrBuilder
    • getCompilationErrorsOrBuilderList

      public List<? extends CompilationResult.CompilationErrorOrBuilder> getCompilationErrorsOrBuilderList()
       Output only. Errors encountered during project compilation.
       
      repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCompilationErrorsOrBuilderList in interface CompilationResultOrBuilder
    • getCompilationErrorsCount

      public int getCompilationErrorsCount()
       Output only. Errors encountered during project compilation.
       
      repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCompilationErrorsCount in interface CompilationResultOrBuilder
    • getCompilationErrors

      public CompilationResult.CompilationError getCompilationErrors(int index)
       Output only. Errors encountered during project compilation.
       
      repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCompilationErrors in interface CompilationResultOrBuilder
    • getCompilationErrorsOrBuilder

      public CompilationResult.CompilationErrorOrBuilder getCompilationErrorsOrBuilder(int index)
       Output only. Errors encountered during project compilation.
       
      repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCompilationErrorsOrBuilder in interface CompilationResultOrBuilder
    • hasDataEncryptionState

      public boolean hasDataEncryptionState()
       Output only. Only set if the repository has a KMS Key.
       
      .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDataEncryptionState in interface CompilationResultOrBuilder
      Returns:
      Whether the dataEncryptionState field is set.
    • getDataEncryptionState

      public DataEncryptionState getDataEncryptionState()
       Output only. Only set if the repository has a KMS Key.
       
      .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataEncryptionState in interface CompilationResultOrBuilder
      Returns:
      The dataEncryptionState.
    • getDataEncryptionStateOrBuilder

      public DataEncryptionStateOrBuilder getDataEncryptionStateOrBuilder()
       Output only. Only set if the repository has a KMS Key.
       
      .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataEncryptionStateOrBuilder in interface CompilationResultOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp of when the compilation result was created.
       
      .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface CompilationResultOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp of when the compilation result was created.
       
      .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface CompilationResultOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp of when the compilation result was created.
       
      .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface CompilationResultOrBuilder
    • hasInternalMetadata

      public boolean hasInternalMetadata()
       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.
       
      optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasInternalMetadata in interface CompilationResultOrBuilder
      Returns:
      Whether the internalMetadata field is set.
    • getInternalMetadata

      public String getInternalMetadata()
       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.
       
      optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInternalMetadata in interface CompilationResultOrBuilder
      Returns:
      The internalMetadata.
    • getInternalMetadataBytes

      public com.google.protobuf.ByteString getInternalMetadataBytes()
       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.
       
      optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInternalMetadataBytes in interface CompilationResultOrBuilder
      Returns:
      The bytes for internalMetadata.
    • hasPrivateResourceMetadata

      public boolean hasPrivateResourceMetadata()
       Output only. Metadata indicating whether this resource is user-scoped.
       `CompilationResult` resource is `user_scoped` only if it is sourced
       from a workspace.
       
      .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPrivateResourceMetadata in interface CompilationResultOrBuilder
      Returns:
      Whether the privateResourceMetadata field is set.
    • getPrivateResourceMetadata

      public PrivateResourceMetadata getPrivateResourceMetadata()
       Output only. Metadata indicating whether this resource is user-scoped.
       `CompilationResult` resource is `user_scoped` only if it is sourced
       from a workspace.
       
      .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrivateResourceMetadata in interface CompilationResultOrBuilder
      Returns:
      The privateResourceMetadata.
    • getPrivateResourceMetadataOrBuilder

      public PrivateResourceMetadataOrBuilder getPrivateResourceMetadataOrBuilder()
       Output only. Metadata indicating whether this resource is user-scoped.
       `CompilationResult` resource is `user_scoped` only if it is sourced
       from a workspace.
       
      .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrivateResourceMetadataOrBuilder in interface CompilationResultOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CompilationResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CompilationResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CompilationResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CompilationResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CompilationResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CompilationResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CompilationResult parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CompilationResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CompilationResult parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CompilationResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CompilationResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CompilationResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public CompilationResult.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CompilationResult.Builder newBuilder()
    • newBuilder

      public static CompilationResult.Builder newBuilder(CompilationResult prototype)
    • toBuilder

      public CompilationResult.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CompilationResult.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CompilationResult getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CompilationResult> parser()
    • getParserForType

      public com.google.protobuf.Parser<CompilationResult> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public CompilationResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder