public org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto buildPartial() { org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto result = new org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.GetJournalStateRequestProto.getDefaultInstance(); case 9: return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto.getDefaultInstance(); case 10: return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.FormatRequestProto.getDefaultInstance();
@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 (hasNsInfo()) { hash = (37 * hash) + NSINFO_FIELD_NUMBER; hash = (53 * hash) + getNsInfo().hashCode(); } if (hasEpoch()) { hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + hashLong(getEpoch()); } if (hasNameServiceId()) { hash = (37 * hash) + NAMESERVICEID_FIELD_NUMBER; hash = (53 * hash) + getNameServiceId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.GetJournalStateRequestProto.getDefaultInstance(); case 9: return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto.getDefaultInstance(); case 10: return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.FormatRequestProto.getDefaultInstance();
return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.GetJournalStateRequestProto.getDefaultInstance(); case 9: return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto.getDefaultInstance(); case 10: return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.FormatRequestProto.getDefaultInstance();
return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.GetJournalStateRequestProto.getDefaultInstance(); case 9: return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto.getDefaultInstance(); case 10: return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.FormatRequestProto.getDefaultInstance();
return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.GetJournalStateRequestProto.getDefaultInstance(); case 9: return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto.getDefaultInstance(); case 10: return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.FormatRequestProto.getDefaultInstance();
public org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto buildPartial() { org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto result = new org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (jidBuilder_ == null) { result.jid_ = jid_; } else { result.jid_ = jidBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (nsInfoBuilder_ == null) { result.nsInfo_ = nsInfo_; } else { result.nsInfo_ = nsInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.epoch_ = epoch_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto buildPartial() { org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto result = new org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (jidBuilder_ == null) { result.jid_ = jid_; } else { result.jid_ = jidBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (nsInfoBuilder_ == null) { result.nsInfo_ = nsInfo_; } else { result.nsInfo_ = nsInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.epoch_ = epoch_; 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.NewEpochRequestProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto other = (org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto) obj; boolean result = true; result = result && (hasJid() == other.hasJid()); if (hasJid()) { result = result && getJid() .equals(other.getJid()); } result = result && (hasNsInfo() == other.hasNsInfo()); if (hasNsInfo()) { result = result && getNsInfo() .equals(other.getNsInfo()); } result = result && (hasEpoch() == other.hasEpoch()); if (hasEpoch()) { result = result && (getEpoch() == other.getEpoch()); } 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.NewEpochRequestProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto other = (org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto) obj; boolean result = true; result = result && (hasJid() == other.hasJid()); if (hasJid()) { result = result && getJid() .equals(other.getJid()); } result = result && (hasNsInfo() == other.hasNsInfo()); if (hasNsInfo()) { result = result && getNsInfo() .equals(other.getNsInfo()); } result = result && (hasEpoch() == other.hasEpoch()); if (hasEpoch()) { result = result && (getEpoch() == other.getEpoch()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasJid()) { memoizedIsInitialized = 0; return false; } if (!hasNsInfo()) { memoizedIsInitialized = 0; return false; } if (!hasEpoch()) { memoizedIsInitialized = 0; return false; } if (!getJid().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getNsInfo().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasJid()) { memoizedIsInitialized = 0; return false; } if (!hasNsInfo()) { memoizedIsInitialized = 0; return false; } if (!hasEpoch()) { memoizedIsInitialized = 0; return false; } if (!getJid().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getNsInfo().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, jid_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, nsInfo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, epoch_); } 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 (hasJid()) { hash = (37 * hash) + JID_FIELD_NUMBER; hash = (53 * hash) + getJid().hashCode(); } if (hasNsInfo()) { hash = (37 * hash) + NSINFO_FIELD_NUMBER; hash = (53 * hash) + getNsInfo().hashCode(); } if (hasEpoch()) { hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + hashLong(getEpoch()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += io.prestosql.hadoop.$internal.com.google.protobuf.CodedOutputStream .computeMessageSize(1, jid_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += io.prestosql.hadoop.$internal.com.google.protobuf.CodedOutputStream .computeMessageSize(2, nsInfo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += io.prestosql.hadoop.$internal.com.google.protobuf.CodedOutputStream .computeUInt64Size(3, epoch_); } 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 (hasJid()) { hash = (37 * hash) + JID_FIELD_NUMBER; hash = (53 * hash) + getJid().hashCode(); } if (hasNsInfo()) { hash = (37 * hash) + NSINFO_FIELD_NUMBER; hash = (53 * hash) + getNsInfo().hashCode(); } if (hasEpoch()) { hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + hashLong(getEpoch()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto getDefaultInstanceForType() { return org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto.getDefaultInstance(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, jid_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, nsInfo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, epoch_); } getUnknownFields().writeTo(output); }
public Builder mergeFrom(org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto other) { if (other == org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.NewEpochRequestProto.getDefaultInstance()) return this; if (other.hasJid()) { mergeJid(other.getJid()); } if (other.hasNsInfo()) { mergeNsInfo(other.getNsInfo()); } if (other.hasEpoch()) { setEpoch(other.getEpoch()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }