Package tensorflow
Class Struct.StructuredValue.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
- tensorflow.Struct.StructuredValue.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,Struct.StructuredValueOrBuilder
- Enclosing class:
- Struct.StructuredValue
public static final class Struct.StructuredValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder> 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 typetensorflow.StructuredValue
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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.Builder<Struct.StructuredValue.Builder>
-
clear
public Struct.StructuredValue.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
getDefaultInstanceForType
public Struct.StructuredValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Struct.StructuredValue build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Struct.StructuredValue buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Struct.StructuredValue.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
setField
public Struct.StructuredValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
clearField
public Struct.StructuredValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
clearOneof
public Struct.StructuredValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
setRepeatedField
public Struct.StructuredValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
addRepeatedField
public Struct.StructuredValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
mergeFrom
public Struct.StructuredValue.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Struct.StructuredValue.Builder>
-
mergeFrom
public Struct.StructuredValue.Builder mergeFrom(Struct.StructuredValue other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
mergeFrom
public Struct.StructuredValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Struct.StructuredValue.Builder>- Throws:
java.io.IOException
-
getKindCase
public Struct.StructuredValue.KindCase getKindCase()
- Specified by:
getKindCasein interfaceStruct.StructuredValueOrBuilder
-
clearKind
public Struct.StructuredValue.Builder clearKind()
-
hasNoneValue
public boolean hasNoneValue()
Represents None.
.tensorflow.NoneValue none_value = 1;- Specified by:
hasNoneValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the noneValue field is set.
-
getNoneValue
public Struct.NoneValue getNoneValue()
Represents None.
.tensorflow.NoneValue none_value = 1;- Specified by:
getNoneValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The noneValue.
-
setNoneValue
public Struct.StructuredValue.Builder setNoneValue(Struct.NoneValue value)
Represents None.
.tensorflow.NoneValue none_value = 1;
-
setNoneValue
public Struct.StructuredValue.Builder setNoneValue(Struct.NoneValue.Builder builderForValue)
Represents None.
.tensorflow.NoneValue none_value = 1;
-
mergeNoneValue
public Struct.StructuredValue.Builder mergeNoneValue(Struct.NoneValue value)
Represents None.
.tensorflow.NoneValue none_value = 1;
-
clearNoneValue
public Struct.StructuredValue.Builder clearNoneValue()
Represents None.
.tensorflow.NoneValue none_value = 1;
-
getNoneValueBuilder
public Struct.NoneValue.Builder getNoneValueBuilder()
Represents None.
.tensorflow.NoneValue none_value = 1;
-
getNoneValueOrBuilder
public Struct.NoneValueOrBuilder getNoneValueOrBuilder()
Represents None.
.tensorflow.NoneValue none_value = 1;- Specified by:
getNoneValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
getFloat64Value
public double getFloat64Value()
Represents a double-precision floating-point value (a Python `float`).
double float64_value = 11;- Specified by:
getFloat64Valuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The float64Value.
-
setFloat64Value
public Struct.StructuredValue.Builder setFloat64Value(double value)
Represents a double-precision floating-point value (a Python `float`).
double float64_value = 11;- Parameters:
value- The float64Value to set.- Returns:
- This builder for chaining.
-
clearFloat64Value
public Struct.StructuredValue.Builder clearFloat64Value()
Represents a double-precision floating-point value (a Python `float`).
double float64_value = 11;- Returns:
- This builder for chaining.
-
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:
getInt64Valuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The int64Value.
-
setInt64Value
public Struct.StructuredValue.Builder setInt64Value(long value)
Represents a signed integer value, limited to 64 bits. Larger values from Python's arbitrary-precision integers are unsupported.
sint64 int64_value = 12;- Parameters:
value- The int64Value to set.- Returns:
- This builder for chaining.
-
clearInt64Value
public Struct.StructuredValue.Builder clearInt64Value()
Represents a signed integer value, limited to 64 bits. Larger values from Python's arbitrary-precision integers are unsupported.
sint64 int64_value = 12;- Returns:
- This builder for chaining.
-
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:
getStringValuein 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:
getStringValueBytesin interfaceStruct.StructuredValueOrBuilder- Returns:
- The bytes for stringValue.
-
setStringValue
public Struct.StructuredValue.Builder setStringValue(java.lang.String value)
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;- Parameters:
value- The stringValue to set.- Returns:
- This builder for chaining.
-
clearStringValue
public Struct.StructuredValue.Builder clearStringValue()
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;- Returns:
- This builder for chaining.
-
setStringValueBytes
public Struct.StructuredValue.Builder setStringValueBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for stringValue to set.- Returns:
- This builder for chaining.
-
getBoolValue
public boolean getBoolValue()
Represents a boolean value.
bool bool_value = 14;- Specified by:
getBoolValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The boolValue.
-
setBoolValue
public Struct.StructuredValue.Builder setBoolValue(boolean value)
Represents a boolean value.
bool bool_value = 14;- Parameters:
value- The boolValue to set.- Returns:
- This builder for chaining.
-
clearBoolValue
public Struct.StructuredValue.Builder clearBoolValue()
Represents a boolean value.
bool bool_value = 14;- Returns:
- This builder for chaining.
-
hasTensorShapeValue
public boolean hasTensorShapeValue()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;- Specified by:
hasTensorShapeValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the tensorShapeValue field is set.
-
getTensorShapeValue
public TensorShapeProto getTensorShapeValue()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;- Specified by:
getTensorShapeValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The tensorShapeValue.
-
setTensorShapeValue
public Struct.StructuredValue.Builder setTensorShapeValue(TensorShapeProto value)
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;
-
setTensorShapeValue
public Struct.StructuredValue.Builder setTensorShapeValue(TensorShapeProto.Builder builderForValue)
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;
-
mergeTensorShapeValue
public Struct.StructuredValue.Builder mergeTensorShapeValue(TensorShapeProto value)
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;
-
clearTensorShapeValue
public Struct.StructuredValue.Builder clearTensorShapeValue()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;
-
getTensorShapeValueBuilder
public TensorShapeProto.Builder getTensorShapeValueBuilder()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;
-
getTensorShapeValueOrBuilder
public TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;- Specified by:
getTensorShapeValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
getTensorDtypeValueValue
public int getTensorDtypeValueValue()
Represents an enum value for dtype.
.tensorflow.DataType tensor_dtype_value = 32;- Specified by:
getTensorDtypeValueValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The enum numeric value on the wire for tensorDtypeValue.
-
setTensorDtypeValueValue
public Struct.StructuredValue.Builder setTensorDtypeValueValue(int value)
Represents an enum value for dtype.
.tensorflow.DataType tensor_dtype_value = 32;- Parameters:
value- The enum numeric value on the wire for tensorDtypeValue to set.- Returns:
- This builder for chaining.
-
getTensorDtypeValue
public DataType getTensorDtypeValue()
Represents an enum value for dtype.
.tensorflow.DataType tensor_dtype_value = 32;- Specified by:
getTensorDtypeValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The tensorDtypeValue.
-
setTensorDtypeValue
public Struct.StructuredValue.Builder setTensorDtypeValue(DataType value)
Represents an enum value for dtype.
.tensorflow.DataType tensor_dtype_value = 32;- Parameters:
value- The tensorDtypeValue to set.- Returns:
- This builder for chaining.
-
clearTensorDtypeValue
public Struct.StructuredValue.Builder clearTensorDtypeValue()
Represents an enum value for dtype.
.tensorflow.DataType tensor_dtype_value = 32;- Returns:
- This builder for chaining.
-
hasTensorSpecValue
public boolean hasTensorSpecValue()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;- Specified by:
hasTensorSpecValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the tensorSpecValue field is set.
-
getTensorSpecValue
public Struct.TensorSpecProto getTensorSpecValue()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;- Specified by:
getTensorSpecValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The tensorSpecValue.
-
setTensorSpecValue
public Struct.StructuredValue.Builder setTensorSpecValue(Struct.TensorSpecProto value)
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;
-
setTensorSpecValue
public Struct.StructuredValue.Builder setTensorSpecValue(Struct.TensorSpecProto.Builder builderForValue)
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;
-
mergeTensorSpecValue
public Struct.StructuredValue.Builder mergeTensorSpecValue(Struct.TensorSpecProto value)
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;
-
clearTensorSpecValue
public Struct.StructuredValue.Builder clearTensorSpecValue()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;
-
getTensorSpecValueBuilder
public Struct.TensorSpecProto.Builder getTensorSpecValueBuilder()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;
-
getTensorSpecValueOrBuilder
public Struct.TensorSpecProtoOrBuilder getTensorSpecValueOrBuilder()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;- Specified by:
getTensorSpecValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasTypeSpecValue
public boolean hasTypeSpecValue()
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;- Specified by:
hasTypeSpecValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the typeSpecValue field is set.
-
getTypeSpecValue
public Struct.TypeSpecProto getTypeSpecValue()
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;- Specified by:
getTypeSpecValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The typeSpecValue.
-
setTypeSpecValue
public Struct.StructuredValue.Builder setTypeSpecValue(Struct.TypeSpecProto value)
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;
-
setTypeSpecValue
public Struct.StructuredValue.Builder setTypeSpecValue(Struct.TypeSpecProto.Builder builderForValue)
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;
-
mergeTypeSpecValue
public Struct.StructuredValue.Builder mergeTypeSpecValue(Struct.TypeSpecProto value)
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;
-
clearTypeSpecValue
public Struct.StructuredValue.Builder clearTypeSpecValue()
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;
-
getTypeSpecValueBuilder
public Struct.TypeSpecProto.Builder getTypeSpecValueBuilder()
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;
-
getTypeSpecValueOrBuilder
public Struct.TypeSpecProtoOrBuilder getTypeSpecValueOrBuilder()
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;- Specified by:
getTypeSpecValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasListValue
public boolean hasListValue()
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;- Specified by:
hasListValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the listValue field is set.
-
getListValue
public Struct.ListValue getListValue()
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;- Specified by:
getListValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The listValue.
-
setListValue
public Struct.StructuredValue.Builder setListValue(Struct.ListValue value)
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;
-
setListValue
public Struct.StructuredValue.Builder setListValue(Struct.ListValue.Builder builderForValue)
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;
-
mergeListValue
public Struct.StructuredValue.Builder mergeListValue(Struct.ListValue value)
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;
-
clearListValue
public Struct.StructuredValue.Builder clearListValue()
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;
-
getListValueBuilder
public Struct.ListValue.Builder getListValueBuilder()
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;
-
getListValueOrBuilder
public Struct.ListValueOrBuilder getListValueOrBuilder()
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;- Specified by:
getListValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasTupleValue
public boolean hasTupleValue()
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;- Specified by:
hasTupleValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the tupleValue field is set.
-
getTupleValue
public Struct.TupleValue getTupleValue()
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;- Specified by:
getTupleValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The tupleValue.
-
setTupleValue
public Struct.StructuredValue.Builder setTupleValue(Struct.TupleValue value)
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;
-
setTupleValue
public Struct.StructuredValue.Builder setTupleValue(Struct.TupleValue.Builder builderForValue)
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;
-
mergeTupleValue
public Struct.StructuredValue.Builder mergeTupleValue(Struct.TupleValue value)
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;
-
clearTupleValue
public Struct.StructuredValue.Builder clearTupleValue()
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;
-
getTupleValueBuilder
public Struct.TupleValue.Builder getTupleValueBuilder()
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;
-
getTupleValueOrBuilder
public Struct.TupleValueOrBuilder getTupleValueOrBuilder()
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;- Specified by:
getTupleValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasDictValue
public boolean hasDictValue()
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;- Specified by:
hasDictValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the dictValue field is set.
-
getDictValue
public Struct.DictValue getDictValue()
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;- Specified by:
getDictValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The dictValue.
-
setDictValue
public Struct.StructuredValue.Builder setDictValue(Struct.DictValue value)
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;
-
setDictValue
public Struct.StructuredValue.Builder setDictValue(Struct.DictValue.Builder builderForValue)
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;
-
mergeDictValue
public Struct.StructuredValue.Builder mergeDictValue(Struct.DictValue value)
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;
-
clearDictValue
public Struct.StructuredValue.Builder clearDictValue()
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;
-
getDictValueBuilder
public Struct.DictValue.Builder getDictValueBuilder()
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;
-
getDictValueOrBuilder
public Struct.DictValueOrBuilder getDictValueOrBuilder()
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;- Specified by:
getDictValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasNamedTupleValue
public boolean hasNamedTupleValue()
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;- Specified by:
hasNamedTupleValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the namedTupleValue field is set.
-
getNamedTupleValue
public Struct.NamedTupleValue getNamedTupleValue()
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;- Specified by:
getNamedTupleValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The namedTupleValue.
-
setNamedTupleValue
public Struct.StructuredValue.Builder setNamedTupleValue(Struct.NamedTupleValue value)
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;
-
setNamedTupleValue
public Struct.StructuredValue.Builder setNamedTupleValue(Struct.NamedTupleValue.Builder builderForValue)
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;
-
mergeNamedTupleValue
public Struct.StructuredValue.Builder mergeNamedTupleValue(Struct.NamedTupleValue value)
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;
-
clearNamedTupleValue
public Struct.StructuredValue.Builder clearNamedTupleValue()
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;
-
getNamedTupleValueBuilder
public Struct.NamedTupleValue.Builder getNamedTupleValueBuilder()
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;
-
getNamedTupleValueOrBuilder
public Struct.NamedTupleValueOrBuilder getNamedTupleValueOrBuilder()
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;- Specified by:
getNamedTupleValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
setUnknownFields
public final Struct.StructuredValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
mergeUnknownFields
public final Struct.StructuredValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
-