if (meta != null && meta.getBaseChunkCount() != 0) { for (ChunkMeta.BaseChunk base : meta.getBaseChunkList()) { Long act = startsAt.get(base.getChunkKey()); long exp = position - base.getRelativeStart(); rowKey(), base.getChunkKey(), "[not written]", key, Long.valueOf(exp))); throw new DhtException(MessageFormat.format(DhtText .get().wrongChunkPositionInCachedPack, rowKey(), base.getChunkKey(), act, key, Long.valueOf(exp)));
org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addBaseChunk(subBuilder.buildPartial());
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, relativeStart_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getChunkKeyBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
pc.meta, base); baseChunkKey = ChunkKey.fromString(baseChunk.getChunkKey()); basePosInChunk = (int) (baseChunk.getRelativeStart() - base);
pc.meta, base); baseChunkKey = ChunkKey.fromString(baseChunk.getChunkKey()); basePosInChunk = (int) (baseChunk.getRelativeStart() - base);
for (BaseChunkInfo b : baseChunks.values()) { if (0 < b.useCount) { BaseChunk.Builder c = BaseChunk.newBuilder(); c.setRelativeStart(b.relativeStart); c.setChunkKey(b.key.asString());
org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addBaseChunk(subBuilder.buildPartial());
for (BaseChunkInfo b : baseChunks.values()) { if (0 < b.useCount) { BaseChunk.Builder c = BaseChunk.newBuilder(); c.setRelativeStart(b.relativeStart); c.setChunkKey(b.key.asString());
final BaseChunk base = baseChunks.get(mid); if (position > base.getRelativeStart()) { low = mid + 1; } else if (mid == 0 || position == base.getRelativeStart()) { return base; } else if (baseChunks.get(mid - 1).getRelativeStart() < position) { return base;
if (meta != null && meta.getBaseChunkCount() != 0) { for (ChunkMeta.BaseChunk base : meta.getBaseChunkList()) { Long act = startsAt.get(base.getChunkKey()); long exp = position - base.getRelativeStart(); rowKey(), base.getChunkKey(), "[not written]", key, Long.valueOf(exp))); throw new DhtException(MessageFormat.format(DhtText .get().wrongChunkPositionInCachedPack, rowKey(), base.getChunkKey(), act, key, Long.valueOf(exp)));
final BaseChunk base = baseChunks.get(mid); if (position > base.getRelativeStart()) { low = mid + 1; } else if (mid == 0 || position == base.getRelativeStart()) { return base; } else if (baseChunks.get(mid - 1).getRelativeStart() < position) { return base;
@java.lang.Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk) obj; boolean result = true; result = result && (hasRelativeStart() == other.hasRelativeStart()); if (hasRelativeStart()) { result = result && (getRelativeStart() == other.getRelativeStart()); } result = result && (hasChunkKey() == other.hasChunkKey()); if (hasChunkKey()) { result = result && getChunkKey() .equals(other.getChunkKey()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk) obj; boolean result = true; result = result && (hasRelativeStart() == other.hasRelativeStart()); if (hasRelativeStart()) { result = result && (getRelativeStart() == other.getRelativeStart()); } result = result && (hasChunkKey() == other.hasChunkKey()); if (hasChunkKey()) { result = result && getChunkKey() .equals(other.getChunkKey()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder toBuilder() { return newBuilder(this); }
public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk buildPartial() { org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.relativeStart_ = relativeStart_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.chunkKey_ = chunkKey_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, relativeStart_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getChunkKeyBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk prototype) {
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasRelativeStart()) { hash = (37 * hash) + RELATIVE_START_FIELD_NUMBER; hash = (53 * hash) + hashLong(getRelativeStart()); } if (hasChunkKey()) { hash = (37 * hash) + CHUNK_KEY_FIELD_NUMBER; hash = (53 * hash) + getChunkKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk getDefaultInstanceForType() { return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.getDefaultInstance(); }