@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } if (hasIndex()) { hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex().hashCode(); } if (hasMeta()) { hash = (37 * hash) + META_FIELD_NUMBER; hash = (53 * hash) + getMeta().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } if (hasIndex()) { hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex().hashCode(); } if (hasMeta()) { hash = (37 * hash) + META_FIELD_NUMBER; hash = (53 * hash) + getMeta().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
@java.lang.Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk other = (org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk) obj; boolean result = true; result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData() .equals(other.getData()); } result = result && (hasIndex() == other.hasIndex()); if (hasIndex()) { result = result && getIndex() .equals(other.getIndex()); } result = result && (hasMeta() == other.hasMeta()); if (hasMeta()) { result = result && getMeta() .equals(other.getMeta()); } 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.GitCache.CachedChunk)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk other = (org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk) obj; boolean result = true; result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData() .equals(other.getData()); } result = result && (hasIndex() == other.hasIndex()); if (hasIndex()) { result = result && getIndex() .equals(other.getIndex()); } result = result && (hasMeta() == other.hasMeta()); if (hasMeta()) { result = result && getMeta() .equals(other.getMeta()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk.getDefaultInstance()) return this; if (other.hasData()) { setData(other.getData()); } if (other.hasIndex()) { setIndex(other.getIndex()); } if (other.hasMeta()) { mergeMeta(other.getMeta()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk.getDefaultInstance()) return this; if (other.hasData()) { setData(other.getData()); } if (other.hasIndex()) { setIndex(other.getIndex()); } if (other.hasMeta()) { mergeMeta(other.getMeta()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder clearIndex() { bitField0_ = (bitField0_ & ~0x00000002); index_ = getDefaultInstance().getIndex(); onChanged(); return this; }
public Builder clearIndex() { bitField0_ = (bitField0_ & ~0x00000002); index_ = getDefaultInstance().getIndex(); onChanged(); return this; }