Class CompilationResult.Builder

  • All Implemented Interfaces:
    CompilationResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    CompilationResult

    public static final class CompilationResult.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CompilationResult.Builder>
    implements CompilationResultOrBuilder
     Represents the result of compiling a Dataform project.
     
    Protobuf type google.cloud.dataform.v1beta1.CompilationResult
    • Method Detail

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

        public CompilationResult.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResult.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResult.Builder>
      • getDefaultInstanceForType

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

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

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

        public CompilationResult.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResult.Builder>
      • setField

        public CompilationResult.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResult.Builder>
      • clearField

        public CompilationResult.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResult.Builder>
      • clearOneof

        public CompilationResult.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResult.Builder>
      • setRepeatedField

        public CompilationResult.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResult.Builder>
      • addRepeatedField

        public CompilationResult.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResult.Builder>
      • mergeFrom

        public CompilationResult.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CompilationResult.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResult.Builder>
      • mergeFrom

        public CompilationResult.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CompilationResult.Builder>
        Throws:
        IOException
      • 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.
      • setName

        public CompilationResult.Builder setName​(String value)
         Output only. The compilation result's name.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        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:
        This builder for chaining.
      • setNameBytes

        public CompilationResult.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The compilation result's name.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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.
      • setGitCommitish

        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];
        Parameters:
        value - The gitCommitish to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setGitCommitishBytes

        public CompilationResult.Builder setGitCommitishBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for gitCommitish to set.
        Returns:
        This builder for chaining.
      • 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.
      • setWorkspace

        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) = { ... }
        Parameters:
        value - The workspace to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setWorkspaceBytes

        public CompilationResult.Builder setWorkspaceBytes​(com.google.protobuf.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) = { ... }
        Parameters:
        value - The bytes for workspace to set.
        Returns:
        This builder for chaining.
      • 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.
      • setCodeCompilationConfig

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

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

        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];
      • 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];
      • 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];
      • 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.
      • setDataformCoreVersion

        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];
        Parameters:
        value - The dataformCoreVersion to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setDataformCoreVersionBytes

        public CompilationResult.Builder setDataformCoreVersionBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for dataformCoreVersion to set.
        Returns:
        This builder for chaining.
      • 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
      • setCompilationErrors

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

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

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

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

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

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

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

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

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

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

        public final CompilationResult.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResult.Builder>
      • mergeUnknownFields

        public final CompilationResult.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResult.Builder>