Class Dataset.CompressedComponentMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Dataset.CompressedComponentMetadata.Builder>
com.google.protobuf.GeneratedMessageV3.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 GeneratedMessageV3.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.addRepeatedField(Descriptors.FieldDescriptor field, Object value) 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.clone()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 GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeTensorShape(TensorShapeProto value) The shape of the component tensor.mergeUnknownFields(UnknownFieldSet unknownFields) The dtype of the component tensor.setDtypeValue(int value) The dtype of the component tensor.setField(Descriptors.FieldDescriptor field, Object value) setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 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.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<Dataset.CompressedComponentMetadata.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<Dataset.CompressedComponentMetadata.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.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
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<Dataset.CompressedComponentMetadata.Builder>
-
setField
public Dataset.CompressedComponentMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<Dataset.CompressedComponentMetadata.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<Dataset.CompressedComponentMetadata.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<Dataset.CompressedComponentMetadata.Builder>
-
setRepeatedField
public Dataset.CompressedComponentMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<Dataset.CompressedComponentMetadata.Builder>
-
addRepeatedField
public Dataset.CompressedComponentMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<Dataset.CompressedComponentMetadata.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 classGeneratedMessageV3.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.
-
setUnknownFields
public final Dataset.CompressedComponentMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<Dataset.CompressedComponentMetadata.Builder>
-
mergeUnknownFields
public final Dataset.CompressedComponentMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<Dataset.CompressedComponentMetadata.Builder>
-