flytekit.Scalar¶
- class flytekit.Scalar(primitive=None, blob=None, binary=None, schema=None, union=None, none_type=None, error=None, generic=None, structured_dataset=None)[source]¶
Methods
- Parameters:
primitive (Primitive)
blob (Blob)
binary (Binary)
schema (Schema)
union (Union)
none_type (Void)
error (Error)
generic (Struct)
structured_dataset (StructuredDataset)
- classmethod from_flyte_idl(pb2_object)[source]¶
- Parameters:
pb2_object (flyteidl.core.literals_pb2.Scalar)
- Return type:
- short_string()¶
- Return type:
Text
- verbose_string()¶
- Return type:
Text
Attributes
- binary
Binary
- Type:
rtype
- blob
Blob
- Type:
rtype
- error
Error
- Type:
rtype
- generic
google.protobuf.struct_pb2.Struct
- Type:
rtype
- is_empty
- none_type
Void
- Type:
rtype
- primitive
Primitive
- Type:
rtype
- schema
Schema
- Type:
rtype
- structured_dataset
- union
Union
- Type:
rtype
- value
Returns whichever value is set :rtype: T