GitStore.ChunkInfo.Builder b = GitStore.ChunkInfo.newBuilder(oldInfo.getData()); b.setCachedPackKey(cachedPackKey.asString()); ChunkInfo newInfo = new ChunkInfo(key, b.build()); infoByKey.put(key, newInfo);
info.setSource(source); info.setObjectType(GitStore.ChunkInfo.ObjectType.valueOf(objectType)); if (fragment) info.setIsFragment(true); info.setChunkSize(chunkData.length); GitStore.ChunkInfo.ObjectCounts.Builder cnts = info.getObjectCountsBuilder(); cnts.setTotal(objectsTotal); if (objectsWhole > 0) ChunkMeta meta = b.build(); builder.setMeta(meta); info.setMetaSize(meta.getSerializedSize()); byte[] index = ChunkIndex.create(objectList); builder.setChunkIndex(index); info.setIndexSize(index.length); chunkInfo = new ChunkInfo(key, info.build()); return getChunkKey();
info.setIndexSize(index.length); builder.setChunkIndex(index); info.setMetaSize(meta.getSerializedSize()); builder.setMeta(meta); ChunkInfo newInfo = new ChunkInfo(key, info.build()); infoByKey.put(key, newInfo); db.repository().put(repo, newInfo, dbWriteBuffer);
info.setSource(source); info.setObjectType(GitStore.ChunkInfo.ObjectType.valueOf(objectType)); if (fragment) info.setIsFragment(true); info.setChunkSize(chunkData.length); GitStore.ChunkInfo.ObjectCounts.Builder cnts = info.getObjectCountsBuilder(); cnts.setTotal(objectsTotal); if (objectsWhole > 0) ChunkMeta meta = b.build(); builder.setMeta(meta); info.setMetaSize(meta.getSerializedSize()); byte[] index = ChunkIndex.create(objectList); builder.setChunkIndex(index); info.setIndexSize(index.length); chunkInfo = new ChunkInfo(key, info.build()); return getChunkKey();
info.setIndexSize(index.length); builder.setChunkIndex(index); info.setMetaSize(meta.getSerializedSize()); builder.setMeta(meta); ChunkInfo newInfo = new ChunkInfo(key, info.build()); infoByKey.put(key, newInfo); db.repository().put(repo, newInfo, dbWriteBuffer);
GitStore.ChunkInfo.Builder b = GitStore.ChunkInfo.newBuilder(oldInfo.getData()); b.setCachedPackKey(cachedPackKey.asString()); ChunkInfo newInfo = new ChunkInfo(key, b.build()); infoByKey.put(key, newInfo);
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.getDefaultInstance()) return this; if (other.hasSource()) { setSource(other.getSource()); } if (other.hasObjectType()) { setObjectType(other.getObjectType()); } if (other.hasIsFragment()) { setIsFragment(other.getIsFragment()); } if (other.hasCachedPackKey()) { setCachedPackKey(other.getCachedPackKey()); } if (other.hasObjectCounts()) { mergeObjectCounts(other.getObjectCounts()); } if (other.hasChunkSize()) { setChunkSize(other.getChunkSize()); } if (other.hasIndexSize()) { setIndexSize(other.getIndexSize()); } if (other.hasMetaSize()) { setMetaSize(other.getMetaSize()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.getDefaultInstance()) return this; if (other.hasSource()) { setSource(other.getSource()); } if (other.hasObjectType()) { setObjectType(other.getObjectType()); } if (other.hasIsFragment()) { setIsFragment(other.getIsFragment()); } if (other.hasCachedPackKey()) { setCachedPackKey(other.getCachedPackKey()); } if (other.hasObjectCounts()) { mergeObjectCounts(other.getObjectCounts()); } if (other.hasChunkSize()) { setChunkSize(other.getChunkSize()); } if (other.hasIndexSize()) { setIndexSize(other.getIndexSize()); } if (other.hasMetaSize()) { setMetaSize(other.getMetaSize()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private static Builder create() { return new Builder(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
private static Builder create() { return new Builder(); }
public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo build() { org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends
private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; }
public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo build() { org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; }