Class FsImageProto.NameSystemSection.Builder
java.lang.Object
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder
org.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<BuilderT>
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
org.apache.hadoop.hdfs.server.namenode.FsImageProto.NameSystemSection.Builder
- All Implemented Interfaces:
Cloneable,FsImageProto.NameSystemSectionOrBuilder,org.apache.hadoop.thirdparty.protobuf.Message.Builder,org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder,org.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder,org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
- Enclosing class:
- FsImageProto.NameSystemSection
public static final class FsImageProto.NameSystemSection.Builder
extends org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
implements FsImageProto.NameSystemSectionOrBuilder
Name: NS_INFOProtobuf type
hadoop.hdfs.fsimage.NameSystemSection-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) legacy generation stampoptional uint64 genstampV1Limit = 4;generation stamp of latest versionoptional uint64 lastAllocatedBlockId = 5;optional uint64 lastAllocatedStripedBlockId = 8;optional uint32 namespaceId = 1;clearOneof(org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) optional uint64 rollingUpgradeStartTime = 7;optional uint64 transactionId = 6;clone()static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptororg.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptorlonglegacy generation stamplongoptional uint64 genstampV1Limit = 4;longgeneration stamp of latest versionlongoptional uint64 lastAllocatedBlockId = 5;longoptional uint64 lastAllocatedStripedBlockId = 8;intoptional uint32 namespaceId = 1;longoptional uint64 rollingUpgradeStartTime = 7;longoptional uint64 transactionId = 6;booleanlegacy generation stampbooleanoptional uint64 genstampV1Limit = 4;booleangeneration stamp of latest versionbooleanoptional uint64 lastAllocatedBlockId = 5;booleanoptional uint64 lastAllocatedStripedBlockId = 8;booleanoptional uint32 namespaceId = 1;booleanoptional uint64 rollingUpgradeStartTime = 7;booleanoptional uint64 transactionId = 6;protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) mergeUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) setGenstampV1(long value) legacy generation stampsetGenstampV1Limit(long value) optional uint64 genstampV1Limit = 4;setGenstampV2(long value) generation stamp of latest versionsetLastAllocatedBlockId(long value) optional uint64 lastAllocatedBlockId = 5;setLastAllocatedStripedBlockId(long value) optional uint64 lastAllocatedStripedBlockId = 8;setNamespaceId(int value) optional uint32 namespaceId = 1;setRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRollingUpgradeStartTime(long value) optional uint64 rollingUpgradeStartTime = 7;setTransactionId(long value) optional uint64 transactionId = 6;setUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) Methods inherited from class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class org.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
-
clear
- Specified by:
clearin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
clearin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder- Overrides:
clearin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
-
getDescriptorForType
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.apache.hadoop.thirdparty.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
buildin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
clonein interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder- Overrides:
clonein classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
-
setField
public FsImageProto.NameSystemSection.Builder setField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
setFieldin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
-
clearField
public FsImageProto.NameSystemSection.Builder clearField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
clearFieldin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
-
clearOneof
public FsImageProto.NameSystemSection.Builder clearOneof(org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
clearOneofin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
-
setRepeatedField
public FsImageProto.NameSystemSection.Builder setRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
-
addRepeatedField
public FsImageProto.NameSystemSection.Builder addRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
-
mergeFrom
public FsImageProto.NameSystemSection.Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) - Specified by:
mergeFromin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
mergeFromin classorg.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<FsImageProto.NameSystemSection.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
-
mergeFrom
public FsImageProto.NameSystemSection.Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<FsImageProto.NameSystemSection.Builder>- Throws:
IOException
-
hasNamespaceId
public boolean hasNamespaceId()optional uint32 namespaceId = 1;- Specified by:
hasNamespaceIdin interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- Whether the namespaceId field is set.
-
getNamespaceId
public int getNamespaceId()optional uint32 namespaceId = 1;- Specified by:
getNamespaceIdin interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- The namespaceId.
-
setNamespaceId
optional uint32 namespaceId = 1;- Parameters:
value- The namespaceId to set.- Returns:
- This builder for chaining.
-
clearNamespaceId
optional uint32 namespaceId = 1;- Returns:
- This builder for chaining.
-
hasGenstampV1
public boolean hasGenstampV1()legacy generation stamp
optional uint64 genstampV1 = 2;- Specified by:
hasGenstampV1in interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- Whether the genstampV1 field is set.
-
getGenstampV1
public long getGenstampV1()legacy generation stamp
optional uint64 genstampV1 = 2;- Specified by:
getGenstampV1in interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- The genstampV1.
-
setGenstampV1
legacy generation stamp
optional uint64 genstampV1 = 2;- Parameters:
value- The genstampV1 to set.- Returns:
- This builder for chaining.
-
clearGenstampV1
legacy generation stamp
optional uint64 genstampV1 = 2;- Returns:
- This builder for chaining.
-
hasGenstampV2
public boolean hasGenstampV2()generation stamp of latest version
optional uint64 genstampV2 = 3;- Specified by:
hasGenstampV2in interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- Whether the genstampV2 field is set.
-
getGenstampV2
public long getGenstampV2()generation stamp of latest version
optional uint64 genstampV2 = 3;- Specified by:
getGenstampV2in interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- The genstampV2.
-
setGenstampV2
generation stamp of latest version
optional uint64 genstampV2 = 3;- Parameters:
value- The genstampV2 to set.- Returns:
- This builder for chaining.
-
clearGenstampV2
generation stamp of latest version
optional uint64 genstampV2 = 3;- Returns:
- This builder for chaining.
-
hasGenstampV1Limit
public boolean hasGenstampV1Limit()optional uint64 genstampV1Limit = 4;- Specified by:
hasGenstampV1Limitin interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- Whether the genstampV1Limit field is set.
-
getGenstampV1Limit
public long getGenstampV1Limit()optional uint64 genstampV1Limit = 4;- Specified by:
getGenstampV1Limitin interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- The genstampV1Limit.
-
setGenstampV1Limit
optional uint64 genstampV1Limit = 4;- Parameters:
value- The genstampV1Limit to set.- Returns:
- This builder for chaining.
-
clearGenstampV1Limit
optional uint64 genstampV1Limit = 4;- Returns:
- This builder for chaining.
-
hasLastAllocatedBlockId
public boolean hasLastAllocatedBlockId()optional uint64 lastAllocatedBlockId = 5;- Specified by:
hasLastAllocatedBlockIdin interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- Whether the lastAllocatedBlockId field is set.
-
getLastAllocatedBlockId
public long getLastAllocatedBlockId()optional uint64 lastAllocatedBlockId = 5;- Specified by:
getLastAllocatedBlockIdin interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- The lastAllocatedBlockId.
-
setLastAllocatedBlockId
optional uint64 lastAllocatedBlockId = 5;- Parameters:
value- The lastAllocatedBlockId to set.- Returns:
- This builder for chaining.
-
clearLastAllocatedBlockId
optional uint64 lastAllocatedBlockId = 5;- Returns:
- This builder for chaining.
-
hasTransactionId
public boolean hasTransactionId()optional uint64 transactionId = 6;- Specified by:
hasTransactionIdin interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- Whether the transactionId field is set.
-
getTransactionId
public long getTransactionId()optional uint64 transactionId = 6;- Specified by:
getTransactionIdin interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- The transactionId.
-
setTransactionId
optional uint64 transactionId = 6;- Parameters:
value- The transactionId to set.- Returns:
- This builder for chaining.
-
clearTransactionId
optional uint64 transactionId = 6;- Returns:
- This builder for chaining.
-
hasRollingUpgradeStartTime
public boolean hasRollingUpgradeStartTime()optional uint64 rollingUpgradeStartTime = 7;- Specified by:
hasRollingUpgradeStartTimein interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- Whether the rollingUpgradeStartTime field is set.
-
getRollingUpgradeStartTime
public long getRollingUpgradeStartTime()optional uint64 rollingUpgradeStartTime = 7;- Specified by:
getRollingUpgradeStartTimein interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- The rollingUpgradeStartTime.
-
setRollingUpgradeStartTime
optional uint64 rollingUpgradeStartTime = 7;- Parameters:
value- The rollingUpgradeStartTime to set.- Returns:
- This builder for chaining.
-
clearRollingUpgradeStartTime
optional uint64 rollingUpgradeStartTime = 7;- Returns:
- This builder for chaining.
-
hasLastAllocatedStripedBlockId
public boolean hasLastAllocatedStripedBlockId()optional uint64 lastAllocatedStripedBlockId = 8;- Specified by:
hasLastAllocatedStripedBlockIdin interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- Whether the lastAllocatedStripedBlockId field is set.
-
getLastAllocatedStripedBlockId
public long getLastAllocatedStripedBlockId()optional uint64 lastAllocatedStripedBlockId = 8;- Specified by:
getLastAllocatedStripedBlockIdin interfaceFsImageProto.NameSystemSectionOrBuilder- Returns:
- The lastAllocatedStripedBlockId.
-
setLastAllocatedStripedBlockId
optional uint64 lastAllocatedStripedBlockId = 8;- Parameters:
value- The lastAllocatedStripedBlockId to set.- Returns:
- This builder for chaining.
-
clearLastAllocatedStripedBlockId
optional uint64 lastAllocatedStripedBlockId = 8;- Returns:
- This builder for chaining.
-
setUnknownFields
public final FsImageProto.NameSystemSection.Builder setUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
-
mergeUnknownFields
public final FsImageProto.NameSystemSection.Builder mergeUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.NameSystemSection.Builder>
-