Class BuildSuccess.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder , com.google.protobuf.MessageLite.Builder , com.google.protobuf.MessageLiteOrBuilder , com.google.protobuf.MessageOrBuilder , java.lang.Cloneable , xyz.block.ftl.v1.language.BuildSuccessOrBuilder

    
    public final class BuildSuccess.Builder
    extends GeneratedMessageV3.Builder<BuilderT> implements BuildSuccessOrBuilder
                        
    BuildSuccess should be sent when a build succeeds.
    
    FTL may ignore this event if it does not match FTL's current build context and state.
    
    Protobuf type xyz.block.ftl.v1.language.BuildSuccess
    • Constructor Detail

    • Method Detail

      • getDescriptor

         final static Descriptors.Descriptor getDescriptor()
      • getContextId

         String getContextId()
        The id of build context used while building.
        
        string context_id = 1;
        Returns:

        The contextId.

      • getContextIdBytes

         ByteString getContextIdBytes()
        The id of build context used while building.
        
        string context_id = 1;
        Returns:

        The bytes for contextId.

      • setContextId

         BuildSuccess.Builder setContextId(String value)
        The id of build context used while building.
        
        string context_id = 1;
        Parameters:
        value - The contextId to set.
        Returns:

        This builder for chaining.

      • setContextIdBytes

         BuildSuccess.Builder setContextIdBytes(ByteString value)
        The id of build context used while building.
        
        string context_id = 1;
        Parameters:
        value - The bytes for contextId to set.
        Returns:

        This builder for chaining.

      • getIsAutomaticRebuild

         boolean getIsAutomaticRebuild()
        Indicates whether the build was automatically started by the plugin, rather than due to a Build rpc call.
        
        bool is_automatic_rebuild = 2;
        Returns:

        The isAutomaticRebuild.

      • setIsAutomaticRebuild

         BuildSuccess.Builder setIsAutomaticRebuild(boolean value)
        Indicates whether the build was automatically started by the plugin, rather than due to a Build rpc call.
        
        bool is_automatic_rebuild = 2;
        Parameters:
        value - The isAutomaticRebuild to set.
        Returns:

        This builder for chaining.

      • clearIsAutomaticRebuild

         BuildSuccess.Builder clearIsAutomaticRebuild()
        Indicates whether the build was automatically started by the plugin, rather than due to a Build rpc call.
        
        bool is_automatic_rebuild = 2;
        Returns:

        This builder for chaining.

      • hasModule

         boolean hasModule()
        Module schema for the built module
        
        .xyz.block.ftl.v1.schema.Module module = 3;
        Returns:

        Whether the module field is set.

      • getModule

         Module getModule()
        Module schema for the built module
        
        .xyz.block.ftl.v1.schema.Module module = 3;
        Returns:

        The module.

      • getDeployList

         ProtocolStringList getDeployList()
        Paths for files/directories to be deployed
        
        repeated string deploy = 4;
        Returns:

        A list containing the deploy.

      • getDeployCount

         int getDeployCount()
        Paths for files/directories to be deployed
        
        repeated string deploy = 4;
        Returns:

        The count of deploy.

      • getDeploy

         String getDeploy(int index)
        Paths for files/directories to be deployed
        
        repeated string deploy = 4;
        Parameters:
        index - The index of the element to return.
        Returns:

        The deploy at the given index.

      • getDeployBytes

         ByteString getDeployBytes(int index)
        Paths for files/directories to be deployed
        
        repeated string deploy = 4;
        Parameters:
        index - The index of the value to return.
        Returns:

        The bytes of the deploy at the given index.

      • setDeploy

         BuildSuccess.Builder setDeploy(int index, String value)
        Paths for files/directories to be deployed
        
        repeated string deploy = 4;
        Parameters:
        index - The index to set the value at.
        value - The deploy to set.
        Returns:

        This builder for chaining.

      • addDeploy

         BuildSuccess.Builder addDeploy(String value)
        Paths for files/directories to be deployed
        
        repeated string deploy = 4;
        Parameters:
        value - The deploy to add.
        Returns:

        This builder for chaining.

      • clearDeploy

         BuildSuccess.Builder clearDeploy()
        Paths for files/directories to be deployed
        
        repeated string deploy = 4;
        Returns:

        This builder for chaining.

      • addDeployBytes

         BuildSuccess.Builder addDeployBytes(ByteString value)
        Paths for files/directories to be deployed
        
        repeated string deploy = 4;
        Parameters:
        value - The bytes of the deploy to add.
        Returns:

        This builder for chaining.

      • getDockerImage

         String getDockerImage()
        Name of the docker image to use for the runner
        
        string docker_image = 5;
        Returns:

        The dockerImage.

      • getDockerImageBytes

         ByteString getDockerImageBytes()
        Name of the docker image to use for the runner
        
        string docker_image = 5;
        Returns:

        The bytes for dockerImage.

      • setDockerImage

         BuildSuccess.Builder setDockerImage(String value)
        Name of the docker image to use for the runner
        
        string docker_image = 5;
        Parameters:
        value - The dockerImage to set.
        Returns:

        This builder for chaining.

      • setDockerImageBytes

         BuildSuccess.Builder setDockerImageBytes(ByteString value)
        Name of the docker image to use for the runner
        
        string docker_image = 5;
        Parameters:
        value - The bytes for dockerImage to set.
        Returns:

        This builder for chaining.

      • hasErrors

         boolean hasErrors()
        Errors contains any errors that occurred during the build
        No errors can have a level of ERROR, instead a BuildFailure should be sent
        Instead this is useful for INFO and WARN level errors.
        
        .xyz.block.ftl.v1.language.ErrorList errors = 6;
        Returns:

        Whether the errors field is set.

      • getErrors

         ErrorList getErrors()
        Errors contains any errors that occurred during the build
        No errors can have a level of ERROR, instead a BuildFailure should be sent
        Instead this is useful for INFO and WARN level errors.
        
        .xyz.block.ftl.v1.language.ErrorList errors = 6;
        Returns:

        The errors.

      • setErrors

         BuildSuccess.Builder setErrors(ErrorList value)
        Errors contains any errors that occurred during the build
        No errors can have a level of ERROR, instead a BuildFailure should be sent
        Instead this is useful for INFO and WARN level errors.
        
        .xyz.block.ftl.v1.language.ErrorList errors = 6;
      • setErrors

         BuildSuccess.Builder setErrors(ErrorList.Builder builderForValue)
        Errors contains any errors that occurred during the build
        No errors can have a level of ERROR, instead a BuildFailure should be sent
        Instead this is useful for INFO and WARN level errors.
        
        .xyz.block.ftl.v1.language.ErrorList errors = 6;
      • mergeErrors

         BuildSuccess.Builder mergeErrors(ErrorList value)
        Errors contains any errors that occurred during the build
        No errors can have a level of ERROR, instead a BuildFailure should be sent
        Instead this is useful for INFO and WARN level errors.
        
        .xyz.block.ftl.v1.language.ErrorList errors = 6;
      • clearErrors

         BuildSuccess.Builder clearErrors()
        Errors contains any errors that occurred during the build
        No errors can have a level of ERROR, instead a BuildFailure should be sent
        Instead this is useful for INFO and WARN level errors.
        
        .xyz.block.ftl.v1.language.ErrorList errors = 6;
      • getErrorsBuilder

         ErrorList.Builder getErrorsBuilder()
        Errors contains any errors that occurred during the build
        No errors can have a level of ERROR, instead a BuildFailure should be sent
        Instead this is useful for INFO and WARN level errors.
        
        .xyz.block.ftl.v1.language.ErrorList errors = 6;
      • getErrorsOrBuilder

         ErrorListOrBuilder getErrorsOrBuilder()
        Errors contains any errors that occurred during the build
        No errors can have a level of ERROR, instead a BuildFailure should be sent
        Instead this is useful for INFO and WARN level errors.
        
        .xyz.block.ftl.v1.language.ErrorList errors = 6;