Class Struct.StructuredValue.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Struct.StructuredValue.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
org.tensorflow.proto.Struct.StructuredValue.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, Struct.StructuredValueOrBuilder
- Enclosing class:
Struct.StructuredValue
public static final class Struct.StructuredValue.Builder
extends 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 type tensorflow.StructuredValue-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()Represents a boolean value.Represents a value for tf.BoundedTensorSpec.Represents a dict `Value`.Represents a double-precision floating-point value (a Python `float`).Represents a signed integer value, limited to 64 bits.Represents a list of `Value`.Represents Python's namedtuple.Represents None.Represents a value for np.ndarray.Represents a string of Unicode characters stored in a Python `str`.Represents an enum value for dtype.Represents a TensorShape.Represents a value for tf.TensorSpec.Represents a value for tf.Tensor.Represents a tuple of `Value`.Represents a value for tf.TypeSpec.clone()booleanRepresents a boolean value.Represents a value for tf.BoundedTensorSpec.Represents a value for tf.BoundedTensorSpec.Represents a value for tf.BoundedTensorSpec.static final Descriptors.DescriptorRepresents a dict `Value`.Represents a dict `Value`.Represents a dict `Value`.doubleRepresents a double-precision floating-point value (a Python `float`).longRepresents a signed integer value, limited to 64 bits.Represents a list of `Value`.Represents a list of `Value`.Represents a list of `Value`.Represents Python's namedtuple.Represents Python's namedtuple.Represents Python's namedtuple.Represents None.Represents None.Represents None.Represents a value for np.ndarray.Represents a value for np.ndarray.Represents a value for np.ndarray.Represents a string of Unicode characters stored in a Python `str`.Represents a string of Unicode characters stored in a Python `str`.Represents an enum value for dtype.intRepresents an enum value for dtype.Represents a TensorShape.Represents a TensorShape.Represents a TensorShape.Represents a value for tf.TensorSpec.Represents a value for tf.TensorSpec.Represents a value for tf.TensorSpec.Represents a value for tf.Tensor.Represents a value for tf.Tensor.Represents a value for tf.Tensor.Represents a tuple of `Value`.Represents a tuple of `Value`.Represents a tuple of `Value`.Represents a value for tf.TypeSpec.Represents a value for tf.TypeSpec.Represents a value for tf.TypeSpec.booleanRepresents a boolean value.booleanRepresents a value for tf.BoundedTensorSpec.booleanRepresents a dict `Value`.booleanRepresents a double-precision floating-point value (a Python `float`).booleanRepresents a signed integer value, limited to 64 bits.booleanRepresents a list of `Value`.booleanRepresents Python's namedtuple.booleanRepresents None.booleanRepresents a value for np.ndarray.booleanRepresents a string of Unicode characters stored in a Python `str`.booleanRepresents an enum value for dtype.booleanRepresents a TensorShape.booleanRepresents a value for tf.TensorSpec.booleanRepresents a value for tf.Tensor.booleanRepresents a tuple of `Value`.booleanRepresents a value for tf.TypeSpec.protected GeneratedMessageV3.FieldAccessorTablefinal booleanRepresents a value for tf.BoundedTensorSpec.mergeDictValue(Struct.DictValue value) Represents a dict `Value`.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(Struct.StructuredValue other) mergeListValue(Struct.ListValue value) Represents a list of `Value`.Represents Python's namedtuple.mergeNoneValue(Struct.NoneValue value) Represents None.mergeNumpyValue(TensorProto value) Represents a value for np.ndarray.Represents a TensorShape.Represents a value for tf.TensorSpec.mergeTensorValue(TensorProto value) Represents a value for tf.Tensor.mergeTupleValue(Struct.TupleValue value) Represents a tuple of `Value`.Represents a value for tf.TypeSpec.mergeUnknownFields(UnknownFieldSet unknownFields) setBoolValue(boolean value) Represents a boolean value.Represents a value for tf.BoundedTensorSpec.setBoundedTensorSpecValue(Struct.BoundedTensorSpecProto.Builder builderForValue) Represents a value for tf.BoundedTensorSpec.setDictValue(Struct.DictValue value) Represents a dict `Value`.setDictValue(Struct.DictValue.Builder builderForValue) Represents a dict `Value`.setField(Descriptors.FieldDescriptor field, Object value) setFloat64Value(double value) Represents a double-precision floating-point value (a Python `float`).setInt64Value(long value) Represents a signed integer value, limited to 64 bits.setListValue(Struct.ListValue value) Represents a list of `Value`.setListValue(Struct.ListValue.Builder builderForValue) Represents a list of `Value`.Represents Python's namedtuple.setNamedTupleValue(Struct.NamedTupleValue.Builder builderForValue) Represents Python's namedtuple.setNoneValue(Struct.NoneValue value) Represents None.setNoneValue(Struct.NoneValue.Builder builderForValue) Represents None.setNumpyValue(TensorProto value) Represents a value for np.ndarray.setNumpyValue(TensorProto.Builder builderForValue) Represents a value for np.ndarray.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setStringValue(String value) Represents a string of Unicode characters stored in a Python `str`.setStringValueBytes(ByteString value) Represents a string of Unicode characters stored in a Python `str`.setTensorDtypeValue(DataType value) Represents an enum value for dtype.setTensorDtypeValueValue(int value) Represents an enum value for dtype.Represents a TensorShape.setTensorShapeValue(TensorShapeProto.Builder builderForValue) Represents a TensorShape.Represents a value for tf.TensorSpec.setTensorSpecValue(Struct.TensorSpecProto.Builder builderForValue) Represents a value for tf.TensorSpec.setTensorValue(TensorProto value) Represents a value for tf.Tensor.setTensorValue(TensorProto.Builder builderForValue) Represents a value for tf.Tensor.setTupleValue(Struct.TupleValue value) Represents a tuple of `Value`.setTupleValue(Struct.TupleValue.Builder builderForValue) Represents a tuple of `Value`.Represents a value for tf.TypeSpec.setTypeSpecValue(Struct.TypeSpecProto.Builder builderForValue) Represents a value for tf.TypeSpec.setUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
setRepeatedField
public Struct.StructuredValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
addRepeatedField
public Struct.StructuredValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Struct.StructuredValue.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
mergeFrom
public Struct.StructuredValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Struct.StructuredValue.Builder>- Throws:
IOException
-
getKindCase
- Specified by:
getKindCasein interfaceStruct.StructuredValueOrBuilder
-
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
Represents None.
.tensorflow.NoneValue none_value = 1;- Specified by:
getNoneValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The noneValue.
-
setNoneValue
Represents None.
.tensorflow.NoneValue none_value = 1; -
setNoneValue
Represents None.
.tensorflow.NoneValue none_value = 1; -
mergeNoneValue
Represents None.
.tensorflow.NoneValue none_value = 1; -
clearNoneValue
Represents None.
.tensorflow.NoneValue none_value = 1; -
getNoneValueBuilder
Represents None.
.tensorflow.NoneValue none_value = 1; -
getNoneValueOrBuilder
Represents None.
.tensorflow.NoneValue none_value = 1;- Specified by:
getNoneValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasFloat64Value
public boolean hasFloat64Value()Represents a double-precision floating-point value (a Python `float`).
double float64_value = 11;- Specified by:
hasFloat64Valuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the float64Value field is set.
-
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
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
Represents a double-precision floating-point value (a Python `float`).
double float64_value = 11;- Returns:
- This builder for chaining.
-
hasInt64Value
public boolean hasInt64Value()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:
hasInt64Valuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the int64Value field is set.
-
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
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
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.
-
hasStringValue
public boolean hasStringValue()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:
hasStringValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the stringValue field is set.
-
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
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
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
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
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.
-
hasBoolValue
public boolean hasBoolValue()Represents a boolean value.
bool bool_value = 14;- Specified by:
hasBoolValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()Represents a boolean value.
bool bool_value = 14;- Specified by:
getBoolValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The boolValue.
-
setBoolValue
Represents a boolean value.
bool bool_value = 14;- Parameters:
value- The boolValue to set.- Returns:
- This builder for chaining.
-
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
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;- Specified by:
getTensorShapeValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The tensorShapeValue.
-
setTensorShapeValue
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31; -
setTensorShapeValue
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31; -
mergeTensorShapeValue
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31; -
clearTensorShapeValue
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31; -
getTensorShapeValueBuilder
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31; -
getTensorShapeValueOrBuilder
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;- Specified by:
getTensorShapeValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasTensorDtypeValue
public boolean hasTensorDtypeValue()Represents an enum value for dtype.
.tensorflow.DataType tensor_dtype_value = 32;- Specified by:
hasTensorDtypeValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the tensorDtypeValue field is set.
-
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
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
Represents an enum value for dtype.
.tensorflow.DataType tensor_dtype_value = 32;- Specified by:
getTensorDtypeValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The tensorDtypeValue.
-
setTensorDtypeValue
Represents an enum value for dtype.
.tensorflow.DataType tensor_dtype_value = 32;- Parameters:
value- The tensorDtypeValue to set.- Returns:
- This builder for chaining.
-
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
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;- Specified by:
getTensorSpecValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The tensorSpecValue.
-
setTensorSpecValue
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
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33; -
clearTensorSpecValue
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33; -
getTensorSpecValueBuilder
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33; -
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
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;- Specified by:
getTypeSpecValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The typeSpecValue.
-
setTypeSpecValue
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
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34; -
clearTypeSpecValue
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34; -
getTypeSpecValueBuilder
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34; -
getTypeSpecValueOrBuilder
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;- Specified by:
getTypeSpecValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasBoundedTensorSpecValue
public boolean hasBoundedTensorSpecValue()Represents a value for tf.BoundedTensorSpec.
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;- Specified by:
hasBoundedTensorSpecValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the boundedTensorSpecValue field is set.
-
getBoundedTensorSpecValue
Represents a value for tf.BoundedTensorSpec.
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;- Specified by:
getBoundedTensorSpecValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The boundedTensorSpecValue.
-
setBoundedTensorSpecValue
public Struct.StructuredValue.Builder setBoundedTensorSpecValue(Struct.BoundedTensorSpecProto value) Represents a value for tf.BoundedTensorSpec.
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; -
setBoundedTensorSpecValue
public Struct.StructuredValue.Builder setBoundedTensorSpecValue(Struct.BoundedTensorSpecProto.Builder builderForValue) Represents a value for tf.BoundedTensorSpec.
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; -
mergeBoundedTensorSpecValue
public Struct.StructuredValue.Builder mergeBoundedTensorSpecValue(Struct.BoundedTensorSpecProto value) Represents a value for tf.BoundedTensorSpec.
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; -
clearBoundedTensorSpecValue
Represents a value for tf.BoundedTensorSpec.
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; -
getBoundedTensorSpecValueBuilder
Represents a value for tf.BoundedTensorSpec.
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; -
getBoundedTensorSpecValueOrBuilder
Represents a value for tf.BoundedTensorSpec.
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;- Specified by:
getBoundedTensorSpecValueOrBuilderin 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
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;- Specified by:
getListValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The listValue.
-
setListValue
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51; -
setListValue
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51; -
mergeListValue
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51; -
clearListValue
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51; -
getListValueBuilder
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51; -
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
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;- Specified by:
getTupleValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The tupleValue.
-
setTupleValue
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52; -
setTupleValue
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52; -
mergeTupleValue
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52; -
clearTupleValue
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52; -
getTupleValueBuilder
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52; -
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
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;- Specified by:
getDictValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The dictValue.
-
setDictValue
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53; -
setDictValue
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53; -
mergeDictValue
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53; -
clearDictValue
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53; -
getDictValueBuilder
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53; -
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
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;- Specified by:
getNamedTupleValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The namedTupleValue.
-
setNamedTupleValue
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
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54; -
clearNamedTupleValue
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54; -
getNamedTupleValueBuilder
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54; -
getNamedTupleValueOrBuilder
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;- Specified by:
getNamedTupleValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasTensorValue
public boolean hasTensorValue()Represents a value for tf.Tensor.
.tensorflow.TensorProto tensor_value = 55;- Specified by:
hasTensorValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the tensorValue field is set.
-
getTensorValue
Represents a value for tf.Tensor.
.tensorflow.TensorProto tensor_value = 55;- Specified by:
getTensorValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The tensorValue.
-
setTensorValue
Represents a value for tf.Tensor.
.tensorflow.TensorProto tensor_value = 55; -
setTensorValue
Represents a value for tf.Tensor.
.tensorflow.TensorProto tensor_value = 55; -
mergeTensorValue
Represents a value for tf.Tensor.
.tensorflow.TensorProto tensor_value = 55; -
clearTensorValue
Represents a value for tf.Tensor.
.tensorflow.TensorProto tensor_value = 55; -
getTensorValueBuilder
Represents a value for tf.Tensor.
.tensorflow.TensorProto tensor_value = 55; -
getTensorValueOrBuilder
Represents a value for tf.Tensor.
.tensorflow.TensorProto tensor_value = 55;- Specified by:
getTensorValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasNumpyValue
public boolean hasNumpyValue()Represents a value for np.ndarray.
.tensorflow.TensorProto numpy_value = 56;- Specified by:
hasNumpyValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the numpyValue field is set.
-
getNumpyValue
Represents a value for np.ndarray.
.tensorflow.TensorProto numpy_value = 56;- Specified by:
getNumpyValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The numpyValue.
-
setNumpyValue
Represents a value for np.ndarray.
.tensorflow.TensorProto numpy_value = 56; -
setNumpyValue
Represents a value for np.ndarray.
.tensorflow.TensorProto numpy_value = 56; -
mergeNumpyValue
Represents a value for np.ndarray.
.tensorflow.TensorProto numpy_value = 56; -
clearNumpyValue
Represents a value for np.ndarray.
.tensorflow.TensorProto numpy_value = 56; -
getNumpyValueBuilder
Represents a value for np.ndarray.
.tensorflow.TensorProto numpy_value = 56; -
getNumpyValueOrBuilder
Represents a value for np.ndarray.
.tensorflow.TensorProto numpy_value = 56;- Specified by:
getNumpyValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-