Package tensorflow
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>
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,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 type tensorflow.StructuredValue-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Represents a boolean value.Represents a value for tf.BoundedTensorSpec.Represents a dict `Value`.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) 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.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) 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 com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.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`.com.google.protobuf.ByteStringRepresents 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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanRepresents a value for tf.BoundedTensorSpec.mergeDictValue(Struct.DictValue value) Represents a dict `Value`.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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(com.google.protobuf.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`.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(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStringValue(String value) Represents a string of Unicode characters stored in a Python `str`.setStringValueBytes(com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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, 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, 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, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.StructuredValue.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Struct.StructuredValue.Builder>
-
mergeFrom
-
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 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:
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
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
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
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>
-