Class QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder
- All Implemented Interfaces:
Cloneable,QJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder,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:
- QJournalProtocolProtos.PrepareRecoveryResponseProto
public static final class QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder
extends org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
implements QJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder
Protobuf type
hadoop.hdfs.qjournal.PrepareRecoveryResponseProto-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()optional uint64 acceptedInEpoch = 2;clearField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) The highest committed txid that this logger has ever seen.required uint64 lastWriterEpoch = 3;clearOneof(org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1;clone()longoptional uint64 acceptedInEpoch = 2;static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptororg.apache.hadoop.thirdparty.protobuf.Descriptors.DescriptorlongThe highest committed txid that this logger has ever seen.longrequired uint64 lastWriterEpoch = 3;optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1;optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1;optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1;booleanoptional uint64 acceptedInEpoch = 2;booleanThe highest committed txid that this logger has ever seen.booleanrequired uint64 lastWriterEpoch = 3;booleanoptional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1;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) optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1;mergeUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) setAcceptedInEpoch(long value) optional uint64 acceptedInEpoch = 2;setLastCommittedTxId(long value) The highest committed txid that this logger has ever seen.setLastWriterEpoch(long value) required uint64 lastWriterEpoch = 3;setRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, int index, Object value) optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1;setSegmentState(QJournalProtocolProtos.SegmentStateProto.Builder builderForValue) optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1;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<QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
-
setField
public QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
-
clearField
public QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
-
clearOneof
public QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
-
setRepeatedField
public QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
-
addRepeatedField
public QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
-
mergeFrom
public QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
-
mergeFrom
public QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>- Throws:
IOException
-
hasSegmentState
public boolean hasSegmentState()optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1;- Specified by:
hasSegmentStatein interfaceQJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder- Returns:
- Whether the segmentState field is set.
-
getSegmentState
optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1;- Specified by:
getSegmentStatein interfaceQJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder- Returns:
- The segmentState.
-
setSegmentState
public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder setSegmentState(QJournalProtocolProtos.SegmentStateProto value) optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1; -
setSegmentState
public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder setSegmentState(QJournalProtocolProtos.SegmentStateProto.Builder builderForValue) optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1; -
mergeSegmentState
public QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder mergeSegmentState(QJournalProtocolProtos.SegmentStateProto value) optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1; -
clearSegmentState
optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1; -
getSegmentStateBuilder
optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1; -
getSegmentStateOrBuilder
optional .hadoop.hdfs.qjournal.SegmentStateProto segmentState = 1;- Specified by:
getSegmentStateOrBuilderin interfaceQJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder
-
hasAcceptedInEpoch
public boolean hasAcceptedInEpoch()optional uint64 acceptedInEpoch = 2;- Specified by:
hasAcceptedInEpochin interfaceQJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder- Returns:
- Whether the acceptedInEpoch field is set.
-
getAcceptedInEpoch
public long getAcceptedInEpoch()optional uint64 acceptedInEpoch = 2;- Specified by:
getAcceptedInEpochin interfaceQJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder- Returns:
- The acceptedInEpoch.
-
setAcceptedInEpoch
optional uint64 acceptedInEpoch = 2;- Parameters:
value- The acceptedInEpoch to set.- Returns:
- This builder for chaining.
-
clearAcceptedInEpoch
optional uint64 acceptedInEpoch = 2;- Returns:
- This builder for chaining.
-
hasLastWriterEpoch
public boolean hasLastWriterEpoch()required uint64 lastWriterEpoch = 3;- Specified by:
hasLastWriterEpochin interfaceQJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder- Returns:
- Whether the lastWriterEpoch field is set.
-
getLastWriterEpoch
public long getLastWriterEpoch()required uint64 lastWriterEpoch = 3;- Specified by:
getLastWriterEpochin interfaceQJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder- Returns:
- The lastWriterEpoch.
-
setLastWriterEpoch
required uint64 lastWriterEpoch = 3;- Parameters:
value- The lastWriterEpoch to set.- Returns:
- This builder for chaining.
-
clearLastWriterEpoch
required uint64 lastWriterEpoch = 3;- Returns:
- This builder for chaining.
-
hasLastCommittedTxId
public boolean hasLastCommittedTxId()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.
optional uint64 lastCommittedTxId = 4;- Specified by:
hasLastCommittedTxIdin interfaceQJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder- Returns:
- Whether the lastCommittedTxId field is set.
-
getLastCommittedTxId
public long getLastCommittedTxId()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.
optional uint64 lastCommittedTxId = 4;- Specified by:
getLastCommittedTxIdin interfaceQJournalProtocolProtos.PrepareRecoveryResponseProtoOrBuilder- Returns:
- The lastCommittedTxId.
-
setLastCommittedTxId
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.
optional uint64 lastCommittedTxId = 4;- Parameters:
value- The lastCommittedTxId to set.- Returns:
- This builder for chaining.
-
clearLastCommittedTxId
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.
optional uint64 lastCommittedTxId = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
-
mergeUnknownFields
public final QJournalProtocolProtos.PrepareRecoveryResponseProto.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<QJournalProtocolProtos.PrepareRecoveryResponseProto.Builder>
-