public org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto buildPartial() { org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto result = new org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasJournalId()) { hash = (37 * hash) + JOURNALID_FIELD_NUMBER; hash = (53 * hash) + getJournalId().hashCode(); if (hasEpoch()) { hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + hashLong(getEpoch()); if (hasIpcSerialNumber()) { hash = (37 * hash) + IPCSERIALNUMBER_FIELD_NUMBER; hash = (53 * hash) + hashLong(getIpcSerialNumber()); if (hasCommittedTxId()) { hash = (37 * hash) + COMMITTEDTXID_FIELD_NUMBER; hash = (53 * hash) + hashLong(getCommittedTxId()); if (hasNameServiceId()) { hash = (37 * hash) + NAMESERVICEID_FIELD_NUMBER; hash = (53 * hash) + getNameServiceId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash;
/** * <code>required .hadoop.hdfs.qjournal.RequestInfoProto reqInfo = 1;</code> */ public Builder mergeReqInfo(org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto value) { if (reqInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && reqInfo_ != org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto.getDefaultInstance()) { reqInfo_ = org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto.newBuilder(reqInfo_).mergeFrom(value).buildPartial(); } else { reqInfo_ = value; } onChanged(); } else { reqInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
if (hasReqInfo()) { result = result && getReqInfo() .equals(other.getReqInfo());
if (hasReqInfo()) { result = result && getReqInfo() .equals(other.getReqInfo());
result = result && (hasJournalId() == other.hasJournalId()); if (hasJournalId()) { result = result && getJournalId() .equals(other.getJournalId()); result = result && (hasEpoch() == other.hasEpoch()); if (hasEpoch()) { result = result && (getEpoch() == other.getEpoch()); result = result && (hasIpcSerialNumber() == other.hasIpcSerialNumber()); if (hasIpcSerialNumber()) { result = result && (getIpcSerialNumber() == other.getIpcSerialNumber()); result = result && (hasCommittedTxId() == other.hasCommittedTxId()); if (hasCommittedTxId()) { result = result && (getCommittedTxId() == other.getCommittedTxId()); getUnknownFields().equals(other.getUnknownFields()); return result;
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.StartLogSegmentRequestProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.StartLogSegmentRequestProto other = (org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.StartLogSegmentRequestProto) obj; boolean result = true; result = result && (hasReqInfo() == other.hasReqInfo()); if (hasReqInfo()) { result = result && getReqInfo() .equals(other.getReqInfo()); } result = result && (hasTxid() == other.hasTxid()); if (hasTxid()) { result = result && (getTxid() == other.getTxid()); } result = result && (hasLayoutVersion() == other.hasLayoutVersion()); if (hasLayoutVersion()) { result = result && (getLayoutVersion() == other.getLayoutVersion()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.StartLogSegmentRequestProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.StartLogSegmentRequestProto other = (org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.StartLogSegmentRequestProto) obj; boolean result = true; result = result && (hasReqInfo() == other.hasReqInfo()); if (hasReqInfo()) { result = result && getReqInfo() .equals(other.getReqInfo()); } result = result && (hasTxid() == other.hasTxid()); if (hasTxid()) { result = result && (getTxid() == other.getTxid()); } result = result && (hasLayoutVersion() == other.hasLayoutVersion()); if (hasLayoutVersion()) { result = result && (getLayoutVersion() == other.getLayoutVersion()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.AcceptRecoveryRequestProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.AcceptRecoveryRequestProto other = (org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.AcceptRecoveryRequestProto) obj; boolean result = true; result = result && (hasReqInfo() == other.hasReqInfo()); if (hasReqInfo()) { result = result && getReqInfo() .equals(other.getReqInfo()); } result = result && (hasStateToAccept() == other.hasStateToAccept()); if (hasStateToAccept()) { result = result && getStateToAccept() .equals(other.getStateToAccept()); } result = result && (hasFromURL() == other.hasFromURL()); if (hasFromURL()) { result = result && getFromURL() .equals(other.getFromURL()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.AcceptRecoveryRequestProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.AcceptRecoveryRequestProto other = (org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.AcceptRecoveryRequestProto) obj; boolean result = true; result = result && (hasReqInfo() == other.hasReqInfo()); if (hasReqInfo()) { result = result && getReqInfo() .equals(other.getReqInfo()); } result = result && (hasStateToAccept() == other.hasStateToAccept()); if (hasStateToAccept()) { result = result && getStateToAccept() .equals(other.getStateToAccept()); } result = result && (hasFromURL() == other.hasFromURL()); if (hasFromURL()) { result = result && getFromURL() .equals(other.getFromURL()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
result = result && (hasJournalId() == other.hasJournalId()); if (hasJournalId()) { result = result && getJournalId() .equals(other.getJournalId()); result = result && (hasEpoch() == other.hasEpoch()); if (hasEpoch()) { result = result && (getEpoch() == other.getEpoch()); result = result && (hasIpcSerialNumber() == other.hasIpcSerialNumber()); if (hasIpcSerialNumber()) { result = result && (getIpcSerialNumber() == other.getIpcSerialNumber()); result = result && (hasCommittedTxId() == other.hasCommittedTxId()); if (hasCommittedTxId()) { result = result && (getCommittedTxId() == other.getCommittedTxId()); getUnknownFields().equals(other.getUnknownFields()); return result;
public org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto buildPartial() { org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto result = new org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (journalIdBuilder_ == null) { result.journalId_ = journalId_; } else { result.journalId_ = journalIdBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.epoch_ = epoch_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.ipcSerialNumber_ = ipcSerialNumber_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.committedTxId_ = committedTxId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.FinalizeLogSegmentRequestProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.FinalizeLogSegmentRequestProto other = (org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.FinalizeLogSegmentRequestProto) obj; boolean result = true; result = result && (hasReqInfo() == other.hasReqInfo()); if (hasReqInfo()) { result = result && getReqInfo() .equals(other.getReqInfo()); } result = result && (hasStartTxId() == other.hasStartTxId()); if (hasStartTxId()) { result = result && (getStartTxId() == other.getStartTxId()); } result = result && (hasEndTxId() == other.hasEndTxId()); if (hasEndTxId()) { result = result && (getEndTxId() == other.getEndTxId()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.FinalizeLogSegmentRequestProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.FinalizeLogSegmentRequestProto other = (org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.FinalizeLogSegmentRequestProto) obj; boolean result = true; result = result && (hasReqInfo() == other.hasReqInfo()); if (hasReqInfo()) { result = result && getReqInfo() .equals(other.getReqInfo()); } result = result && (hasStartTxId() == other.hasStartTxId()); if (hasStartTxId()) { result = result && (getStartTxId() == other.getStartTxId()); } result = result && (hasEndTxId() == other.hasEndTxId()); if (hasEndTxId()) { result = result && (getEndTxId() == other.getEndTxId()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto buildPartial() { org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto result = new org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (journalIdBuilder_ == null) { result.journalId_ = journalId_; } else { result.journalId_ = journalIdBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.epoch_ = epoch_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.ipcSerialNumber_ = ipcSerialNumber_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.committedTxId_ = committedTxId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.PurgeLogsRequestProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.PurgeLogsRequestProto other = (org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.PurgeLogsRequestProto) obj; boolean result = true; result = result && (hasReqInfo() == other.hasReqInfo()); if (hasReqInfo()) { result = result && getReqInfo() .equals(other.getReqInfo()); } result = result && (hasMinTxIdToKeep() == other.hasMinTxIdToKeep()); if (hasMinTxIdToKeep()) { result = result && (getMinTxIdToKeep() == other.getMinTxIdToKeep()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.PurgeLogsRequestProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.PurgeLogsRequestProto other = (org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.PurgeLogsRequestProto) obj; boolean result = true; result = result && (hasReqInfo() == other.hasReqInfo()); if (hasReqInfo()) { result = result && getReqInfo() .equals(other.getReqInfo()); } result = result && (hasMinTxIdToKeep() == other.hasMinTxIdToKeep()); if (hasMinTxIdToKeep()) { result = result && (getMinTxIdToKeep() == other.getMinTxIdToKeep()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.PrepareRecoveryRequestProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.PrepareRecoveryRequestProto other = (org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.PrepareRecoveryRequestProto) obj; boolean result = true; result = result && (hasReqInfo() == other.hasReqInfo()); if (hasReqInfo()) { result = result && getReqInfo() .equals(other.getReqInfo()); } result = result && (hasSegmentTxId() == other.hasSegmentTxId()); if (hasSegmentTxId()) { result = result && (getSegmentTxId() == other.getSegmentTxId()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, journalId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, epoch_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, ipcSerialNumber_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, committedTxId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasJournalId()) { hash = (37 * hash) + JOURNALID_FIELD_NUMBER; hash = (53 * hash) + getJournalId().hashCode(); } if (hasEpoch()) { hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + hashLong(getEpoch()); } if (hasIpcSerialNumber()) { hash = (37 * hash) + IPCSERIALNUMBER_FIELD_NUMBER; hash = (53 * hash) + hashLong(getIpcSerialNumber()); } if (hasCommittedTxId()) { hash = (37 * hash) + COMMITTEDTXID_FIELD_NUMBER; hash = (53 * hash) + hashLong(getCommittedTxId()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }