Class Dataset.CompressedElement.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Dataset.CompressedElement.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<Dataset.CompressedElement.Builder>
org.tensorflow.proto.data.Dataset.CompressedElement.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, Dataset.CompressedElementOrBuilder
- Enclosing class:
Dataset.CompressedElement
public static final class Dataset.CompressedElement.Builder
extends GeneratedMessageV3.Builder<Dataset.CompressedElement.Builder>
implements Dataset.CompressedElementOrBuilder
Protobuf type
tensorflow.data.CompressedElement-
Method Summary
Modifier and TypeMethodDescriptionaddAllComponentMetadata(Iterable<? extends Dataset.CompressedComponentMetadata> values) Metadata for the components of the element.addComponentMetadata(int index, Dataset.CompressedComponentMetadata value) Metadata for the components of the element.addComponentMetadata(int index, Dataset.CompressedComponentMetadata.Builder builderForValue) Metadata for the components of the element.Metadata for the components of the element.addComponentMetadata(Dataset.CompressedComponentMetadata.Builder builderForValue) Metadata for the components of the element.Metadata for the components of the element.addComponentMetadataBuilder(int index) Metadata for the components of the element.addRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()Metadata for the components of the element.Compressed tensor bytes for all components of the element.Version of the CompressedElement.clone()getComponentMetadata(int index) Metadata for the components of the element.getComponentMetadataBuilder(int index) Metadata for the components of the element.Metadata for the components of the element.intMetadata for the components of the element.Metadata for the components of the element.getComponentMetadataOrBuilder(int index) Metadata for the components of the element.List<? extends Dataset.CompressedComponentMetadataOrBuilder> Metadata for the components of the element.getData()Compressed tensor bytes for all components of the element.static final Descriptors.DescriptorintVersion of the CompressedElement.protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeUnknownFields(UnknownFieldSet unknownFields) removeComponentMetadata(int index) Metadata for the components of the element.setComponentMetadata(int index, Dataset.CompressedComponentMetadata value) Metadata for the components of the element.setComponentMetadata(int index, Dataset.CompressedComponentMetadata.Builder builderForValue) Metadata for the components of the element.setData(ByteString value) Compressed tensor bytes for all components of the element.setField(Descriptors.FieldDescriptor field, Object value) setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(UnknownFieldSet unknownFields) setVersion(int value) Version of the CompressedElement.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.CompressedElement.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<Dataset.CompressedElement.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<Dataset.CompressedElement.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.CompressedElement.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<Dataset.CompressedElement.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<Dataset.CompressedElement.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<Dataset.CompressedElement.Builder>
-
setRepeatedField
public Dataset.CompressedElement.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<Dataset.CompressedElement.Builder>
-
addRepeatedField
public Dataset.CompressedElement.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<Dataset.CompressedElement.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Dataset.CompressedElement.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<Dataset.CompressedElement.Builder>
-
mergeFrom
public Dataset.CompressedElement.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Dataset.CompressedElement.Builder>- Throws:
IOException
-
getData
Compressed tensor bytes for all components of the element.
bytes data = 1;- Specified by:
getDatain interfaceDataset.CompressedElementOrBuilder- Returns:
- The data.
-
setData
Compressed tensor bytes for all components of the element.
bytes data = 1;- Parameters:
value- The data to set.- Returns:
- This builder for chaining.
-
clearData
Compressed tensor bytes for all components of the element.
bytes data = 1;- Returns:
- This builder for chaining.
-
getComponentMetadataList
Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2;- Specified by:
getComponentMetadataListin interfaceDataset.CompressedElementOrBuilder
-
getComponentMetadataCount
public int getComponentMetadataCount()Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2;- Specified by:
getComponentMetadataCountin interfaceDataset.CompressedElementOrBuilder
-
getComponentMetadata
Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2;- Specified by:
getComponentMetadatain interfaceDataset.CompressedElementOrBuilder
-
setComponentMetadata
public Dataset.CompressedElement.Builder setComponentMetadata(int index, Dataset.CompressedComponentMetadata value) Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; -
setComponentMetadata
public Dataset.CompressedElement.Builder setComponentMetadata(int index, Dataset.CompressedComponentMetadata.Builder builderForValue) Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; -
addComponentMetadata
public Dataset.CompressedElement.Builder addComponentMetadata(Dataset.CompressedComponentMetadata value) Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; -
addComponentMetadata
public Dataset.CompressedElement.Builder addComponentMetadata(int index, Dataset.CompressedComponentMetadata value) Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; -
addComponentMetadata
public Dataset.CompressedElement.Builder addComponentMetadata(Dataset.CompressedComponentMetadata.Builder builderForValue) Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; -
addComponentMetadata
public Dataset.CompressedElement.Builder addComponentMetadata(int index, Dataset.CompressedComponentMetadata.Builder builderForValue) Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; -
addAllComponentMetadata
public Dataset.CompressedElement.Builder addAllComponentMetadata(Iterable<? extends Dataset.CompressedComponentMetadata> values) Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; -
clearComponentMetadata
Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; -
removeComponentMetadata
Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; -
getComponentMetadataBuilder
Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; -
getComponentMetadataOrBuilder
Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2;- Specified by:
getComponentMetadataOrBuilderin interfaceDataset.CompressedElementOrBuilder
-
getComponentMetadataOrBuilderList
public List<? extends Dataset.CompressedComponentMetadataOrBuilder> getComponentMetadataOrBuilderList()Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2;- Specified by:
getComponentMetadataOrBuilderListin interfaceDataset.CompressedElementOrBuilder
-
addComponentMetadataBuilder
Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; -
addComponentMetadataBuilder
Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; -
getComponentMetadataBuilderList
Metadata for the components of the element.
repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; -
getVersion
public int getVersion()Version of the CompressedElement. CompressedElements may be stored on disk and read back by later versions of code, so we store a version number to help readers understand which version they are reading. When you add a new field to this proto, you need to increment kCompressedElementVersion in tensorflow/core/data/compression_utils.cc.
int32 version = 3;- Specified by:
getVersionin interfaceDataset.CompressedElementOrBuilder- Returns:
- The version.
-
setVersion
Version of the CompressedElement. CompressedElements may be stored on disk and read back by later versions of code, so we store a version number to help readers understand which version they are reading. When you add a new field to this proto, you need to increment kCompressedElementVersion in tensorflow/core/data/compression_utils.cc.
int32 version = 3;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Version of the CompressedElement. CompressedElements may be stored on disk and read back by later versions of code, so we store a version number to help readers understand which version they are reading. When you add a new field to this proto, you need to increment kCompressedElementVersion in tensorflow/core/data/compression_utils.cc.
int32 version = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<Dataset.CompressedElement.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<Dataset.CompressedElement.Builder>
-