org.apache.hadoop.hdfs.server.namenode
Class FsImageProto.SnapshotSection.Builder

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite.Builder<BuilderType>
      extended by com.google.protobuf.AbstractMessage.Builder<BuilderType>
          extended by com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>
              extended by org.apache.hadoop.hdfs.server.namenode.FsImageProto.SnapshotSection.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, FsImageProto.SnapshotSectionOrBuilder
Enclosing class:
FsImageProto.SnapshotSection

public static final class FsImageProto.SnapshotSection.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>
implements FsImageProto.SnapshotSectionOrBuilder

Protobuf type hadoop.hdfs.fsimage.SnapshotSection


 This section records the information about snapshot
 NAME: SNAPSHOT
 


Method Summary
 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];
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, newUninitializedMessageException
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField
 

Method Detail

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Specified by:
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>

clear

public FsImageProto.SnapshotSection.Builder clear()
Specified by:
clear in interface com.google.protobuf.Message.Builder
Specified by:
clear in interface com.google.protobuf.MessageLite.Builder
Overrides:
clear in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>

clone

public FsImageProto.SnapshotSection.Builder clone()
Specified by:
clone in interface com.google.protobuf.Message.Builder
Specified by:
clone in interface com.google.protobuf.MessageLite.Builder
Overrides:
clone in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.Message.Builder
Specified by:
getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
Overrides:
getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>

getDefaultInstanceForType

public FsImageProto.SnapshotSection getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

build

public FsImageProto.SnapshotSection build()
Specified by:
build in interface com.google.protobuf.Message.Builder
Specified by:
build in interface com.google.protobuf.MessageLite.Builder

buildPartial

public FsImageProto.SnapshotSection buildPartial()
Specified by:
buildPartial in interface com.google.protobuf.Message.Builder
Specified by:
buildPartial in interface com.google.protobuf.MessageLite.Builder

mergeFrom

public FsImageProto.SnapshotSection.Builder mergeFrom(com.google.protobuf.Message other)
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FsImageProto.SnapshotSection.Builder>

mergeFrom

public FsImageProto.SnapshotSection.Builder mergeFrom(FsImageProto.SnapshotSection other)

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>

mergeFrom

public FsImageProto.SnapshotSection.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws IOException
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Specified by:
mergeFrom in interface com.google.protobuf.MessageLite.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FsImageProto.SnapshotSection.Builder>
Throws:
IOException

hasSnapshotCounter

public boolean hasSnapshotCounter()
optional uint32 snapshotCounter = 1;

Specified by:
hasSnapshotCounter in interface FsImageProto.SnapshotSectionOrBuilder

getSnapshotCounter

public int getSnapshotCounter()
optional uint32 snapshotCounter = 1;

Specified by:
getSnapshotCounter in interface FsImageProto.SnapshotSectionOrBuilder

setSnapshotCounter

public FsImageProto.SnapshotSection.Builder setSnapshotCounter(int value)
optional uint32 snapshotCounter = 1;


clearSnapshotCounter

public FsImageProto.SnapshotSection.Builder clearSnapshotCounter()
optional uint32 snapshotCounter = 1;


getSnapshottableDirList

public List<Long> getSnapshottableDirList()
repeated uint64 snapshottableDir = 2 [packed = true];

Specified by:
getSnapshottableDirList in interface FsImageProto.SnapshotSectionOrBuilder

getSnapshottableDirCount

public int getSnapshottableDirCount()
repeated uint64 snapshottableDir = 2 [packed = true];

Specified by:
getSnapshottableDirCount in interface FsImageProto.SnapshotSectionOrBuilder

getSnapshottableDir

public long getSnapshottableDir(int index)
repeated uint64 snapshottableDir = 2 [packed = true];

Specified by:
getSnapshottableDir in interface FsImageProto.SnapshotSectionOrBuilder

setSnapshottableDir

public FsImageProto.SnapshotSection.Builder setSnapshottableDir(int index,
                                                                long value)
repeated uint64 snapshottableDir = 2 [packed = true];


addSnapshottableDir

public FsImageProto.SnapshotSection.Builder addSnapshottableDir(long value)
repeated uint64 snapshottableDir = 2 [packed = true];


addAllSnapshottableDir

public FsImageProto.SnapshotSection.Builder addAllSnapshottableDir(Iterable<? extends Long> values)
repeated uint64 snapshottableDir = 2 [packed = true];


clearSnapshottableDir

public FsImageProto.SnapshotSection.Builder clearSnapshottableDir()
repeated uint64 snapshottableDir = 2 [packed = true];


hasNumSnapshots

public boolean hasNumSnapshots()
optional uint32 numSnapshots = 3;
 total number of snapshots
 

Specified by:
hasNumSnapshots in interface FsImageProto.SnapshotSectionOrBuilder

getNumSnapshots

public int getNumSnapshots()
optional uint32 numSnapshots = 3;
 total number of snapshots
 

Specified by:
getNumSnapshots in interface FsImageProto.SnapshotSectionOrBuilder

setNumSnapshots

public FsImageProto.SnapshotSection.Builder setNumSnapshots(int value)
optional uint32 numSnapshots = 3;
 total number of snapshots
 


clearNumSnapshots

public FsImageProto.SnapshotSection.Builder clearNumSnapshots()
optional uint32 numSnapshots = 3;
 total number of snapshots
 



Copyright © 2014 Apache Software Foundation. All Rights Reserved.