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
Protobuf typeModuleConfig contains the configuration for a module, found in the module's ftl.toml file.xyz.block.ftl.language.v1.ModuleConfig
-
-
Method Summary
Modifier and Type Method Description final static Descriptors.DescriptorgetDescriptor()ModuleConfig.Builderclear()Descriptors.DescriptorgetDescriptorForType()ModuleConfiggetDefaultInstanceForType()ModuleConfigbuild()ModuleConfigbuildPartial()ModuleConfig.Builderclone()ModuleConfig.BuildersetField(Descriptors.FieldDescriptor field, Object value)ModuleConfig.BuilderclearField(Descriptors.FieldDescriptor field)ModuleConfig.BuilderclearOneof(Descriptors.OneofDescriptor oneof)ModuleConfig.BuildersetRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)ModuleConfig.BuilderaddRepeatedField(Descriptors.FieldDescriptor field, Object value)ModuleConfig.BuildermergeFrom(Message other)ModuleConfig.BuildermergeFrom(ModuleConfig other)final booleanisInitialized()ModuleConfig.BuildermergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)StringgetName()Name of the modulestring name = 1;ByteStringgetNameBytes()Name of the modulestring name = 1;ModuleConfig.BuildersetName(String value)Name of the modulestring name = 1;ModuleConfig.BuilderclearName()Name of the modulestring name = 1;ModuleConfig.BuildersetNameBytes(ByteString value)Name of the modulestring name = 1;StringgetDir()Absolute path to the module's directorystring dir = 2;ByteStringgetDirBytes()Absolute path to the module's directorystring dir = 2;ModuleConfig.BuildersetDir(String value)Absolute path to the module's directorystring dir = 2;ModuleConfig.BuilderclearDir()Absolute path to the module's directorystring dir = 2;ModuleConfig.BuildersetDirBytes(ByteString value)Absolute path to the module's directorystring dir = 2;StringgetLanguage()The language of the modulestring language = 3;ByteStringgetLanguageBytes()The language of the modulestring language = 3;ModuleConfig.BuildersetLanguage(String value)The language of the modulestring language = 3;ModuleConfig.BuilderclearLanguage()The language of the modulestring language = 3;ModuleConfig.BuildersetLanguageBytes(ByteString value)The language of the modulestring language = 3;StringgetDeployDir()Absolute path to the directory containing all of this module's build artifacts for deploymentsstring deploy_dir = 4;ByteStringgetDeployDirBytes()Absolute path to the directory containing all of this module's build artifacts for deploymentsstring deploy_dir = 4;ModuleConfig.BuildersetDeployDir(String value)Absolute path to the directory containing all of this module's build artifacts for deploymentsstring deploy_dir = 4;ModuleConfig.BuilderclearDeployDir()Absolute path to the directory containing all of this module's build artifacts for deploymentsstring deploy_dir = 4;ModuleConfig.BuildersetDeployDirBytes(ByteString value)Absolute path to the directory containing all of this module's build artifacts for deploymentsstring deploy_dir = 4;booleanhasBuild()Build is the command to build the module.optional string build = 5;StringgetBuild()Build is the command to build the module.optional string build = 5;ByteStringgetBuildBytes()Build is the command to build the module.optional string build = 5;ModuleConfig.BuildersetBuild(String value)Build is the command to build the module.optional string build = 5;ModuleConfig.BuilderclearBuild()Build is the command to build the module.optional string build = 5;ModuleConfig.BuildersetBuildBytes(ByteString value)Build is the command to build the module.optional string build = 5;booleanhasDevModeBuild()DevModeBuild is the command to build the module in dev mode.optional string dev_mode_build = 6;StringgetDevModeBuild()DevModeBuild is the command to build the module in dev mode.optional string dev_mode_build = 6;ByteStringgetDevModeBuildBytes()DevModeBuild is the command to build the module in dev mode.optional string dev_mode_build = 6;ModuleConfig.BuildersetDevModeBuild(String value)DevModeBuild is the command to build the module in dev mode.optional string dev_mode_build = 6;ModuleConfig.BuilderclearDevModeBuild()DevModeBuild is the command to build the module in dev mode.optional string dev_mode_build = 6;ModuleConfig.BuildersetDevModeBuildBytes(ByteString value)DevModeBuild is the command to build the module in dev mode.optional string dev_mode_build = 6;StringgetBuildLock()Build lock path to prevent concurrent buildsstring build_lock = 7;ByteStringgetBuildLockBytes()Build lock path to prevent concurrent buildsstring build_lock = 7;ModuleConfig.BuildersetBuildLock(String value)Build lock path to prevent concurrent buildsstring build_lock = 7;ModuleConfig.BuilderclearBuildLock()Build lock path to prevent concurrent buildsstring build_lock = 7;ModuleConfig.BuildersetBuildLockBytes(ByteString value)Build lock path to prevent concurrent buildsstring build_lock = 7;ProtocolStringListgetWatchList()Patterns to watch for file changesrepeated string watch = 9;intgetWatchCount()Patterns to watch for file changesrepeated string watch = 9;StringgetWatch(int index)Patterns to watch for file changesrepeated string watch = 9;ByteStringgetWatchBytes(int index)Patterns to watch for file changesrepeated string watch = 9;ModuleConfig.BuildersetWatch(int index, String value)Patterns to watch for file changesrepeated string watch = 9;ModuleConfig.BuilderaddWatch(String value)Patterns to watch for file changesrepeated string watch = 9;ModuleConfig.BuilderaddAllWatch(Iterable<String> values)Patterns to watch for file changesrepeated string watch = 9;ModuleConfig.BuilderclearWatch()Patterns to watch for file changesrepeated string watch = 9;ModuleConfig.BuilderaddWatchBytes(ByteString value)Patterns to watch for file changesrepeated string watch = 9;booleanhasLanguageConfig()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;StructgetLanguageConfig()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;ModuleConfig.BuildersetLanguageConfig(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;ModuleConfig.BuildersetLanguageConfig(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;ModuleConfig.BuildermergeLanguageConfig(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;ModuleConfig.BuilderclearLanguageConfig()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;Struct.BuildergetLanguageConfigBuilder()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;StructOrBuildergetLanguageConfigOrBuilder()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;StringgetSqlRootDir()The root directory containing the SQL files, relative to the module directory.string sql_root_dir = 11;ByteStringgetSqlRootDirBytes()The root directory containing the SQL files, relative to the module directory.string sql_root_dir = 11;ModuleConfig.BuildersetSqlRootDir(String value)The root directory containing the SQL files, relative to the module directory.string sql_root_dir = 11;ModuleConfig.BuilderclearSqlRootDir()The root directory containing the SQL files, relative to the module directory.string sql_root_dir = 11;ModuleConfig.BuildersetSqlRootDirBytes(ByteString value)The root directory containing the SQL files, relative to the module directory.string sql_root_dir = 11;final ModuleConfig.BuildersetUnknownFields(UnknownFieldSet unknownFields)final ModuleConfig.BuildermergeUnknownFields(UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForField -
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
clear, clearOneof, clone, findInitializationErrors, getInitializationErrorString, mergeUnknownFields, toString -
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
mergeDelimitedFrom -
Methods inherited from class com.google.protobuf.Message.Builder
addRepeatedField, clear, clearField, clearOneof, clone, mergeFrom, mergeUnknownFields, setField, setRepeatedField, setUnknownFields -
Methods inherited from class com.google.protobuf.MessageLite.Builder
build, buildPartial -
Methods inherited from class com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDescriptor
final static Descriptors.Descriptor getDescriptor()
-
clear
ModuleConfig.Builder clear()
-
getDescriptorForType
Descriptors.Descriptor getDescriptorForType()
-
getDefaultInstanceForType
ModuleConfig getDefaultInstanceForType()
-
build
ModuleConfig build()
-
buildPartial
ModuleConfig buildPartial()
-
clone
ModuleConfig.Builder clone()
-
setField
ModuleConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
-
clearField
ModuleConfig.Builder clearField(Descriptors.FieldDescriptor field)
-
clearOneof
ModuleConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
-
setRepeatedField
ModuleConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
-
addRepeatedField
ModuleConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
-
mergeFrom
ModuleConfig.Builder mergeFrom(Message other)
-
mergeFrom
ModuleConfig.Builder mergeFrom(ModuleConfig other)
-
isInitialized
final boolean isInitialized()
-
mergeFrom
ModuleConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
-
getNameBytes
ByteString getNameBytes()
Name of the modulestring name = 1;- Returns:
The bytes for name.
-
setName
ModuleConfig.Builder setName(String value)
Name of the modulestring name = 1;- Parameters:
value- The name to set.- Returns:
This builder for chaining.
-
clearName
ModuleConfig.Builder clearName()
Name of the modulestring name = 1;- Returns:
This builder for chaining.
-
setNameBytes
ModuleConfig.Builder setNameBytes(ByteString value)
Name of the modulestring name = 1;- Parameters:
value- The bytes for name to set.- Returns:
This builder for chaining.
-
getDirBytes
ByteString getDirBytes()
Absolute path to the module's directorystring dir = 2;- Returns:
The bytes for dir.
-
setDir
ModuleConfig.Builder setDir(String value)
Absolute path to the module's directorystring dir = 2;- Parameters:
value- The dir to set.- Returns:
This builder for chaining.
-
clearDir
ModuleConfig.Builder clearDir()
Absolute path to the module's directorystring dir = 2;- Returns:
This builder for chaining.
-
setDirBytes
ModuleConfig.Builder setDirBytes(ByteString value)
Absolute path to the module's directorystring dir = 2;- Parameters:
value- The bytes for dir to set.- Returns:
This builder for chaining.
-
getLanguage
String getLanguage()
The language of the modulestring language = 3;- Returns:
The language.
-
getLanguageBytes
ByteString getLanguageBytes()
The language of the modulestring language = 3;- Returns:
The bytes for language.
-
setLanguage
ModuleConfig.Builder setLanguage(String value)
The language of the modulestring language = 3;- Parameters:
value- The language to set.- Returns:
This builder for chaining.
-
clearLanguage
ModuleConfig.Builder clearLanguage()
The language of the modulestring language = 3;- Returns:
This builder for chaining.
-
setLanguageBytes
ModuleConfig.Builder setLanguageBytes(ByteString value)
The language of the modulestring 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 deploymentsstring deploy_dir = 4;- Returns:
The deployDir.
-
getDeployDirBytes
ByteString getDeployDirBytes()
Absolute path to the directory containing all of this module's build artifacts for deploymentsstring 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 deploymentsstring 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 deploymentsstring 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 deploymentsstring 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 buildsstring build_lock = 7;- Returns:
The buildLock.
-
getBuildLockBytes
ByteString getBuildLockBytes()
Build lock path to prevent concurrent buildsstring build_lock = 7;- Returns:
The bytes for buildLock.
-
setBuildLock
ModuleConfig.Builder setBuildLock(String value)
Build lock path to prevent concurrent buildsstring build_lock = 7;- Parameters:
value- The buildLock to set.- Returns:
This builder for chaining.
-
clearBuildLock
ModuleConfig.Builder clearBuildLock()
Build lock path to prevent concurrent buildsstring build_lock = 7;- Returns:
This builder for chaining.
-
setBuildLockBytes
ModuleConfig.Builder setBuildLockBytes(ByteString value)
Build lock path to prevent concurrent buildsstring build_lock = 7;- Parameters:
value- The bytes for buildLock to set.- Returns:
This builder for chaining.
-
getWatchList
ProtocolStringList getWatchList()
Patterns to watch for file changesrepeated string watch = 9;- Returns:
A list containing the watch.
-
getWatchCount
int getWatchCount()
Patterns to watch for file changesrepeated string watch = 9;- Returns:
The count of watch.
-
getWatch
String getWatch(int index)
Patterns to watch for file changesrepeated 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 changesrepeated 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 changesrepeated 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 changesrepeated string watch = 9;- Parameters:
value- The watch to add.- Returns:
This builder for chaining.
-
addAllWatch
ModuleConfig.Builder addAllWatch(Iterable<String> values)
Patterns to watch for file changesrepeated string watch = 9;- Parameters:
values- The watch to add.- Returns:
This builder for chaining.
-
clearWatch
ModuleConfig.Builder clearWatch()
Patterns to watch for file changesrepeated string watch = 9;- Returns:
This builder for chaining.
-
addWatchBytes
ModuleConfig.Builder addWatchBytes(ByteString value)
Patterns to watch for file changesrepeated 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;
-
getSqlRootDir
String getSqlRootDir()
The root directory containing the SQL files, relative to the module directory.string sql_root_dir = 11;- Returns:
The sqlRootDir.
-
getSqlRootDirBytes
ByteString getSqlRootDirBytes()
The root directory containing the SQL files, relative to the module directory.string sql_root_dir = 11;- Returns:
The bytes for sqlRootDir.
-
setSqlRootDir
ModuleConfig.Builder setSqlRootDir(String value)
The root directory containing the SQL files, relative to the module directory.string sql_root_dir = 11;- Parameters:
value- The sqlRootDir to set.- Returns:
This builder for chaining.
-
clearSqlRootDir
ModuleConfig.Builder clearSqlRootDir()
The root directory containing the SQL files, relative to the module directory.string sql_root_dir = 11;- Returns:
This builder for chaining.
-
setSqlRootDirBytes
ModuleConfig.Builder setSqlRootDirBytes(ByteString value)
The root directory containing the SQL files, relative to the module directory.string sql_root_dir = 11;- Parameters:
value- The bytes for sqlRootDir to set.- Returns:
This builder for chaining.
-
setUnknownFields
final ModuleConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
-
mergeUnknownFields
final ModuleConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
-
-
-
-