Package org.platanios.tensorflow.proto
Class Struct.StructuredValue
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.platanios.tensorflow.proto.Struct.StructuredValue
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.io.Serializable
,Struct.StructuredValueOrBuilder
- Enclosing class:
- Struct
public static final class Struct.StructuredValue extends com.google.protobuf.GeneratedMessageV3 implements Struct.StructuredValueOrBuilder
`StructuredValue` represents a dynamically typed value representing various data structures that are inspired by Python data structures typically used in TensorFlow functions as inputs and outputs. For example when saving a Layer there may be a `training` argument. If the user passes a boolean True/False, that switches between two concrete TensorFlow functions. In order to switch between them in the same way after loading the SavedModel, we need to represent "True" and "False". A more advanced example might be a function which takes a list of dictionaries mapping from strings to Tensors. In order to map from user-specified arguments `[{"a": tf.constant(1.)}, {"q": tf.constant(3.)}]` after load to the right saved TensorFlow function, we need to represent the nested structure and the strings, recording that we have a trace for anything matching `[{"a": tf.TensorSpec(None, tf.float32)}, {"q": tf.TensorSpec([], tf.float64)}]` as an example. Likewise functions may return nested structures of Tensors, for example returning a dictionary mapping from strings to Tensors. In order for the loaded function to return the same structure we need to serialize it. This is an ergonomic aid for working with loaded SavedModels, not a promise to serialize all possible function signatures. For example we do not expect to pickle generic Python objects, and ideally we'd stay language-agnostic.
Protobuf typeorg.platanios.tensorflow.proto.StructuredValue
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Struct.StructuredValue.Builder
`StructuredValue` represents a dynamically typed value representing various data structures that are inspired by Python data structures typically used in TensorFlow functions as inputs and outputs.static class
Struct.StructuredValue.KindCase
-
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 int
BOOL_VALUE_FIELD_NUMBER
static int
BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER
static int
DICT_VALUE_FIELD_NUMBER
static int
FLOAT64_VALUE_FIELD_NUMBER
static int
INT64_VALUE_FIELD_NUMBER
static int
LIST_VALUE_FIELD_NUMBER
static int
NAMED_TUPLE_VALUE_FIELD_NUMBER
static int
NONE_VALUE_FIELD_NUMBER
static int
STRING_VALUE_FIELD_NUMBER
static int
TENSOR_DTYPE_VALUE_FIELD_NUMBER
static int
TENSOR_SHAPE_VALUE_FIELD_NUMBER
static int
TENSOR_SPEC_VALUE_FIELD_NUMBER
static int
TUPLE_VALUE_FIELD_NUMBER
static int
TYPE_SPEC_VALUE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
boolean
getBoolValue()
Represents a boolean value.Struct.BoundedTensorSpecProto
getBoundedTensorSpecValue()
Represents a value for tf.BoundedTensorSpec.Struct.BoundedTensorSpecProtoOrBuilder
getBoundedTensorSpecValueOrBuilder()
Represents a value for tf.BoundedTensorSpec.static Struct.StructuredValue
getDefaultInstance()
Struct.StructuredValue
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Struct.DictValue
getDictValue()
Represents a dict `Value`.Struct.DictValueOrBuilder
getDictValueOrBuilder()
Represents a dict `Value`.double
getFloat64Value()
Represents a double-precision floating-point value (a Python `float`).long
getInt64Value()
Represents a signed integer value, limited to 64 bits.Struct.StructuredValue.KindCase
getKindCase()
Struct.ListValue
getListValue()
Represents a list of `Value`.Struct.ListValueOrBuilder
getListValueOrBuilder()
Represents a list of `Value`.Struct.NamedTupleValue
getNamedTupleValue()
Represents Python's namedtuple.Struct.NamedTupleValueOrBuilder
getNamedTupleValueOrBuilder()
Represents Python's namedtuple.Struct.NoneValue
getNoneValue()
Represents None.Struct.NoneValueOrBuilder
getNoneValueOrBuilder()
Represents None.com.google.protobuf.Parser<Struct.StructuredValue>
getParserForType()
int
getSerializedSize()
java.lang.String
getStringValue()
Represents a string of Unicode characters stored in a Python `str`.com.google.protobuf.ByteString
getStringValueBytes()
Represents a string of Unicode characters stored in a Python `str`.DataType
getTensorDtypeValue()
Represents an enum value for dtype.int
getTensorDtypeValueValue()
Represents an enum value for dtype.TensorShapeProto
getTensorShapeValue()
Represents a TensorShape.TensorShapeProtoOrBuilder
getTensorShapeValueOrBuilder()
Represents a TensorShape.Struct.TensorSpecProto
getTensorSpecValue()
Represents a value for tf.TensorSpec.Struct.TensorSpecProtoOrBuilder
getTensorSpecValueOrBuilder()
Represents a value for tf.TensorSpec.Struct.TupleValue
getTupleValue()
Represents a tuple of `Value`.Struct.TupleValueOrBuilder
getTupleValueOrBuilder()
Represents a tuple of `Value`.Struct.TypeSpecProto
getTypeSpecValue()
Represents a value for tf.TypeSpec.Struct.TypeSpecProtoOrBuilder
getTypeSpecValueOrBuilder()
Represents a value for tf.TypeSpec.com.google.protobuf.UnknownFieldSet
getUnknownFields()
boolean
hasBoundedTensorSpecValue()
Represents a value for tf.BoundedTensorSpec.boolean
hasDictValue()
Represents a dict `Value`.int
hashCode()
boolean
hasListValue()
Represents a list of `Value`.boolean
hasNamedTupleValue()
Represents Python's namedtuple.boolean
hasNoneValue()
Represents None.boolean
hasTensorShapeValue()
Represents a TensorShape.boolean
hasTensorSpecValue()
Represents a value for tf.TensorSpec.boolean
hasTupleValue()
Represents a tuple of `Value`.boolean
hasTypeSpecValue()
Represents a value for tf.TypeSpec.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Struct.StructuredValue.Builder
newBuilder()
static Struct.StructuredValue.Builder
newBuilder(Struct.StructuredValue prototype)
Struct.StructuredValue.Builder
newBuilderForType()
protected Struct.StructuredValue.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected java.lang.Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Struct.StructuredValue
parseDelimitedFrom(java.io.InputStream input)
static Struct.StructuredValue
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Struct.StructuredValue
parseFrom(byte[] data)
static Struct.StructuredValue
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Struct.StructuredValue
parseFrom(com.google.protobuf.ByteString data)
static Struct.StructuredValue
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Struct.StructuredValue
parseFrom(com.google.protobuf.CodedInputStream input)
static Struct.StructuredValue
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Struct.StructuredValue
parseFrom(java.io.InputStream input)
static Struct.StructuredValue
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Struct.StructuredValue
parseFrom(java.nio.ByteBuffer data)
static Struct.StructuredValue
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Struct.StructuredValue>
parser()
Struct.StructuredValue.Builder
toBuilder()
void
writeTo(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, 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
-
NONE_VALUE_FIELD_NUMBER
public static final int NONE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FLOAT64_VALUE_FIELD_NUMBER
public static final int FLOAT64_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT64_VALUE_FIELD_NUMBER
public static final int INT64_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_VALUE_FIELD_NUMBER
public static final int STRING_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOL_VALUE_FIELD_NUMBER
public static final int BOOL_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSOR_SHAPE_VALUE_FIELD_NUMBER
public static final int TENSOR_SHAPE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSOR_DTYPE_VALUE_FIELD_NUMBER
public static final int TENSOR_DTYPE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSOR_SPEC_VALUE_FIELD_NUMBER
public static final int TENSOR_SPEC_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_SPEC_VALUE_FIELD_NUMBER
public static final int TYPE_SPEC_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER
public static final int BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIST_VALUE_FIELD_NUMBER
public static final int LIST_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TUPLE_VALUE_FIELD_NUMBER
public static final int TUPLE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DICT_VALUE_FIELD_NUMBER
public static final int DICT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAMED_TUPLE_VALUE_FIELD_NUMBER
public static final int NAMED_TUPLE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getKindCase
public Struct.StructuredValue.KindCase getKindCase()
- Specified by:
getKindCase
in interfaceStruct.StructuredValueOrBuilder
-
hasNoneValue
public boolean hasNoneValue()
Represents None.
.org.platanios.tensorflow.proto.NoneValue none_value = 1;
- Specified by:
hasNoneValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- Whether the noneValue field is set.
-
getNoneValue
public Struct.NoneValue getNoneValue()
Represents None.
.org.platanios.tensorflow.proto.NoneValue none_value = 1;
- Specified by:
getNoneValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The noneValue.
-
getNoneValueOrBuilder
public Struct.NoneValueOrBuilder getNoneValueOrBuilder()
Represents None.
.org.platanios.tensorflow.proto.NoneValue none_value = 1;
- Specified by:
getNoneValueOrBuilder
in interfaceStruct.StructuredValueOrBuilder
-
getFloat64Value
public double getFloat64Value()
Represents a double-precision floating-point value (a Python `float`).
double float64_value = 11;
- Specified by:
getFloat64Value
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The float64Value.
-
getInt64Value
public long getInt64Value()
Represents a signed integer value, limited to 64 bits. Larger values from Python's arbitrary-precision integers are unsupported.
sint64 int64_value = 12;
- Specified by:
getInt64Value
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The int64Value.
-
getStringValue
public java.lang.String getStringValue()
Represents a string of Unicode characters stored in a Python `str`. In Python 3, this is exactly what type `str` is. In Python 2, this is the UTF-8 encoding of the characters. For strings with ASCII characters only (as often used in TensorFlow code) there is effectively no difference between the language versions. The obsolescent `unicode` type of Python 2 is not supported here.
string string_value = 13;
- Specified by:
getStringValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()
Represents a string of Unicode characters stored in a Python `str`. In Python 3, this is exactly what type `str` is. In Python 2, this is the UTF-8 encoding of the characters. For strings with ASCII characters only (as often used in TensorFlow code) there is effectively no difference between the language versions. The obsolescent `unicode` type of Python 2 is not supported here.
string string_value = 13;
- Specified by:
getStringValueBytes
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The bytes for stringValue.
-
getBoolValue
public boolean getBoolValue()
Represents a boolean value.
bool bool_value = 14;
- Specified by:
getBoolValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The boolValue.
-
hasTensorShapeValue
public boolean hasTensorShapeValue()
Represents a TensorShape.
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape_value = 31;
- Specified by:
hasTensorShapeValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- Whether the tensorShapeValue field is set.
-
getTensorShapeValue
public TensorShapeProto getTensorShapeValue()
Represents a TensorShape.
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape_value = 31;
- Specified by:
getTensorShapeValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The tensorShapeValue.
-
getTensorShapeValueOrBuilder
public TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder()
Represents a TensorShape.
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape_value = 31;
- Specified by:
getTensorShapeValueOrBuilder
in interfaceStruct.StructuredValueOrBuilder
-
getTensorDtypeValueValue
public int getTensorDtypeValueValue()
Represents an enum value for dtype.
.org.platanios.tensorflow.proto.DataType tensor_dtype_value = 32;
- Specified by:
getTensorDtypeValueValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The enum numeric value on the wire for tensorDtypeValue.
-
getTensorDtypeValue
public DataType getTensorDtypeValue()
Represents an enum value for dtype.
.org.platanios.tensorflow.proto.DataType tensor_dtype_value = 32;
- Specified by:
getTensorDtypeValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The tensorDtypeValue.
-
hasTensorSpecValue
public boolean hasTensorSpecValue()
Represents a value for tf.TensorSpec.
.org.platanios.tensorflow.proto.TensorSpecProto tensor_spec_value = 33;
- Specified by:
hasTensorSpecValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- Whether the tensorSpecValue field is set.
-
getTensorSpecValue
public Struct.TensorSpecProto getTensorSpecValue()
Represents a value for tf.TensorSpec.
.org.platanios.tensorflow.proto.TensorSpecProto tensor_spec_value = 33;
- Specified by:
getTensorSpecValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The tensorSpecValue.
-
getTensorSpecValueOrBuilder
public Struct.TensorSpecProtoOrBuilder getTensorSpecValueOrBuilder()
Represents a value for tf.TensorSpec.
.org.platanios.tensorflow.proto.TensorSpecProto tensor_spec_value = 33;
- Specified by:
getTensorSpecValueOrBuilder
in interfaceStruct.StructuredValueOrBuilder
-
hasTypeSpecValue
public boolean hasTypeSpecValue()
Represents a value for tf.TypeSpec.
.org.platanios.tensorflow.proto.TypeSpecProto type_spec_value = 34;
- Specified by:
hasTypeSpecValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- Whether the typeSpecValue field is set.
-
getTypeSpecValue
public Struct.TypeSpecProto getTypeSpecValue()
Represents a value for tf.TypeSpec.
.org.platanios.tensorflow.proto.TypeSpecProto type_spec_value = 34;
- Specified by:
getTypeSpecValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The typeSpecValue.
-
getTypeSpecValueOrBuilder
public Struct.TypeSpecProtoOrBuilder getTypeSpecValueOrBuilder()
Represents a value for tf.TypeSpec.
.org.platanios.tensorflow.proto.TypeSpecProto type_spec_value = 34;
- Specified by:
getTypeSpecValueOrBuilder
in interfaceStruct.StructuredValueOrBuilder
-
hasBoundedTensorSpecValue
public boolean hasBoundedTensorSpecValue()
Represents a value for tf.BoundedTensorSpec.
.org.platanios.tensorflow.proto.BoundedTensorSpecProto bounded_tensor_spec_value = 35;
- Specified by:
hasBoundedTensorSpecValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- Whether the boundedTensorSpecValue field is set.
-
getBoundedTensorSpecValue
public Struct.BoundedTensorSpecProto getBoundedTensorSpecValue()
Represents a value for tf.BoundedTensorSpec.
.org.platanios.tensorflow.proto.BoundedTensorSpecProto bounded_tensor_spec_value = 35;
- Specified by:
getBoundedTensorSpecValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The boundedTensorSpecValue.
-
getBoundedTensorSpecValueOrBuilder
public Struct.BoundedTensorSpecProtoOrBuilder getBoundedTensorSpecValueOrBuilder()
Represents a value for tf.BoundedTensorSpec.
.org.platanios.tensorflow.proto.BoundedTensorSpecProto bounded_tensor_spec_value = 35;
- Specified by:
getBoundedTensorSpecValueOrBuilder
in interfaceStruct.StructuredValueOrBuilder
-
hasListValue
public boolean hasListValue()
Represents a list of `Value`.
.org.platanios.tensorflow.proto.ListValue list_value = 51;
- Specified by:
hasListValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- Whether the listValue field is set.
-
getListValue
public Struct.ListValue getListValue()
Represents a list of `Value`.
.org.platanios.tensorflow.proto.ListValue list_value = 51;
- Specified by:
getListValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The listValue.
-
getListValueOrBuilder
public Struct.ListValueOrBuilder getListValueOrBuilder()
Represents a list of `Value`.
.org.platanios.tensorflow.proto.ListValue list_value = 51;
- Specified by:
getListValueOrBuilder
in interfaceStruct.StructuredValueOrBuilder
-
hasTupleValue
public boolean hasTupleValue()
Represents a tuple of `Value`.
.org.platanios.tensorflow.proto.TupleValue tuple_value = 52;
- Specified by:
hasTupleValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- Whether the tupleValue field is set.
-
getTupleValue
public Struct.TupleValue getTupleValue()
Represents a tuple of `Value`.
.org.platanios.tensorflow.proto.TupleValue tuple_value = 52;
- Specified by:
getTupleValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The tupleValue.
-
getTupleValueOrBuilder
public Struct.TupleValueOrBuilder getTupleValueOrBuilder()
Represents a tuple of `Value`.
.org.platanios.tensorflow.proto.TupleValue tuple_value = 52;
- Specified by:
getTupleValueOrBuilder
in interfaceStruct.StructuredValueOrBuilder
-
hasDictValue
public boolean hasDictValue()
Represents a dict `Value`.
.org.platanios.tensorflow.proto.DictValue dict_value = 53;
- Specified by:
hasDictValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- Whether the dictValue field is set.
-
getDictValue
public Struct.DictValue getDictValue()
Represents a dict `Value`.
.org.platanios.tensorflow.proto.DictValue dict_value = 53;
- Specified by:
getDictValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The dictValue.
-
getDictValueOrBuilder
public Struct.DictValueOrBuilder getDictValueOrBuilder()
Represents a dict `Value`.
.org.platanios.tensorflow.proto.DictValue dict_value = 53;
- Specified by:
getDictValueOrBuilder
in interfaceStruct.StructuredValueOrBuilder
-
hasNamedTupleValue
public boolean hasNamedTupleValue()
Represents Python's namedtuple.
.org.platanios.tensorflow.proto.NamedTupleValue named_tuple_value = 54;
- Specified by:
hasNamedTupleValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- Whether the namedTupleValue field is set.
-
getNamedTupleValue
public Struct.NamedTupleValue getNamedTupleValue()
Represents Python's namedtuple.
.org.platanios.tensorflow.proto.NamedTupleValue named_tuple_value = 54;
- Specified by:
getNamedTupleValue
in interfaceStruct.StructuredValueOrBuilder
- Returns:
- The namedTupleValue.
-
getNamedTupleValueOrBuilder
public Struct.NamedTupleValueOrBuilder getNamedTupleValueOrBuilder()
Represents Python's namedtuple.
.org.platanios.tensorflow.proto.NamedTupleValue named_tuple_value = 54;
- Specified by:
getNamedTupleValueOrBuilder
in interfaceStruct.StructuredValueOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Struct.StructuredValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Struct.StructuredValue parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Struct.StructuredValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Struct.StructuredValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Struct.StructuredValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Struct.StructuredValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Struct.StructuredValue parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Struct.StructuredValue parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Struct.StructuredValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Struct.StructuredValue parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Struct.StructuredValue parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Struct.StructuredValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Struct.StructuredValue.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Struct.StructuredValue.Builder newBuilder()
-
newBuilder
public static Struct.StructuredValue.Builder newBuilder(Struct.StructuredValue prototype)
-
toBuilder
public Struct.StructuredValue.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Struct.StructuredValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Struct.StructuredValue getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Struct.StructuredValue> parser()
-
getParserForType
public com.google.protobuf.Parser<Struct.StructuredValue> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Struct.StructuredValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-