Package flyteidl.core
Class Tasks.DataLoadingConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- flyteidl.core.Tasks.DataLoadingConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Tasks.DataLoadingConfigOrBuilder,Serializable
- Enclosing class:
- Tasks
public static final class Tasks.DataLoadingConfig extends com.google.protobuf.GeneratedMessageV3 implements Tasks.DataLoadingConfigOrBuilder
This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path Any outputs generated by the user container - within output_path are automatically uploaded.
Protobuf typeflyteidl.core.DataLoadingConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTasks.DataLoadingConfig.BuilderThis configuration allows executing raw containers in Flyte using the Flyte CoPilot system.static classTasks.DataLoadingConfig.LiteralMapFormatLiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description private static Tasks.DataLoadingConfigDEFAULT_INSTANCEprivate booleanenabled_static intENABLED_FIELD_NUMBERprivate intformat_static intFORMAT_FIELD_NUMBERstatic intINPUT_PATH_FIELD_NUMBERprivate ObjectinputPath_static intIO_STRATEGY_FIELD_NUMBERprivate Tasks.IOStrategyioStrategy_private bytememoizedIsInitializedstatic intOUTPUT_PATH_FIELD_NUMBERprivate ObjectoutputPath_private static com.google.protobuf.Parser<Tasks.DataLoadingConfig>PARSERprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateDataLoadingConfig()privateDataLoadingConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Tasks.DataLoadingConfiggetDefaultInstance()Tasks.DataLoadingConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetEnabled()Flag enables DataLoading Config.Tasks.DataLoadingConfig.LiteralMapFormatgetFormat()In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.intgetFormatValue()In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.StringgetInputPath()File system path (start at root).com.google.protobuf.ByteStringgetInputPathBytes()File system path (start at root).Tasks.IOStrategygetIoStrategy().flyteidl.core.IOStrategy io_strategy = 5;Tasks.IOStrategyOrBuildergetIoStrategyOrBuilder().flyteidl.core.IOStrategy io_strategy = 5;StringgetOutputPath()File system path (start at root).com.google.protobuf.ByteStringgetOutputPathBytes()File system path (start at root).com.google.protobuf.Parser<Tasks.DataLoadingConfig>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasIoStrategy().flyteidl.core.IOStrategy io_strategy = 5;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Tasks.DataLoadingConfig.BuildernewBuilder()static Tasks.DataLoadingConfig.BuildernewBuilder(Tasks.DataLoadingConfig prototype)Tasks.DataLoadingConfig.BuildernewBuilderForType()protected Tasks.DataLoadingConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Tasks.DataLoadingConfigparseDelimitedFrom(InputStream input)static Tasks.DataLoadingConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Tasks.DataLoadingConfigparseFrom(byte[] data)static Tasks.DataLoadingConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Tasks.DataLoadingConfigparseFrom(com.google.protobuf.ByteString data)static Tasks.DataLoadingConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Tasks.DataLoadingConfigparseFrom(com.google.protobuf.CodedInputStream input)static Tasks.DataLoadingConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Tasks.DataLoadingConfigparseFrom(InputStream input)static Tasks.DataLoadingConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Tasks.DataLoadingConfigparseFrom(ByteBuffer data)static Tasks.DataLoadingConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Tasks.DataLoadingConfig>parser()Tasks.DataLoadingConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
enabled_
private boolean enabled_
-
INPUT_PATH_FIELD_NUMBER
public static final int INPUT_PATH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
inputPath_
private volatile Object inputPath_
-
OUTPUT_PATH_FIELD_NUMBER
public static final int OUTPUT_PATH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
outputPath_
private volatile Object outputPath_
-
FORMAT_FIELD_NUMBER
public static final int FORMAT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
format_
private int format_
-
IO_STRATEGY_FIELD_NUMBER
public static final int IO_STRATEGY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ioStrategy_
private Tasks.IOStrategy ioStrategy_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final Tasks.DataLoadingConfig DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<Tasks.DataLoadingConfig> PARSER
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getEnabled
public boolean getEnabled()
Flag enables DataLoading Config. If this is not set, data loading will not be used!
bool enabled = 1;- Specified by:
getEnabledin interfaceTasks.DataLoadingConfigOrBuilder- Returns:
- The enabled.
-
getInputPath
public String getInputPath()
File system path (start at root). This folder will contain all the inputs exploded to a separate file. Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format /var/flyte/inputs/y -> Y is a file in Binary format /var/flyte/inputs/z/... -> Note Z itself is a directory More information about the protocol - refer to docs #TODO reference docs here
string input_path = 2;- Specified by:
getInputPathin interfaceTasks.DataLoadingConfigOrBuilder- Returns:
- The inputPath.
-
getInputPathBytes
public com.google.protobuf.ByteString getInputPathBytes()
File system path (start at root). This folder will contain all the inputs exploded to a separate file. Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format /var/flyte/inputs/y -> Y is a file in Binary format /var/flyte/inputs/z/... -> Note Z itself is a directory More information about the protocol - refer to docs #TODO reference docs here
string input_path = 2;- Specified by:
getInputPathBytesin interfaceTasks.DataLoadingConfigOrBuilder- Returns:
- The bytes for inputPath.
-
getOutputPath
public String getOutputPath()
File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
string output_path = 3;- Specified by:
getOutputPathin interfaceTasks.DataLoadingConfigOrBuilder- Returns:
- The outputPath.
-
getOutputPathBytes
public com.google.protobuf.ByteString getOutputPathBytes()
File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
string output_path = 3;- Specified by:
getOutputPathBytesin interfaceTasks.DataLoadingConfigOrBuilder- Returns:
- The bytes for outputPath.
-
getFormatValue
public int getFormatValue()
In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
.flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4;- Specified by:
getFormatValuein interfaceTasks.DataLoadingConfigOrBuilder- Returns:
- The enum numeric value on the wire for format.
-
getFormat
public Tasks.DataLoadingConfig.LiteralMapFormat getFormat()
In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
.flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4;- Specified by:
getFormatin interfaceTasks.DataLoadingConfigOrBuilder- Returns:
- The format.
-
hasIoStrategy
public boolean hasIoStrategy()
.flyteidl.core.IOStrategy io_strategy = 5;- Specified by:
hasIoStrategyin interfaceTasks.DataLoadingConfigOrBuilder- Returns:
- Whether the ioStrategy field is set.
-
getIoStrategy
public Tasks.IOStrategy getIoStrategy()
.flyteidl.core.IOStrategy io_strategy = 5;- Specified by:
getIoStrategyin interfaceTasks.DataLoadingConfigOrBuilder- Returns:
- The ioStrategy.
-
getIoStrategyOrBuilder
public Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder()
.flyteidl.core.IOStrategy io_strategy = 5;- Specified by:
getIoStrategyOrBuilderin interfaceTasks.DataLoadingConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Tasks.DataLoadingConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tasks.DataLoadingConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tasks.DataLoadingConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tasks.DataLoadingConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tasks.DataLoadingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tasks.DataLoadingConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tasks.DataLoadingConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Tasks.DataLoadingConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Tasks.DataLoadingConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Tasks.DataLoadingConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Tasks.DataLoadingConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Tasks.DataLoadingConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Tasks.DataLoadingConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Tasks.DataLoadingConfig.Builder newBuilder()
-
newBuilder
public static Tasks.DataLoadingConfig.Builder newBuilder(Tasks.DataLoadingConfig prototype)
-
toBuilder
public Tasks.DataLoadingConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Tasks.DataLoadingConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Tasks.DataLoadingConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Tasks.DataLoadingConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<Tasks.DataLoadingConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Tasks.DataLoadingConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-