public static String getOffloadDriverName(LedgerInfo ledgerInfo, String defaultDriverName) { if (ledgerInfo.hasOffloadContext()) { OffloadContext ctx = ledgerInfo.getOffloadContext(); if (ctx.hasDriverMetadata()) { OffloadDriverMetadata driverMetadata = ctx.getDriverMetadata(); if (driverMetadata.hasName()) { return driverMetadata.getName(); } } } return defaultDriverName; }
public org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo build() { org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo build() { org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public Builder mergeFrom(org.apache.bookkeeper.mledger.proto.MLDataFormats.NestedPositionInfo other) { if (other == org.apache.bookkeeper.mledger.proto.MLDataFormats.NestedPositionInfo.getDefaultInstance()) return this; if (other.hasLedgerId()) { setLedgerId(other.getLedgerId()); } if (other.hasEntryId()) { setEntryId(other.getEntryId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(org.apache.bookkeeper.mledger.proto.MLDataFormats.MessageRange other) { if (other == org.apache.bookkeeper.mledger.proto.MLDataFormats.MessageRange.getDefaultInstance()) return this; if (other.hasLowerEndpoint()) { mergeLowerEndpoint(other.getLowerEndpoint()); } if (other.hasUpperEndpoint()) { mergeUpperEndpoint(other.getUpperEndpoint()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public final boolean isInitialized() { for (int i = 0; i < getLedgerInfoCount(); i++) { if (!getLedgerInfo(i).isInitialized()) { return false; } } if (hasTerminatedPosition()) { if (!getTerminatedPosition().isInitialized()) { return false; } } return true; }
public org.apache.bookkeeper.mledger.proto.MLDataFormats.MessageRange build() { org.apache.bookkeeper.mledger.proto.MLDataFormats.MessageRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.apache.bookkeeper.mledger.proto.MLDataFormats.NestedPositionInfo build() { org.apache.bookkeeper.mledger.proto.MLDataFormats.NestedPositionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo.LedgerInfo build() { org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo.LedgerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedCursorInfo build() { org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedCursorInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public final boolean isInitialized() { if (!hasLedgerId()) { return false; } if (hasOffloadContext()) { if (!getOffloadContext().isInitialized()) { return false; } } return true; }
public final boolean isInitialized() { if (!hasName()) { return false; } for (int i = 0; i < getPropertiesCount(); i++) { if (!getProperties(i).isInitialized()) { return false; } } return true; }
/** * <code>required string value = 2;</code> */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /**
/** * <code>required string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <code>required string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
public org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadContext build() { org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadContext result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <code>required string key = 1;</code> */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /**
public org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadDriverMetadata build() { org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadDriverMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.apache.bookkeeper.mledger.proto.MLDataFormats.KeyValue build() { org.apache.bookkeeper.mledger.proto.MLDataFormats.KeyValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.apache.bookkeeper.mledger.proto.MLDataFormats.LongProperty build() { org.apache.bookkeeper.mledger.proto.MLDataFormats.LongProperty result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }