Class ModuleConfig.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.ModuleConfigOrBuilder

    
    public final class ModuleConfig.Builder
    extends GeneratedMessageV3.Builder<BuilderT> implements ModuleConfigOrBuilder
                        
    ModuleConfig contains the configuration for a module, found in the module's ftl.toml file.
    
    Protobuf type xyz.block.ftl.language.v1.ModuleConfig
    • Constructor Detail

    • Method Detail

      • getDescriptor

         final static Descriptors.Descriptor getDescriptor()
      • getName

         String getName()
        Name of the module
        
        string name = 1;
        Returns:

        The name.

      • getNameBytes

         ByteString getNameBytes()
        Name of the module
        
        string name = 1;
        Returns:

        The bytes for name.

      • setNameBytes

         ModuleConfig.Builder setNameBytes(ByteString value)
        Name of the module
        
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:

        This builder for chaining.

      • getDir

         String getDir()
        Absolute path to the module's directory
        
        string dir = 2;
        Returns:

        The dir.

      • getDirBytes

         ByteString getDirBytes()
        Absolute path to the module's directory
        
        string dir = 2;
        Returns:

        The bytes for dir.

      • setDir

         ModuleConfig.Builder setDir(String value)
        Absolute path to the module's directory
        
        string dir = 2;
        Parameters:
        value - The dir to set.
        Returns:

        This builder for chaining.

      • setDirBytes

         ModuleConfig.Builder setDirBytes(ByteString value)
        Absolute path to the module's directory
        
        string dir = 2;
        Parameters:
        value - The bytes for dir to set.
        Returns:

        This builder for chaining.

      • getLanguage

         String getLanguage()
        The language of the module
        
        string language = 3;
        Returns:

        The language.

      • getLanguageBytes

         ByteString getLanguageBytes()
        The language of the module
        
        string language = 3;
        Returns:

        The bytes for language.

      • setLanguage

         ModuleConfig.Builder setLanguage(String value)
        The language of the module
        
        string language = 3;
        Parameters:
        value - The language to set.
        Returns:

        This builder for chaining.

      • setLanguageBytes

         ModuleConfig.Builder setLanguageBytes(ByteString value)
        The language of the module
        
        string language = 3;
        Parameters:
        value - The bytes for language to set.
        Returns:

        This builder for chaining.

      • getDeployDir

         String getDeployDir()
        Absolute path to the directory containing all of this module's build artifacts for deployments
        
        string deploy_dir = 4;
        Returns:

        The deployDir.

      • getDeployDirBytes

         ByteString getDeployDirBytes()
        Absolute path to the directory containing all of this module's build artifacts for deployments
        
        string deploy_dir = 4;
        Returns:

        The bytes for deployDir.

      • setDeployDir

         ModuleConfig.Builder setDeployDir(String value)
        Absolute path to the directory containing all of this module's build artifacts for deployments
        
        string deploy_dir = 4;
        Parameters:
        value - The deployDir to set.
        Returns:

        This builder for chaining.

      • clearDeployDir

         ModuleConfig.Builder clearDeployDir()
        Absolute path to the directory containing all of this module's build artifacts for deployments
        
        string deploy_dir = 4;
        Returns:

        This builder for chaining.

      • setDeployDirBytes

         ModuleConfig.Builder setDeployDirBytes(ByteString value)
        Absolute path to the directory containing all of this module's build artifacts for deployments
        
        string deploy_dir = 4;
        Parameters:
        value - The bytes for deployDir to set.
        Returns:

        This builder for chaining.

      • hasBuild

         boolean hasBuild()
        Build is the command to build the module.
        
        optional string build = 5;
        Returns:

        Whether the build field is set.

      • getBuild

         String getBuild()
        Build is the command to build the module.
        
        optional string build = 5;
        Returns:

        The build.

      • getBuildBytes

         ByteString getBuildBytes()
        Build is the command to build the module.
        
        optional string build = 5;
        Returns:

        The bytes for build.

      • setBuild

         ModuleConfig.Builder setBuild(String value)
        Build is the command to build the module.
        
        optional string build = 5;
        Parameters:
        value - The build to set.
        Returns:

        This builder for chaining.

      • clearBuild

         ModuleConfig.Builder clearBuild()
        Build is the command to build the module.
        
        optional string build = 5;
        Returns:

        This builder for chaining.

      • setBuildBytes

         ModuleConfig.Builder setBuildBytes(ByteString value)
        Build is the command to build the module.
        
        optional string build = 5;
        Parameters:
        value - The bytes for build to set.
        Returns:

        This builder for chaining.

      • hasDevModeBuild

         boolean hasDevModeBuild()
        DevModeBuild is the command to build the module in dev mode.
        
        optional string dev_mode_build = 6;
        Returns:

        Whether the devModeBuild field is set.

      • getDevModeBuild

         String getDevModeBuild()
        DevModeBuild is the command to build the module in dev mode.
        
        optional string dev_mode_build = 6;
        Returns:

        The devModeBuild.

      • getDevModeBuildBytes

         ByteString getDevModeBuildBytes()
        DevModeBuild is the command to build the module in dev mode.
        
        optional string dev_mode_build = 6;
        Returns:

        The bytes for devModeBuild.

      • setDevModeBuild

         ModuleConfig.Builder setDevModeBuild(String value)
        DevModeBuild is the command to build the module in dev mode.
        
        optional string dev_mode_build = 6;
        Parameters:
        value - The devModeBuild to set.
        Returns:

        This builder for chaining.

      • clearDevModeBuild

         ModuleConfig.Builder clearDevModeBuild()
        DevModeBuild is the command to build the module in dev mode.
        
        optional string dev_mode_build = 6;
        Returns:

        This builder for chaining.

      • setDevModeBuildBytes

         ModuleConfig.Builder setDevModeBuildBytes(ByteString value)
        DevModeBuild is the command to build the module in dev mode.
        
        optional string dev_mode_build = 6;
        Parameters:
        value - The bytes for devModeBuild to set.
        Returns:

        This builder for chaining.

      • getBuildLock

         String getBuildLock()
        Build lock path to prevent concurrent builds
        
        string build_lock = 7;
        Returns:

        The buildLock.

      • getBuildLockBytes

         ByteString getBuildLockBytes()
        Build lock path to prevent concurrent builds
        
        string build_lock = 7;
        Returns:

        The bytes for buildLock.

      • setBuildLock

         ModuleConfig.Builder setBuildLock(String value)
        Build lock path to prevent concurrent builds
        
        string build_lock = 7;
        Parameters:
        value - The buildLock to set.
        Returns:

        This builder for chaining.

      • setBuildLockBytes

         ModuleConfig.Builder setBuildLockBytes(ByteString value)
        Build lock path to prevent concurrent builds
        
        string build_lock = 7;
        Parameters:
        value - The bytes for buildLock to set.
        Returns:

        This builder for chaining.

      • getWatchList

         ProtocolStringList getWatchList()
        Patterns to watch for file changes
        
        repeated string watch = 9;
        Returns:

        A list containing the watch.

      • getWatchCount

         int getWatchCount()
        Patterns to watch for file changes
        
        repeated string watch = 9;
        Returns:

        The count of watch.

      • getWatch

         String getWatch(int index)
        Patterns to watch for file changes
        
        repeated string watch = 9;
        Parameters:
        index - The index of the element to return.
        Returns:

        The watch at the given index.

      • getWatchBytes

         ByteString getWatchBytes(int index)
        Patterns to watch for file changes
        
        repeated string watch = 9;
        Parameters:
        index - The index of the value to return.
        Returns:

        The bytes of the watch at the given index.

      • setWatch

         ModuleConfig.Builder setWatch(int index, String value)
        Patterns to watch for file changes
        
        repeated string watch = 9;
        Parameters:
        index - The index to set the value at.
        value - The watch to set.
        Returns:

        This builder for chaining.

      • addWatch

         ModuleConfig.Builder addWatch(String value)
        Patterns to watch for file changes
        
        repeated string watch = 9;
        Parameters:
        value - The watch to add.
        Returns:

        This builder for chaining.

      • addWatchBytes

         ModuleConfig.Builder addWatchBytes(ByteString value)
        Patterns to watch for file changes
        
        repeated string watch = 9;
        Parameters:
        value - The bytes of the watch to add.
        Returns:

        This builder for chaining.

      • hasLanguageConfig

         boolean hasLanguageConfig()
        LanguageConfig contains any metadata specific to a specific language.
        These are stored in the ftl.toml file under the same key as the language (eg: "go", "java")
        
        .google.protobuf.Struct language_config = 10;
        Returns:

        Whether the languageConfig field is set.

      • getLanguageConfig

         Struct getLanguageConfig()
        LanguageConfig contains any metadata specific to a specific language.
        These are stored in the ftl.toml file under the same key as the language (eg: "go", "java")
        
        .google.protobuf.Struct language_config = 10;
        Returns:

        The languageConfig.

      • setLanguageConfig

         ModuleConfig.Builder setLanguageConfig(Struct value)
        LanguageConfig contains any metadata specific to a specific language.
        These are stored in the ftl.toml file under the same key as the language (eg: "go", "java")
        
        .google.protobuf.Struct language_config = 10;
      • setLanguageConfig

         ModuleConfig.Builder setLanguageConfig(Struct.Builder builderForValue)
        LanguageConfig contains any metadata specific to a specific language.
        These are stored in the ftl.toml file under the same key as the language (eg: "go", "java")
        
        .google.protobuf.Struct language_config = 10;
      • mergeLanguageConfig

         ModuleConfig.Builder mergeLanguageConfig(Struct value)
        LanguageConfig contains any metadata specific to a specific language.
        These are stored in the ftl.toml file under the same key as the language (eg: "go", "java")
        
        .google.protobuf.Struct language_config = 10;
      • clearLanguageConfig

         ModuleConfig.Builder clearLanguageConfig()
        LanguageConfig contains any metadata specific to a specific language.
        These are stored in the ftl.toml file under the same key as the language (eg: "go", "java")
        
        .google.protobuf.Struct language_config = 10;
      • getLanguageConfigBuilder

         Struct.Builder getLanguageConfigBuilder()
        LanguageConfig contains any metadata specific to a specific language.
        These are stored in the ftl.toml file under the same key as the language (eg: "go", "java")
        
        .google.protobuf.Struct language_config = 10;
      • getLanguageConfigOrBuilder

         StructOrBuilder getLanguageConfigOrBuilder()
        LanguageConfig contains any metadata specific to a specific language.
        These are stored in the ftl.toml file under the same key as the language (eg: "go", "java")
        
        .google.protobuf.Struct language_config = 10;
      • getSqlMigrationDir

         String getSqlMigrationDir()
        The directory containing the SQL migration files
        
        string sql_migration_dir = 11;
        Returns:

        The sqlMigrationDir.

      • getSqlMigrationDirBytes

         ByteString getSqlMigrationDirBytes()
        The directory containing the SQL migration files
        
        string sql_migration_dir = 11;
        Returns:

        The bytes for sqlMigrationDir.

      • setSqlMigrationDir

         ModuleConfig.Builder setSqlMigrationDir(String value)
        The directory containing the SQL migration files
        
        string sql_migration_dir = 11;
        Parameters:
        value - The sqlMigrationDir to set.
        Returns:

        This builder for chaining.

      • setSqlMigrationDirBytes

         ModuleConfig.Builder setSqlMigrationDirBytes(ByteString value)
        The directory containing the SQL migration files
        
        string sql_migration_dir = 11;
        Parameters:
        value - The bytes for sqlMigrationDir to set.
        Returns:

        This builder for chaining.