Class Snapshot.DistributedSnapshotMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
com.google.protobuf.GeneratedMessage.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, Snapshot.DistributedSnapshotMetadataOrBuilder
- Enclosing class:
Snapshot.DistributedSnapshotMetadata
public static final class Snapshot.DistributedSnapshotMetadata.Builder
extends GeneratedMessage.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
implements Snapshot.DistributedSnapshotMetadataOrBuilder
Metadata for a `tf.data.Dataset` distributed snapshot.Protobuf type
tensorflow.data.experimental.DistributedSnapshotMetadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Whether and how to compress the snapshot.The element spec of the snapshotted dataset.Whether and how to compress the snapshot.Whether and how to compress the snapshot.static final Descriptors.DescriptorThe element spec of the snapshotted dataset.protected GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) setCompression(String value) Whether and how to compress the snapshot.setCompressionBytes(ByteString value) Whether and how to compress the snapshot.setElementSpec(ByteString value) The element spec of the snapshotted dataset.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.DistributedSnapshotMetadata.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.Builder<Snapshot.DistributedSnapshotMetadata.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.DistributedSnapshotMetadata.Builder>
-
mergeFrom
public Snapshot.DistributedSnapshotMetadata.Builder mergeFrom(Snapshot.DistributedSnapshotMetadata other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessage.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
-
mergeFrom
public Snapshot.DistributedSnapshotMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Snapshot.DistributedSnapshotMetadata.Builder>- Throws:
IOException
-
getElementSpec
The element spec of the snapshotted dataset.
bytes element_spec = 1;- Specified by:
getElementSpecin interfaceSnapshot.DistributedSnapshotMetadataOrBuilder- Returns:
- The elementSpec.
-
setElementSpec
The element spec of the snapshotted dataset.
bytes element_spec = 1;- Parameters:
value- The elementSpec to set.- Returns:
- This builder for chaining.
-
clearElementSpec
The element spec of the snapshotted dataset.
bytes element_spec = 1;- Returns:
- This builder for chaining.
-
getCompression
Whether and how to compress the snapshot. Supported values are defined in `tsl::io::compression`. In particular, an empty string specifies not to compress.
string compression = 2;- Specified by:
getCompressionin interfaceSnapshot.DistributedSnapshotMetadataOrBuilder- Returns:
- The compression.
-
getCompressionBytes
Whether and how to compress the snapshot. Supported values are defined in `tsl::io::compression`. In particular, an empty string specifies not to compress.
string compression = 2;- Specified by:
getCompressionBytesin interfaceSnapshot.DistributedSnapshotMetadataOrBuilder- Returns:
- The bytes for compression.
-
setCompression
Whether and how to compress the snapshot. Supported values are defined in `tsl::io::compression`. In particular, an empty string specifies not to compress.
string compression = 2;- Parameters:
value- The compression to set.- Returns:
- This builder for chaining.
-
clearCompression
Whether and how to compress the snapshot. Supported values are defined in `tsl::io::compression`. In particular, an empty string specifies not to compress.
string compression = 2;- Returns:
- This builder for chaining.
-
setCompressionBytes
Whether and how to compress the snapshot. Supported values are defined in `tsl::io::compression`. In particular, an empty string specifies not to compress.
string compression = 2;- Parameters:
value- The bytes for compression to set.- Returns:
- This builder for chaining.
-