org.apache.hadoop.hdfs.qjournal.protocol
Class QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
              extended by org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, QJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder
Enclosing class:
QJournalProtocolProtos.PrepareRecoveryResponseProto

public static final class QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder
extends com.google.protobuf.GeneratedMessage.Builder<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
implements QJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder

Protobuf type hadoop.hdfs.PrepareRecoveryResponseProto


Method Summary
 QJournalProtocolProtos.PrepareRecoveryResponseProto build()
           
 QJournalProtocolProtos.PrepareRecoveryResponseProto buildPartial()
           
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder clear()
           
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder clearAcceptedInEpoch()
          optional uint64 acceptedInEpoch = 2;
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder clearLastCommittedTxId()
          optional uint64 lastCommittedTxId = 4;
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder clearLastWriterEpoch()
          required uint64 lastWriterEpoch = 3;
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder clearSegmentState()
          optional .hadoop.hdfs.SegmentStateProto segmentState = 1;
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder clone()
           
 long getAcceptedInEpoch()
          optional uint64 acceptedInEpoch = 2;
 QJournalProtocolProtos.PrepareRecoveryResponseProto getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 long getLastCommittedTxId()
          optional uint64 lastCommittedTxId = 4;
 long getLastWriterEpoch()
          required uint64 lastWriterEpoch = 3;
 QJournalProtocolProtos.SegmentStateProto getSegmentState()
          optional .hadoop.hdfs.SegmentStateProto segmentState = 1;
 QJournalProtocolProtos.SegmentStateProto.Builder getSegmentStateBuilder()
          optional .hadoop.hdfs.SegmentStateProto segmentState = 1;
 QJournalProtocolProtos.SegmentStateProtoOrBuilder getSegmentStateOrBuilder()
          optional .hadoop.hdfs.SegmentStateProto segmentState = 1;
 boolean hasAcceptedInEpoch()
          optional uint64 acceptedInEpoch = 2;
 boolean hasLastCommittedTxId()
          optional uint64 lastCommittedTxId = 4;
 boolean hasLastWriterEpoch()
          required uint64 lastWriterEpoch = 3;
 boolean hasSegmentState()
          optional .hadoop.hdfs.SegmentStateProto segmentState = 1;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder mergeFrom(com.google.protobuf.Message other)
           
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder mergeFrom(QJournalProtocolProtos.PrepareRecoveryResponseProto other)
           
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder mergeSegmentState(QJournalProtocolProtos.SegmentStateProto value)
          optional .hadoop.hdfs.SegmentStateProto segmentState = 1;
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder setAcceptedInEpoch(long value)
          optional uint64 acceptedInEpoch = 2;
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder setLastCommittedTxId(long value)
          optional uint64 lastCommittedTxId = 4;
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder setLastWriterEpoch(long value)
          required uint64 lastWriterEpoch = 3;
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder setSegmentState(QJournalProtocolProtos.SegmentStateProto.Builder builderForValue)
          optional .hadoop.hdfs.SegmentStateProto segmentState = 1;
 QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder setSegmentState(QJournalProtocolProtos.SegmentStateProto value)
          optional .hadoop.hdfs.SegmentStateProto segmentState = 1;
 
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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>

clear

public QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>

clone

public QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>

getDefaultInstanceForType

public QJournalProtocolProtos.PrepareRecoveryResponseProto getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

build

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

buildPartial

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

mergeFrom

public QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>

mergeFrom

public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder mergeFrom(QJournalProtocolProtos.PrepareRecoveryResponseProto other)

isInitialized

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

mergeFrom

public QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
Throws:
IOException

hasSegmentState

public boolean hasSegmentState()
optional .hadoop.hdfs.SegmentStateProto segmentState = 1;

Specified by:
hasSegmentState in interface QJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder

getSegmentState

public QJournalProtocolProtos.SegmentStateProto getSegmentState()
optional .hadoop.hdfs.SegmentStateProto segmentState = 1;

Specified by:
getSegmentState in interface QJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder

setSegmentState

public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder setSegmentState(QJournalProtocolProtos.SegmentStateProto value)
optional .hadoop.hdfs.SegmentStateProto segmentState = 1;


setSegmentState

public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder setSegmentState(QJournalProtocolProtos.SegmentStateProto.Builder builderForValue)
optional .hadoop.hdfs.SegmentStateProto segmentState = 1;


mergeSegmentState

public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder mergeSegmentState(QJournalProtocolProtos.SegmentStateProto value)
optional .hadoop.hdfs.SegmentStateProto segmentState = 1;


clearSegmentState

public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder clearSegmentState()
optional .hadoop.hdfs.SegmentStateProto segmentState = 1;


getSegmentStateBuilder

public QJournalProtocolProtos.SegmentStateProto.Builder getSegmentStateBuilder()
optional .hadoop.hdfs.SegmentStateProto segmentState = 1;


getSegmentStateOrBuilder

public QJournalProtocolProtos.SegmentStateProtoOrBuilder getSegmentStateOrBuilder()
optional .hadoop.hdfs.SegmentStateProto segmentState = 1;

Specified by:
getSegmentStateOrBuilder in interface QJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder

hasAcceptedInEpoch

public boolean hasAcceptedInEpoch()
optional uint64 acceptedInEpoch = 2;

Specified by:
hasAcceptedInEpoch in interface QJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder

getAcceptedInEpoch

public long getAcceptedInEpoch()
optional uint64 acceptedInEpoch = 2;

Specified by:
getAcceptedInEpoch in interface QJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder

setAcceptedInEpoch

public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder setAcceptedInEpoch(long value)
optional uint64 acceptedInEpoch = 2;


clearAcceptedInEpoch

public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder clearAcceptedInEpoch()
optional uint64 acceptedInEpoch = 2;


hasLastWriterEpoch

public boolean hasLastWriterEpoch()
required uint64 lastWriterEpoch = 3;

Specified by:
hasLastWriterEpoch in interface QJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder

getLastWriterEpoch

public long getLastWriterEpoch()
required uint64 lastWriterEpoch = 3;

Specified by:
getLastWriterEpoch in interface QJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder

setLastWriterEpoch

public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder setLastWriterEpoch(long value)
required uint64 lastWriterEpoch = 3;


clearLastWriterEpoch

public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder clearLastWriterEpoch()
required uint64 lastWriterEpoch = 3;


hasLastCommittedTxId

public boolean hasLastCommittedTxId()
optional uint64 lastCommittedTxId = 4;
 The highest committed txid that this logger has ever seen.
 This may be higher than the data it actually has, in the case
 that it was lagging before the old writer crashed.
 

Specified by:
hasLastCommittedTxId in interface QJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder

getLastCommittedTxId

public long getLastCommittedTxId()
optional uint64 lastCommittedTxId = 4;
 The highest committed txid that this logger has ever seen.
 This may be higher than the data it actually has, in the case
 that it was lagging before the old writer crashed.
 

Specified by:
getLastCommittedTxId in interface QJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder

setLastCommittedTxId

public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder setLastCommittedTxId(long value)
optional uint64 lastCommittedTxId = 4;
 The highest committed txid that this logger has ever seen.
 This may be higher than the data it actually has, in the case
 that it was lagging before the old writer crashed.
 


clearLastCommittedTxId

public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder clearLastCommittedTxId()
optional uint64 lastCommittedTxId = 4;
 The highest committed txid that this logger has ever seen.
 This may be higher than the data it actually has, in the case
 that it was lagging before the old writer crashed.
 



Copyright © 2014 Apache Software Foundation. All Rights Reserved.