@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); if (hasObjectsTotal()) { hash = (37 * hash) + OBJECTS_TOTAL_FIELD_NUMBER; hash = (53 * hash) + hashLong(getObjectsTotal()); if (hasObjectsDelta()) { hash = (37 * hash) + OBJECTS_DELTA_FIELD_NUMBER; hash = (53 * hash) + hashLong(getObjectsDelta()); if (hasBytesTotal()) { hash = (37 * hash) + BYTES_TOTAL_FIELD_NUMBER; hash = (53 * hash) + hashLong(getBytesTotal()); if (hasTipList()) { hash = (37 * hash) + TIP_LIST_FIELD_NUMBER; hash = (53 * hash) + getTipList().hashCode(); if (hasChunkList()) { hash = (37 * hash) + CHUNK_LIST_FIELD_NUMBER;
org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addPack(subBuilder.buildPartial());
public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo buildPartial() { org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && getVersion() .equals(other.getVersion()); result = result && (hasObjectsTotal() == other.hasObjectsTotal()); if (hasObjectsTotal()) { result = result && (getObjectsTotal() == other.getObjectsTotal()); result = result && (hasObjectsDelta() == other.hasObjectsDelta()); if (hasObjectsDelta()) { result = result && (getObjectsDelta() == other.getObjectsDelta()); result = result && (hasBytesTotal() == other.hasBytesTotal()); if (hasBytesTotal()) { result = result && (getBytesTotal() == other.getBytesTotal()); result = result && (hasTipList() == other.hasTipList()); if (hasTipList()) { result = result && getTipList() .equals(other.getTipList());
result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && getVersion() .equals(other.getVersion()); result = result && (hasObjectsTotal() == other.hasObjectsTotal()); if (hasObjectsTotal()) { result = result && (getObjectsTotal() == other.getObjectsTotal()); result = result && (hasObjectsDelta() == other.hasObjectsDelta()); if (hasObjectsDelta()) { result = result && (getObjectsDelta() == other.getObjectsDelta()); result = result && (hasBytesTotal() == other.hasBytesTotal()); if (hasBytesTotal()) { result = result && (getBytesTotal() == other.getBytesTotal()); result = result && (hasTipList() == other.hasTipList()); if (hasTipList()) { result = result && getTipList() .equals(other.getTipList());
public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo buildPartial() { org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
private void putCachedPack() throws DhtException { CachedPackInfo.Builder info = CachedPackInfo.newBuilder();
private void putCachedPack() throws DhtException { CachedPackInfo.Builder info = CachedPackInfo.newBuilder();
org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addPack(subBuilder.buildPartial());
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); if (hasObjectsTotal()) { hash = (37 * hash) + OBJECTS_TOTAL_FIELD_NUMBER; hash = (53 * hash) + hashLong(getObjectsTotal()); if (hasObjectsDelta()) { hash = (37 * hash) + OBJECTS_DELTA_FIELD_NUMBER; hash = (53 * hash) + hashLong(getObjectsDelta()); if (hasBytesTotal()) { hash = (37 * hash) + BYTES_TOTAL_FIELD_NUMBER; hash = (53 * hash) + hashLong(getBytesTotal()); if (hasTipList()) { hash = (37 * hash) + TIP_LIST_FIELD_NUMBER; hash = (53 * hash) + getTipList().hashCode(); if (hasChunkList()) { hash = (37 * hash) + CHUNK_LIST_FIELD_NUMBER;
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.getDefaultInstance()) return this; if (other.hasName()) { setName(other.getName()); } if (other.hasVersion()) { setVersion(other.getVersion()); } if (other.hasObjectsTotal()) { setObjectsTotal(other.getObjectsTotal()); } if (other.hasObjectsDelta()) { setObjectsDelta(other.getObjectsDelta()); } if (other.hasBytesTotal()) { setBytesTotal(other.getBytesTotal()); } if (other.hasTipList()) { mergeTipList(other.getTipList()); } if (other.hasChunkList()) { mergeChunkList(other.getChunkList()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.getDefaultInstance()) return this; if (other.hasName()) { setName(other.getName()); } if (other.hasVersion()) { setVersion(other.getVersion()); } if (other.hasObjectsTotal()) { setObjectsTotal(other.getObjectsTotal()); } if (other.hasObjectsDelta()) { setObjectsDelta(other.getObjectsDelta()); } if (other.hasBytesTotal()) { setBytesTotal(other.getBytesTotal()); } if (other.hasTipList()) { mergeTipList(other.getTipList()); } if (other.hasChunkList()) { mergeChunkList(other.getChunkList()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder toBuilder() { return newBuilder(this); }
public Builder toBuilder() { return newBuilder(this); }
public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo getDefaultInstanceForType() { return org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.getDefaultInstance(); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo prototype) {
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo prototype) {
public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
@Override public long getObjectCount() { return info.getObjectsTotal(); }
@Override public long getDeltaCount() throws IOException { return info.getObjectsDelta(); }