Package flyteidl.core
Class Literals.Literal
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- flyteidl.core.Literals.Literal
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Literals.LiteralOrBuilder,Serializable
- Enclosing class:
- Literals
public static final class Literals.Literal extends com.google.protobuf.GeneratedMessageV3 implements Literals.LiteralOrBuilder
A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
Protobuf typeflyteidl.core.Literal- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLiterals.Literal.BuilderA simple value.static classLiterals.Literal.ValueCase-
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 static intCOLLECTION_FIELD_NUMBERprivate static Literals.LiteralDEFAULT_INSTANCEprivate Objecthash_static intHASH_FIELD_NUMBERstatic intMAP_FIELD_NUMBERprivate bytememoizedIsInitializedprivate static com.google.protobuf.Parser<Literals.Literal>PARSERstatic intSCALAR_FIELD_NUMBERprivate static longserialVersionUIDprivate Objectvalue_private intvalueCase_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Literals.LiteralCollectiongetCollection()A collection of literals to allow nesting.Literals.LiteralCollectionOrBuildergetCollectionOrBuilder()A collection of literals to allow nesting.static Literals.LiteralgetDefaultInstance()Literals.LiteralgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetHash()A hash representing this literal.com.google.protobuf.ByteStringgetHashBytes()A hash representing this literal.Literals.LiteralMapgetMap()A map of strings to literals.Literals.LiteralMapOrBuildergetMapOrBuilder()A map of strings to literals.com.google.protobuf.Parser<Literals.Literal>getParserForType()Literals.ScalargetScalar()A simple value.Literals.ScalarOrBuildergetScalarOrBuilder()A simple value.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()Literals.Literal.ValueCasegetValueCase()booleanhasCollection()A collection of literals to allow nesting.inthashCode()booleanhasMap()A map of strings to literals.booleanhasScalar()A simple value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Literals.Literal.BuildernewBuilder()static Literals.Literal.BuildernewBuilder(Literals.Literal prototype)Literals.Literal.BuildernewBuilderForType()protected Literals.Literal.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Literals.LiteralparseDelimitedFrom(InputStream input)static Literals.LiteralparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Literals.LiteralparseFrom(byte[] data)static Literals.LiteralparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Literals.LiteralparseFrom(com.google.protobuf.ByteString data)static Literals.LiteralparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Literals.LiteralparseFrom(com.google.protobuf.CodedInputStream input)static Literals.LiteralparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Literals.LiteralparseFrom(InputStream input)static Literals.LiteralparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Literals.LiteralparseFrom(ByteBuffer data)static Literals.LiteralparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Literals.Literal>parser()Literals.Literal.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
-
valueCase_
private int valueCase_
-
value_
private Object value_
-
SCALAR_FIELD_NUMBER
public static final int SCALAR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COLLECTION_FIELD_NUMBER
public static final int COLLECTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAP_FIELD_NUMBER
public static final int MAP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HASH_FIELD_NUMBER
public static final int HASH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
hash_
private volatile Object hash_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final Literals.Literal DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<Literals.Literal> 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
-
getValueCase
public Literals.Literal.ValueCase getValueCase()
- Specified by:
getValueCasein interfaceLiterals.LiteralOrBuilder
-
hasScalar
public boolean hasScalar()
A simple value.
.flyteidl.core.Scalar scalar = 1;- Specified by:
hasScalarin interfaceLiterals.LiteralOrBuilder- Returns:
- Whether the scalar field is set.
-
getScalar
public Literals.Scalar getScalar()
A simple value.
.flyteidl.core.Scalar scalar = 1;- Specified by:
getScalarin interfaceLiterals.LiteralOrBuilder- Returns:
- The scalar.
-
getScalarOrBuilder
public Literals.ScalarOrBuilder getScalarOrBuilder()
A simple value.
.flyteidl.core.Scalar scalar = 1;- Specified by:
getScalarOrBuilderin interfaceLiterals.LiteralOrBuilder
-
hasCollection
public boolean hasCollection()
A collection of literals to allow nesting.
.flyteidl.core.LiteralCollection collection = 2;- Specified by:
hasCollectionin interfaceLiterals.LiteralOrBuilder- Returns:
- Whether the collection field is set.
-
getCollection
public Literals.LiteralCollection getCollection()
A collection of literals to allow nesting.
.flyteidl.core.LiteralCollection collection = 2;- Specified by:
getCollectionin interfaceLiterals.LiteralOrBuilder- Returns:
- The collection.
-
getCollectionOrBuilder
public Literals.LiteralCollectionOrBuilder getCollectionOrBuilder()
A collection of literals to allow nesting.
.flyteidl.core.LiteralCollection collection = 2;- Specified by:
getCollectionOrBuilderin interfaceLiterals.LiteralOrBuilder
-
hasMap
public boolean hasMap()
A map of strings to literals.
.flyteidl.core.LiteralMap map = 3;- Specified by:
hasMapin interfaceLiterals.LiteralOrBuilder- Returns:
- Whether the map field is set.
-
getMap
public Literals.LiteralMap getMap()
A map of strings to literals.
.flyteidl.core.LiteralMap map = 3;- Specified by:
getMapin interfaceLiterals.LiteralOrBuilder- Returns:
- The map.
-
getMapOrBuilder
public Literals.LiteralMapOrBuilder getMapOrBuilder()
A map of strings to literals.
.flyteidl.core.LiteralMap map = 3;- Specified by:
getMapOrBuilderin interfaceLiterals.LiteralOrBuilder
-
getHash
public String getHash()
A hash representing this literal. This is used for caching purposes. For more details refer to RFC 1893 (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
string hash = 4;- Specified by:
getHashin interfaceLiterals.LiteralOrBuilder- Returns:
- The hash.
-
getHashBytes
public com.google.protobuf.ByteString getHashBytes()
A hash representing this literal. This is used for caching purposes. For more details refer to RFC 1893 (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
string hash = 4;- Specified by:
getHashBytesin interfaceLiterals.LiteralOrBuilder- Returns:
- The bytes for hash.
-
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 Literals.Literal parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Literals.Literal parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Literals.Literal parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Literals.Literal parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Literals.Literal parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Literals.Literal parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Literals.Literal parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Literals.Literal parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Literals.Literal parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Literals.Literal parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Literals.Literal parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Literals.Literal parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Literals.Literal.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Literals.Literal.Builder newBuilder()
-
newBuilder
public static Literals.Literal.Builder newBuilder(Literals.Literal prototype)
-
toBuilder
public Literals.Literal.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Literals.Literal.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Literals.Literal getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Literals.Literal> parser()
-
getParserForType
public com.google.protobuf.Parser<Literals.Literal> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Literals.Literal getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-