private byte[] encode(List<ObjectInfo> items) { CachedObjectIndex.Builder b; b = CachedObjectIndex.newBuilder(); for (ObjectInfo info : items) { CachedObjectIndex.Item.Builder i = b.addItemBuilder(); i.setChunkKey(info.getChunkKey().asString()); i.setObjectInfo(info.getData()); if (0 < info.getTime()) i.setTime(info.getTime()); } return b.build().toByteArray(); } });
private byte[] encode(List<ObjectInfo> items) { CachedObjectIndex.Builder b; b = CachedObjectIndex.newBuilder(); for (ObjectInfo info : items) { CachedObjectIndex.Item.Builder i = b.addItemBuilder(); i.setChunkKey(info.getChunkKey().asString()); i.setObjectInfo(info.getData()); if (0 < info.getTime()) i.setTime(info.getTime()); } return b.build().toByteArray(); } });
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDefaultInstance()) return this; if (other.hasChunkKey()) { setChunkKey(other.getChunkKey()); } if (other.hasObjectInfo()) { mergeObjectInfo(other.getObjectInfo()); } if (other.hasTime()) { setTime(other.getTime()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDefaultInstance()) return this; if (other.hasChunkKey()) { setChunkKey(other.getChunkKey()); } if (other.hasObjectInfo()) { mergeObjectInfo(other.getObjectInfo()); } if (other.hasTime()) { setTime(other.getTime()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }