Class Snapshot.DistributedSnapshotMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
com.google.protobuf.GeneratedMessageV3.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 GeneratedMessageV3.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 TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()Whether and how to compress the snapshot.The element spec of the snapshotted dataset.clone()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 GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeUnknownFields(UnknownFieldSet unknownFields) 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.setField(Descriptors.FieldDescriptor field, Object value) setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 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<Snapshot.DistributedSnapshotMetadata.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.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
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
-
setField
public Snapshot.DistributedSnapshotMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
-
setRepeatedField
public Snapshot.DistributedSnapshotMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
-
addRepeatedField
public Snapshot.DistributedSnapshotMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<Snapshot.DistributedSnapshotMetadata.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 classGeneratedMessageV3.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.
-
setUnknownFields
public final Snapshot.DistributedSnapshotMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
-
mergeUnknownFields
public final Snapshot.DistributedSnapshotMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<Snapshot.DistributedSnapshotMetadata.Builder>
-