public static final class FsImageProto.SnapshotSection.Builder extends com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder> implements FsImageProto.SnapshotSectionOrBuilder
hadoop.hdfs.fsimage.SnapshotSection
This section records the information about snapshot NAME: SNAPSHOT
Modifier and Type | Method and Description |
---|---|
FsImageProto.SnapshotSection.Builder |
addAllSnapshottableDir(Iterable<? extends Long> values)
repeated uint64 snapshottableDir = 2 [packed = true]; |
FsImageProto.SnapshotSection.Builder |
addSnapshottableDir(long value)
repeated uint64 snapshottableDir = 2 [packed = true]; |
FsImageProto.SnapshotSection |
build() |
FsImageProto.SnapshotSection |
buildPartial() |
FsImageProto.SnapshotSection.Builder |
clear() |
FsImageProto.SnapshotSection.Builder |
clearNumSnapshots()
optional uint32 numSnapshots = 3; |
FsImageProto.SnapshotSection.Builder |
clearSnapshotCounter()
optional uint32 snapshotCounter = 1; |
FsImageProto.SnapshotSection.Builder |
clearSnapshottableDir()
repeated uint64 snapshottableDir = 2 [packed = true]; |
FsImageProto.SnapshotSection.Builder |
clone() |
FsImageProto.SnapshotSection |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getNumSnapshots()
optional uint32 numSnapshots = 3; |
int |
getSnapshotCounter()
optional uint32 snapshotCounter = 1; |
long |
getSnapshottableDir(int index)
repeated uint64 snapshottableDir = 2 [packed = true]; |
int |
getSnapshottableDirCount()
repeated uint64 snapshottableDir = 2 [packed = true]; |
List<Long> |
getSnapshottableDirList()
repeated uint64 snapshottableDir = 2 [packed = true]; |
boolean |
hasNumSnapshots()
optional uint32 numSnapshots = 3; |
boolean |
hasSnapshotCounter()
optional uint32 snapshotCounter = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
FsImageProto.SnapshotSection.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FsImageProto.SnapshotSection.Builder |
mergeFrom(FsImageProto.SnapshotSection other) |
FsImageProto.SnapshotSection.Builder |
mergeFrom(com.google.protobuf.Message other) |
FsImageProto.SnapshotSection.Builder |
setNumSnapshots(int value)
optional uint32 numSnapshots = 3; |
FsImageProto.SnapshotSection.Builder |
setSnapshotCounter(int value)
optional uint32 snapshotCounter = 1; |
FsImageProto.SnapshotSection.Builder |
setSnapshottableDir(int index,
long value)
repeated uint64 snapshottableDir = 2 [packed = true]; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>
public FsImageProto.SnapshotSection.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>
public FsImageProto.SnapshotSection.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>
public FsImageProto.SnapshotSection getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public FsImageProto.SnapshotSection build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public FsImageProto.SnapshotSection buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public FsImageProto.SnapshotSection.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<FsImageProto.SnapshotSection.Builder>
public FsImageProto.SnapshotSection.Builder mergeFrom(FsImageProto.SnapshotSection other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>
public FsImageProto.SnapshotSection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<FsImageProto.SnapshotSection.Builder>
IOException
public boolean hasSnapshotCounter()
optional uint32 snapshotCounter = 1;
hasSnapshotCounter
in interface FsImageProto.SnapshotSectionOrBuilder
public int getSnapshotCounter()
optional uint32 snapshotCounter = 1;
getSnapshotCounter
in interface FsImageProto.SnapshotSectionOrBuilder
public FsImageProto.SnapshotSection.Builder setSnapshotCounter(int value)
optional uint32 snapshotCounter = 1;
public FsImageProto.SnapshotSection.Builder clearSnapshotCounter()
optional uint32 snapshotCounter = 1;
public List<Long> getSnapshottableDirList()
repeated uint64 snapshottableDir = 2 [packed = true];
getSnapshottableDirList
in interface FsImageProto.SnapshotSectionOrBuilder
public int getSnapshottableDirCount()
repeated uint64 snapshottableDir = 2 [packed = true];
getSnapshottableDirCount
in interface FsImageProto.SnapshotSectionOrBuilder
public long getSnapshottableDir(int index)
repeated uint64 snapshottableDir = 2 [packed = true];
getSnapshottableDir
in interface FsImageProto.SnapshotSectionOrBuilder
public FsImageProto.SnapshotSection.Builder setSnapshottableDir(int index, long value)
repeated uint64 snapshottableDir = 2 [packed = true];
public FsImageProto.SnapshotSection.Builder addSnapshottableDir(long value)
repeated uint64 snapshottableDir = 2 [packed = true];
public FsImageProto.SnapshotSection.Builder addAllSnapshottableDir(Iterable<? extends Long> values)
repeated uint64 snapshottableDir = 2 [packed = true];
public FsImageProto.SnapshotSection.Builder clearSnapshottableDir()
repeated uint64 snapshottableDir = 2 [packed = true];
public boolean hasNumSnapshots()
optional uint32 numSnapshots = 3;
total number of snapshots
hasNumSnapshots
in interface FsImageProto.SnapshotSectionOrBuilder
public int getNumSnapshots()
optional uint32 numSnapshots = 3;
total number of snapshots
getNumSnapshots
in interface FsImageProto.SnapshotSectionOrBuilder
public FsImageProto.SnapshotSection.Builder setNumSnapshots(int value)
optional uint32 numSnapshots = 3;
total number of snapshots
public FsImageProto.SnapshotSection.Builder clearNumSnapshots()
optional uint32 numSnapshots = 3;
total number of snapshots
Copyright © 2017 Apache Software Foundation. All Rights Reserved.