/** * <code>optional .OffloadContext offloadContext = 5;</code> */ public Builder setOffloadContext(org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadContext value) { if (offloadContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } offloadContext_ = value; onChanged(); } else { offloadContextBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional .OffloadContext offloadContext = 5;</code> */ public org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadContext.Builder getOffloadContextBuilder() { bitField0_ |= 0x00000010; onChanged(); return getOffloadContextFieldBuilder().getBuilder(); } /**
/** * <code>optional .OffloadContext offloadContext = 5;</code> */ public Builder setOffloadContext( org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadContext.Builder builderForValue) { if (offloadContextBuilder_ == null) { offloadContext_ = builderForValue.build(); onChanged(); } else { offloadContextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /**
public Builder setEntries(long value) { bitField0_ |= 0x00000002; entries_ = value; onChanged(); return this; } public Builder clearEntries() {
public Builder clearLedgerId() { bitField0_ = (bitField0_ & ~0x00000001); ledgerId_ = 0L; onChanged(); return this; }
/** * <code>optional int64 timestamp = 4;</code> */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000008); timestamp_ = 0L; onChanged(); return this; }
/** * <code>required int64 ledgerId = 1;</code> */ public Builder setLedgerId(long value) { bitField0_ |= 0x00000001; ledgerId_ = value; onChanged(); return this; } /**
public Builder setTimestamp(long value) { bitField0_ |= 0x00000008; timestamp_ = value; onChanged(); return this; } public Builder clearTimestamp() {
/** * <code>optional int64 entries = 2;</code> */ public Builder setEntries(long value) { bitField0_ |= 0x00000002; entries_ = value; onChanged(); return this; } /**
public Builder mergeFrom(org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo.LedgerInfo other) { if (other == org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo.LedgerInfo.getDefaultInstance()) return this; if (other.hasLedgerId()) { setLedgerId(other.getLedgerId()); } if (other.hasEntries()) { setEntries(other.getEntries()); } if (other.hasSize()) { setSize(other.getSize()); } if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } if (other.hasOffloadContext()) { mergeOffloadContext(other.getOffloadContext()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>optional .OffloadContext offloadContext = 5;</code> */ public Builder mergeOffloadContext(org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadContext value) { if (offloadContextBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && offloadContext_ != null && offloadContext_ != org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadContext.getDefaultInstance()) { offloadContext_ = org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadContext.newBuilder(offloadContext_).mergeFrom(value).buildPartial(); } else { offloadContext_ = value; } onChanged(); } else { offloadContextBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional .OffloadContext offloadContext = 5;</code> */ public Builder clearOffloadContext() { if (offloadContextBuilder_ == null) { offloadContext_ = null; onChanged(); } else { offloadContextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /**
/** * <code>optional int64 size = 3;</code> */ public Builder setSize(long value) { bitField0_ |= 0x00000004; size_ = value; onChanged(); return this; } /**
/** * <code>optional int64 timestamp = 4;</code> */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000008); timestamp_ = 0L; onChanged(); return this; }
/** * <code>optional int64 timestamp = 4;</code> */ public Builder setTimestamp(long value) { bitField0_ |= 0x00000008; timestamp_ = value; onChanged(); return this; } /**
/** * <code>optional int64 entries = 2;</code> */ public Builder setEntries(long value) { bitField0_ |= 0x00000002; entries_ = value; onChanged(); return this; } /**
/** * <code>required int64 ledgerId = 1;</code> */ public Builder setLedgerId(long value) { bitField0_ |= 0x00000001; ledgerId_ = value; onChanged(); return this; } /**
/** * <code>optional int64 size = 3;</code> */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000004); size_ = 0L; onChanged(); return this; }
/** * <code>optional int64 entries = 2;</code> */ public Builder clearEntries() { bitField0_ = (bitField0_ & ~0x00000002); entries_ = 0L; onChanged(); return this; }
/** * <code>required int64 ledgerId = 1;</code> */ public Builder clearLedgerId() { bitField0_ = (bitField0_ & ~0x00000001); ledgerId_ = 0L; onChanged(); return this; }