Class CompilationResult

  • All Implemented Interfaces:
    CompilationResultOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class CompilationResult
    extends com.google.protobuf.GeneratedMessageV3
    implements CompilationResultOrBuilder
     Represents the result of compiling a Dataform project.
     
    Protobuf type google.cloud.dataform.v1beta1.CompilationResult
    See Also:
    Serialized Form
    • Field Detail

      • GIT_COMMITISH_FIELD_NUMBER

        public static final int GIT_COMMITISH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CODE_COMPILATION_CONFIG_FIELD_NUMBER

        public static final int CODE_COMPILATION_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DATAFORM_CORE_VERSION_FIELD_NUMBER

        public static final int DATAFORM_CORE_VERSION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • COMPILATION_ERRORS_FIELD_NUMBER

        public static final int COMPILATION_ERRORS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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.
      • 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];
        Specified by:
        hasCodeCompilationConfig in interface CompilationResultOrBuilder
        Returns:
        Whether the codeCompilationConfig field is set.
      • 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];
        Specified by:
        getCodeCompilationConfig in interface CompilationResultOrBuilder
        Returns:
        The codeCompilationConfig.
      • 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.
      • 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];
        Specified by:
        getCompilationErrorsCount in interface CompilationResultOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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