@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasJid()) { hash = (37 * hash) + JID_FIELD_NUMBER; hash = (53 * hash) + getJid().hashCode(); } if (hasNameServiceId()) { hash = (37 * hash) + NAMESERVICEID_FIELD_NUMBER; hash = (53 * hash) + getNameServiceId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@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.DoFinalizeRequestProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.DoFinalizeRequestProto other = (org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.DoFinalizeRequestProto) obj; boolean result = true; result = result && (hasJid() == other.hasJid()); if (hasJid()) { result = result && getJid() .equals(other.getJid()); } result = result && (hasNameServiceId() == other.hasNameServiceId()); if (hasNameServiceId()) { result = result && getNameServiceId() .equals(other.getNameServiceId()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@Override public DoFinalizeResponseProto doFinalize(RpcController controller, DoFinalizeRequestProto request) throws ServiceException { try { impl.doFinalize(convert(request.getJid()), request.hasNameServiceId() ? request.getNameServiceId() : null); return DoFinalizeResponseProto.getDefaultInstance(); } catch (IOException e) { throw new ServiceException(e); } }
/** * <code>optional string nameServiceId = 2;</code> */ public Builder clearNameServiceId() { bitField0_ = (bitField0_ & ~0x00000002); nameServiceId_ = getDefaultInstance().getNameServiceId(); onChanged(); return this; } /**