Class Dataset.CompressedComponentMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Dataset.CompressedComponentMetadata.Builder>
com.google.protobuf.GeneratedMessage.Builder<Dataset.CompressedComponentMetadata.Builder>
org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, Dataset.CompressedComponentMetadataOrBuilder
- Enclosing class:
Dataset.CompressedComponentMetadata
public static final class Dataset.CompressedComponentMetadata.Builder
extends GeneratedMessage.Builder<Dataset.CompressedComponentMetadata.Builder>
implements Dataset.CompressedComponentMetadataOrBuilder
Metadata describing a compressed component of a dataset element.Protobuf type
tensorflow.data.CompressedComponentMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllUncompressedBytes(Iterable<? extends Long> values) The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.addUncompressedBytes(long value) The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.build()clear()The dtype of the component tensor.The shape of the component tensor.The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.static final Descriptors.DescriptorgetDtype()The dtype of the component tensor.intThe dtype of the component tensor.The shape of the component tensor.The shape of the component tensor.The shape of the component tensor.longgetUncompressedBytes(int index) The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.intThe amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.booleanThe shape of the component tensor.protected GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeTensorShape(TensorShapeProto value) The shape of the component tensor.The dtype of the component tensor.setDtypeValue(int value) The dtype of the component tensor.setTensorShape(TensorShapeProto value) The shape of the component tensor.setTensorShape(TensorShapeProto.Builder builderForValue) The shape of the component tensor.setUncompressedBytes(int index, long value) The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.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<Dataset.CompressedComponentMetadata.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<Dataset.CompressedComponentMetadata.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.Builder<Dataset.CompressedComponentMetadata.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<Dataset.CompressedComponentMetadata.Builder>
-
mergeFrom
public Dataset.CompressedComponentMetadata.Builder mergeFrom(Dataset.CompressedComponentMetadata other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessage.Builder<Dataset.CompressedComponentMetadata.Builder>
-
mergeFrom
public Dataset.CompressedComponentMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Dataset.CompressedComponentMetadata.Builder>- Throws:
IOException
-
getDtypeValue
public int getDtypeValue()The dtype of the component tensor.
.tensorflow.DataType dtype = 1;- Specified by:
getDtypeValuein interfaceDataset.CompressedComponentMetadataOrBuilder- Returns:
- The enum numeric value on the wire for dtype.
-
setDtypeValue
The dtype of the component tensor.
.tensorflow.DataType dtype = 1;- Parameters:
value- The enum numeric value on the wire for dtype to set.- Returns:
- This builder for chaining.
-
getDtype
The dtype of the component tensor.
.tensorflow.DataType dtype = 1;- Specified by:
getDtypein interfaceDataset.CompressedComponentMetadataOrBuilder- Returns:
- The dtype.
-
setDtype
The dtype of the component tensor.
.tensorflow.DataType dtype = 1;- Parameters:
value- The dtype to set.- Returns:
- This builder for chaining.
-
clearDtype
The dtype of the component tensor.
.tensorflow.DataType dtype = 1;- Returns:
- This builder for chaining.
-
hasTensorShape
public boolean hasTensorShape()The shape of the component tensor.
.tensorflow.TensorShapeProto tensor_shape = 2;- Specified by:
hasTensorShapein interfaceDataset.CompressedComponentMetadataOrBuilder- Returns:
- Whether the tensorShape field is set.
-
getTensorShape
The shape of the component tensor.
.tensorflow.TensorShapeProto tensor_shape = 2;- Specified by:
getTensorShapein interfaceDataset.CompressedComponentMetadataOrBuilder- Returns:
- The tensorShape.
-
setTensorShape
The shape of the component tensor.
.tensorflow.TensorShapeProto tensor_shape = 2; -
setTensorShape
public Dataset.CompressedComponentMetadata.Builder setTensorShape(TensorShapeProto.Builder builderForValue) The shape of the component tensor.
.tensorflow.TensorShapeProto tensor_shape = 2; -
mergeTensorShape
The shape of the component tensor.
.tensorflow.TensorShapeProto tensor_shape = 2; -
clearTensorShape
The shape of the component tensor.
.tensorflow.TensorShapeProto tensor_shape = 2; -
getTensorShapeBuilder
The shape of the component tensor.
.tensorflow.TensorShapeProto tensor_shape = 2; -
getTensorShapeOrBuilder
The shape of the component tensor.
.tensorflow.TensorShapeProto tensor_shape = 2;- Specified by:
getTensorShapeOrBuilderin interfaceDataset.CompressedComponentMetadataOrBuilder
-
getUncompressedBytesList
The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.
repeated uint64 uncompressed_bytes = 4;- Specified by:
getUncompressedBytesListin interfaceDataset.CompressedComponentMetadataOrBuilder- Returns:
- A list containing the uncompressedBytes.
-
getUncompressedBytesCount
public int getUncompressedBytesCount()The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.
repeated uint64 uncompressed_bytes = 4;- Specified by:
getUncompressedBytesCountin interfaceDataset.CompressedComponentMetadataOrBuilder- Returns:
- The count of uncompressedBytes.
-
getUncompressedBytes
public long getUncompressedBytes(int index) The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.
repeated uint64 uncompressed_bytes = 4;- Specified by:
getUncompressedBytesin interfaceDataset.CompressedComponentMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The uncompressedBytes at the given index.
-
setUncompressedBytes
The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.
repeated uint64 uncompressed_bytes = 4;- Parameters:
index- The index to set the value at.value- The uncompressedBytes to set.- Returns:
- This builder for chaining.
-
addUncompressedBytes
The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.
repeated uint64 uncompressed_bytes = 4;- Parameters:
value- The uncompressedBytes to add.- Returns:
- This builder for chaining.
-
addAllUncompressedBytes
public Dataset.CompressedComponentMetadata.Builder addAllUncompressedBytes(Iterable<? extends Long> values) The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.
repeated uint64 uncompressed_bytes = 4;- Parameters:
values- The uncompressedBytes to add.- Returns:
- This builder for chaining.
-
clearUncompressedBytes
The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.
repeated uint64 uncompressed_bytes = 4;- Returns:
- This builder for chaining.
-