/** * <code>required .hadoop.hdfs.qjournal.JournalIdProto journalId = 1;</code> */ public Builder setJournalId(org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.JournalIdProto value) { if (journalIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } journalId_ = value; onChanged(); } else { journalIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional string nameServiceId = 5;</code> */ public Builder setNameServiceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; nameServiceId_ = value; onChanged(); return this; }
/** * <code>optional string nameServiceId = 5;</code> */ public Builder setNameServiceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; nameServiceId_ = value; onChanged(); return this; } /**
/** * <code>required uint64 ipcSerialNumber = 3;</code> */ public Builder setIpcSerialNumber(long value) { bitField0_ |= 0x00000004; ipcSerialNumber_ = value; onChanged(); return this; } /**
/** * <code>required .hadoop.hdfs.qjournal.JournalIdProto journalId = 1;</code> */ public org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.JournalIdProto.Builder getJournalIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getJournalIdFieldBuilder().getBuilder(); } /**
/** * <code>required uint64 epoch = 2;</code> */ public Builder setEpoch(long value) { bitField0_ |= 0x00000002; epoch_ = value; onChanged(); return this; } /**
/** * <code>required uint64 epoch = 2;</code> */ public Builder setEpoch(long value) { bitField0_ |= 0x00000002; epoch_ = value; onChanged(); return this; } /**
/** * <code>required .hadoop.hdfs.qjournal.JournalIdProto journalId = 1;</code> */ public org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.JournalIdProto.Builder getJournalIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getJournalIdFieldBuilder().getBuilder(); } /**
public Builder mergeFrom(org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto other) { if (other == org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto.getDefaultInstance()) return this; if (other.hasJournalId()) { mergeJournalId(other.getJournalId()); } if (other.hasEpoch()) { setEpoch(other.getEpoch()); } if (other.hasIpcSerialNumber()) { setIpcSerialNumber(other.getIpcSerialNumber()); } if (other.hasCommittedTxId()) { setCommittedTxId(other.getCommittedTxId()); } if (other.hasNameServiceId()) { bitField0_ |= 0x00000010; nameServiceId_ = other.nameServiceId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>required .hadoop.hdfs.qjournal.JournalIdProto journalId = 1;</code> */ public Builder mergeJournalId(org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.JournalIdProto value) { if (journalIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && journalId_ != org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.JournalIdProto.getDefaultInstance()) { journalId_ = org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.JournalIdProto.newBuilder(journalId_).mergeFrom(value).buildPartial(); } else { journalId_ = value; } onChanged(); } else { journalIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional uint64 committedTxId = 4;</code> * * <pre> * Whenever a writer makes a request, it informs * the node of the latest committed txid. This may * be higher than the transaction data included in the * request itself, eg in the case that the node has * fallen behind. * </pre> */ public Builder clearCommittedTxId() { bitField0_ = (bitField0_ & ~0x00000008); committedTxId_ = 0L; onChanged(); return this; }
/** * <code>optional uint64 committedTxId = 4;</code> * * <pre> * Whenever a writer makes a request, it informs * the node of the latest committed txid. This may * be higher than the transaction data included in the * request itself, eg in the case that the node has * fallen behind. * </pre> */ public Builder setCommittedTxId(long value) { bitField0_ |= 0x00000008; committedTxId_ = value; onChanged(); return this; } /**
/** * <code>required .hadoop.hdfs.qjournal.JournalIdProto journalId = 1;</code> */ public Builder setJournalId( org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.JournalIdProto.Builder builderForValue) { if (journalIdBuilder_ == null) { journalId_ = builderForValue.build(); onChanged(); } else { journalIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>required uint64 ipcSerialNumber = 3;</code> */ public Builder clearIpcSerialNumber() { bitField0_ = (bitField0_ & ~0x00000004); ipcSerialNumber_ = 0L; onChanged(); return this; }
/** * <code>required .hadoop.hdfs.qjournal.JournalIdProto journalId = 1;</code> */ public org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.JournalIdProto.Builder getJournalIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getJournalIdFieldBuilder().getBuilder(); } /**
/** * <code>required .hadoop.hdfs.qjournal.JournalIdProto journalId = 1;</code> */ public Builder clearJournalId() { if (journalIdBuilder_ == null) { journalId_ = org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.JournalIdProto.getDefaultInstance(); onChanged(); } else { journalIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /**
/** * <code>optional string nameServiceId = 5;</code> */ public Builder clearNameServiceId() { bitField0_ = (bitField0_ & ~0x00000010); nameServiceId_ = getDefaultInstance().getNameServiceId(); onChanged(); return this; } /**
/** * <code>required uint64 epoch = 2;</code> */ public Builder setEpoch(long value) { bitField0_ |= 0x00000002; epoch_ = value; onChanged(); return this; } /**
/** * <code>required uint64 ipcSerialNumber = 3;</code> */ public Builder setIpcSerialNumber(long value) { bitField0_ |= 0x00000004; ipcSerialNumber_ = value; onChanged(); return this; } /**
/** * <code>required uint64 epoch = 2;</code> */ public Builder clearEpoch() { bitField0_ = (bitField0_ & ~0x00000002); epoch_ = 0L; onChanged(); return this; }