Class Snapshot.TensorMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Snapshot.TensorMetadata.Builder>
com.google.protobuf.GeneratedMessage.Builder<Snapshot.TensorMetadata.Builder>
org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, Snapshot.TensorMetadataOrBuilder
- Enclosing class:
Snapshot.TensorMetadata
public static final class Snapshot.TensorMetadata.Builder
extends GeneratedMessage.Builder<Snapshot.TensorMetadata.Builder>
implements Snapshot.TensorMetadataOrBuilder
Metadata for a single tensor in the Snapshot Record.Protobuf type
tensorflow.data.experimental.TensorMetadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear().tensorflow.TensorShapeProto tensor_shape = 2;Number of uncompressed bytes used to store the tensor representation.static final Descriptors.Descriptor.tensorflow.TensorShapeProto tensor_shape = 2;.tensorflow.TensorShapeProto tensor_shape = 2;.tensorflow.TensorShapeProto tensor_shape = 2;longNumber of uncompressed bytes used to store the tensor representation.boolean.tensorflow.TensorShapeProto tensor_shape = 2;protected GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(Snapshot.TensorMetadata other) mergeTensorShape(TensorShapeProto value) .tensorflow.TensorShapeProto tensor_shape = 2;setTensorShape(TensorShapeProto value) .tensorflow.TensorShapeProto tensor_shape = 2;setTensorShape(TensorShapeProto.Builder builderForValue) .tensorflow.TensorShapeProto tensor_shape = 2;setTensorSizeBytes(long value) Number of uncompressed bytes used to store the tensor representation.Methods inherited from class GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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, mergeDelimitedFrom
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessage.Builder<Snapshot.TensorMetadata.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<Snapshot.TensorMetadata.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.Builder<Snapshot.TensorMetadata.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
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Snapshot.TensorMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessage.Builder<Snapshot.TensorMetadata.Builder>
-
mergeFrom
public Snapshot.TensorMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Snapshot.TensorMetadata.Builder>- Throws:
IOException
-
hasTensorShape
public boolean hasTensorShape().tensorflow.TensorShapeProto tensor_shape = 2;- Specified by:
hasTensorShapein interfaceSnapshot.TensorMetadataOrBuilder- Returns:
- Whether the tensorShape field is set.
-
getTensorShape
.tensorflow.TensorShapeProto tensor_shape = 2;- Specified by:
getTensorShapein interfaceSnapshot.TensorMetadataOrBuilder- Returns:
- The tensorShape.
-
setTensorShape
.tensorflow.TensorShapeProto tensor_shape = 2; -
setTensorShape
.tensorflow.TensorShapeProto tensor_shape = 2; -
mergeTensorShape
.tensorflow.TensorShapeProto tensor_shape = 2; -
clearTensorShape
.tensorflow.TensorShapeProto tensor_shape = 2; -
getTensorShapeBuilder
.tensorflow.TensorShapeProto tensor_shape = 2; -
getTensorShapeOrBuilder
.tensorflow.TensorShapeProto tensor_shape = 2;- Specified by:
getTensorShapeOrBuilderin interfaceSnapshot.TensorMetadataOrBuilder
-
getTensorSizeBytes
public long getTensorSizeBytes()Number of uncompressed bytes used to store the tensor representation.
int64 tensor_size_bytes = 3;- Specified by:
getTensorSizeBytesin interfaceSnapshot.TensorMetadataOrBuilder- Returns:
- The tensorSizeBytes.
-
setTensorSizeBytes
Number of uncompressed bytes used to store the tensor representation.
int64 tensor_size_bytes = 3;- Parameters:
value- The tensorSizeBytes to set.- Returns:
- This builder for chaining.
-
clearTensorSizeBytes
Number of uncompressed bytes used to store the tensor representation.
int64 tensor_size_bytes = 3;- Returns:
- This builder for chaining.
-