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.language.v1.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.language.v1.BuildSuccess
    • Constructor Detail

    • Method Detail

      • getDescriptor

         final static Descriptors.Descriptor getDescriptor()
      • hasModule

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

        Whether the module field is set.

      • getModule

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

        The module.

      • getDeployList

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

        A list containing the deploy.

      • getDeployCount

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

        The count of deploy.

      • getDeploy

         String getDeploy(int index)
        Paths for files/directories to be deployed
        
        repeated string deploy = 2;
        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 = 2;
        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 = 2;
        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 = 2;
        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 = 2;
        Returns:

        This builder for chaining.

      • addDeployBytes

         BuildSuccess.Builder addDeployBytes(ByteString value)
        Paths for files/directories to be deployed
        
        repeated string deploy = 2;
        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 = 3;
        Returns:

        The dockerImage.

      • getDockerImageBytes

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

        The bytes for dockerImage.

      • setDockerImage

         BuildSuccess.Builder setDockerImage(String value)
        Name of the docker image to use for the runner
        
        string docker_image = 3;
        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 = 3;
        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.language.v1.ErrorList errors = 4;
        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.language.v1.ErrorList errors = 4;
        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.language.v1.ErrorList errors = 4;
      • 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.language.v1.ErrorList errors = 4;
      • 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.language.v1.ErrorList errors = 4;
      • 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.language.v1.ErrorList errors = 4;
      • 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.language.v1.ErrorList errors = 4;
      • 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.language.v1.ErrorList errors = 4;
      • hasDevEndpoint

         boolean hasDevEndpoint()
        Dev mode endpoint URI. If this is set then rather than trying to deploy the module, FTL will start a runner that
        connects to this endpoint.
        
        optional string dev_endpoint = 5;
        Returns:

        Whether the devEndpoint field is set.

      • getDevEndpoint

         String getDevEndpoint()
        Dev mode endpoint URI. If this is set then rather than trying to deploy the module, FTL will start a runner that
        connects to this endpoint.
        
        optional string dev_endpoint = 5;
        Returns:

        The devEndpoint.

      • getDevEndpointBytes

         ByteString getDevEndpointBytes()
        Dev mode endpoint URI. If this is set then rather than trying to deploy the module, FTL will start a runner that
        connects to this endpoint.
        
        optional string dev_endpoint = 5;
        Returns:

        The bytes for devEndpoint.

      • setDevEndpoint

         BuildSuccess.Builder setDevEndpoint(String value)
        Dev mode endpoint URI. If this is set then rather than trying to deploy the module, FTL will start a runner that
        connects to this endpoint.
        
        optional string dev_endpoint = 5;
        Parameters:
        value - The devEndpoint to set.
        Returns:

        This builder for chaining.

      • clearDevEndpoint

         BuildSuccess.Builder clearDevEndpoint()
        Dev mode endpoint URI. If this is set then rather than trying to deploy the module, FTL will start a runner that
        connects to this endpoint.
        
        optional string dev_endpoint = 5;
        Returns:

        This builder for chaining.

      • setDevEndpointBytes

         BuildSuccess.Builder setDevEndpointBytes(ByteString value)
        Dev mode endpoint URI. If this is set then rather than trying to deploy the module, FTL will start a runner that
        connects to this endpoint.
        
        optional string dev_endpoint = 5;
        Parameters:
        value - The bytes for devEndpoint to set.
        Returns:

        This builder for chaining.

      • hasDebugPort

         boolean hasDebugPort()
        Dev mode debug port
        
        optional int32 debug_port = 6;
        Returns:

        Whether the debugPort field is set.

      • getDebugPort

         int getDebugPort()
        Dev mode debug port
        
        optional int32 debug_port = 6;
        Returns:

        The debugPort.

      • setDebugPort

         BuildSuccess.Builder setDebugPort(int value)
        Dev mode debug port
        
        optional int32 debug_port = 6;
        Parameters:
        value - The debugPort to set.
        Returns:

        This builder for chaining.

      • hasDevHotReloadEndpoint

         boolean hasDevHotReloadEndpoint()
        Dev mode hot reload endpoint, this is used to allow the runner to communicate info back to the running process
        
        optional string dev_hot_reload_endpoint = 7;
        Returns:

        Whether the devHotReloadEndpoint field is set.

      • getDevHotReloadEndpoint

         String getDevHotReloadEndpoint()
        Dev mode hot reload endpoint, this is used to allow the runner to communicate info back to the running process
        
        optional string dev_hot_reload_endpoint = 7;
        Returns:

        The devHotReloadEndpoint.

      • getDevHotReloadEndpointBytes

         ByteString getDevHotReloadEndpointBytes()
        Dev mode hot reload endpoint, this is used to allow the runner to communicate info back to the running process
        
        optional string dev_hot_reload_endpoint = 7;
        Returns:

        The bytes for devHotReloadEndpoint.

      • setDevHotReloadEndpoint

         BuildSuccess.Builder setDevHotReloadEndpoint(String value)
        Dev mode hot reload endpoint, this is used to allow the runner to communicate info back to the running process
        
        optional string dev_hot_reload_endpoint = 7;
        Parameters:
        value - The devHotReloadEndpoint to set.
        Returns:

        This builder for chaining.

      • clearDevHotReloadEndpoint

         BuildSuccess.Builder clearDevHotReloadEndpoint()
        Dev mode hot reload endpoint, this is used to allow the runner to communicate info back to the running process
        
        optional string dev_hot_reload_endpoint = 7;
        Returns:

        This builder for chaining.

      • setDevHotReloadEndpointBytes

         BuildSuccess.Builder setDevHotReloadEndpointBytes(ByteString value)
        Dev mode hot reload endpoint, this is used to allow the runner to communicate info back to the running process
        
        optional string dev_hot_reload_endpoint = 7;
        Parameters:
        value - The bytes for devHotReloadEndpoint to set.
        Returns:

        This builder for chaining.

      • hasDevHotReloadVersion

         boolean hasDevHotReloadVersion()

        optional int64 dev_hot_reload_version = 8;

        Returns:

        Whether the devHotReloadVersion field is set.

      • getDevHotReloadVersion

         long getDevHotReloadVersion()

        optional int64 dev_hot_reload_version = 8;

        Returns:

        The devHotReloadVersion.

      • setDevHotReloadVersion

         BuildSuccess.Builder setDevHotReloadVersion(long value)

        optional int64 dev_hot_reload_version = 8;

        Parameters:
        value - The devHotReloadVersion to set.
        Returns:

        This builder for chaining.

      • getModifiedFilesList

         ProtocolStringList getModifiedFilesList()
        Files modified during the build, relative to the build dir
        
        repeated string modified_files = 9;
        Returns:

        A list containing the modifiedFiles.

      • getModifiedFilesCount

         int getModifiedFilesCount()
        Files modified during the build, relative to the build dir
        
        repeated string modified_files = 9;
        Returns:

        The count of modifiedFiles.

      • getModifiedFiles

         String getModifiedFiles(int index)
        Files modified during the build, relative to the build dir
        
        repeated string modified_files = 9;
        Parameters:
        index - The index of the element to return.
        Returns:

        The modifiedFiles at the given index.

      • getModifiedFilesBytes

         ByteString getModifiedFilesBytes(int index)
        Files modified during the build, relative to the build dir
        
        repeated string modified_files = 9;
        Parameters:
        index - The index of the value to return.
        Returns:

        The bytes of the modifiedFiles at the given index.

      • setModifiedFiles

         BuildSuccess.Builder setModifiedFiles(int index, String value)
        Files modified during the build, relative to the build dir
        
        repeated string modified_files = 9;
        Parameters:
        index - The index to set the value at.
        value - The modifiedFiles to set.
        Returns:

        This builder for chaining.

      • addModifiedFiles

         BuildSuccess.Builder addModifiedFiles(String value)
        Files modified during the build, relative to the build dir
        
        repeated string modified_files = 9;
        Parameters:
        value - The modifiedFiles to add.
        Returns:

        This builder for chaining.

      • addAllModifiedFiles

         BuildSuccess.Builder addAllModifiedFiles(Iterable<String> values)
        Files modified during the build, relative to the build dir
        
        repeated string modified_files = 9;
        Parameters:
        values - The modifiedFiles to add.
        Returns:

        This builder for chaining.

      • clearModifiedFiles

         BuildSuccess.Builder clearModifiedFiles()
        Files modified during the build, relative to the build dir
        
        repeated string modified_files = 9;
        Returns:

        This builder for chaining.

      • addModifiedFilesBytes

         BuildSuccess.Builder addModifiedFilesBytes(ByteString value)
        Files modified during the build, relative to the build dir
        
        repeated string modified_files = 9;
        Parameters:
        value - The bytes of the modifiedFiles to add.
        Returns:

        This builder for chaining.

      • getRedeployNotRequired

         boolean getRedeployNotRequired()
        If there have been no structural changes it is possible that no further action is required
        
        bool redeploy_not_required = 10;
        Returns:

        The redeployNotRequired.

      • setRedeployNotRequired

         BuildSuccess.Builder setRedeployNotRequired(boolean value)
        If there have been no structural changes it is possible that no further action is required
        
        bool redeploy_not_required = 10;
        Parameters:
        value - The redeployNotRequired to set.
        Returns:

        This builder for chaining.

      • clearRedeployNotRequired

         BuildSuccess.Builder clearRedeployNotRequired()
        If there have been no structural changes it is possible that no further action is required
        
        bool redeploy_not_required = 10;
        Returns:

        This builder for chaining.