result = result && (hasObjectType() == other.hasObjectType()); if (hasObjectType()) { result = result && (getObjectType() == other.getObjectType()); result = result && (hasOffset() == other.hasOffset()); if (hasOffset()) { result = result && (getOffset() == other.getOffset()); result = result && (hasPackedSize() == other.hasPackedSize()); if (hasPackedSize()) { result = result && (getPackedSize() == other.getPackedSize()); result = result && (hasInflatedSize() == other.hasInflatedSize()); if (hasInflatedSize()) { result = result && (getInflatedSize() == other.getInflatedSize()); result = result && (hasDeltaBase() == other.hasDeltaBase()); if (hasDeltaBase()) { result = result && getDeltaBase() .equals(other.getDeltaBase()); result = result && (hasIsFragmented() == other.hasIsFragmented()); if (hasIsFragmented()) { result = result && (getIsFragmented() == other.getIsFragmented());
chunk.safePut(db, dbBuffer()); GitStore.ObjectInfo.Builder b = GitStore.ObjectInfo.newBuilder(); b.setObjectType(ObjectType.valueOf(type)); b.setOffset(position); GitStore.ObjectInfo.Builder b = GitStore.ObjectInfo.newBuilder(); b.setObjectType(ObjectType.valueOf(type)); b.setOffset(position);
@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.CachedObjectIndex.Item)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item other = (org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item) obj; boolean result = true; result = result && (hasChunkKey() == other.hasChunkKey()); if (hasChunkKey()) { result = result && getChunkKey() .equals(other.getChunkKey()); } result = result && (hasObjectInfo() == other.hasObjectInfo()); if (hasObjectInfo()) { result = result && getObjectInfo() .equals(other.getObjectInfo()); } result = result && (hasTime() == other.hasTime()); if (hasTime()) { result = result && (getTime() == other.getTime()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
chunk.safePut(db, dbBuffer()); GitStore.ObjectInfo.Builder b = GitStore.ObjectInfo.newBuilder(); b.setObjectType(ObjectType.valueOf(type)); b.setOffset(position); GitStore.ObjectInfo.Builder b = GitStore.ObjectInfo.newBuilder(); b.setObjectType(ObjectType.valueOf(type)); b.setOffset(position);
org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.newBuilder(); if (hasObjectInfo()) { subBuilder.mergeFrom(getObjectInfo());
org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.newBuilder(); if (hasObjectInfo()) { subBuilder.mergeFrom(getObjectInfo());
public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo buildPartial() { org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
result = result && (hasObjectType() == other.hasObjectType()); if (hasObjectType()) { result = result && (getObjectType() == other.getObjectType()); result = result && (hasOffset() == other.hasOffset()); if (hasOffset()) { result = result && (getOffset() == other.getOffset()); result = result && (hasPackedSize() == other.hasPackedSize()); if (hasPackedSize()) { result = result && (getPackedSize() == other.getPackedSize()); result = result && (hasInflatedSize() == other.hasInflatedSize()); if (hasInflatedSize()) { result = result && (getInflatedSize() == other.getInflatedSize()); result = result && (hasDeltaBase() == other.hasDeltaBase()); if (hasDeltaBase()) { result = result && getDeltaBase() .equals(other.getDeltaBase()); result = result && (hasIsFragmented() == other.hasIsFragmented()); if (hasIsFragmented()) { result = result && (getIsFragmented() == other.getIsFragmented());
public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo buildPartial() { org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasObjectType()) { hash = (37 * hash) + OBJECT_TYPE_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getObjectType()); if (hasOffset()) { hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); if (hasPackedSize()) { hash = (37 * hash) + PACKED_SIZE_FIELD_NUMBER; hash = (53 * hash) + hashLong(getPackedSize()); if (hasInflatedSize()) { hash = (37 * hash) + INFLATED_SIZE_FIELD_NUMBER; hash = (53 * hash) + hashLong(getInflatedSize()); if (hasDeltaBase()) { hash = (37 * hash) + DELTA_BASE_FIELD_NUMBER; hash = (53 * hash) + getDeltaBase().hashCode(); if (hasIsFragmented()) { hash = (37 * hash) + IS_FRAGMENTED_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getIsFragmented()); hash = (29 * hash) + getUnknownFields().hashCode(); return hash;
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasObjectType()) { hash = (37 * hash) + OBJECT_TYPE_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getObjectType()); if (hasOffset()) { hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); if (hasPackedSize()) { hash = (37 * hash) + PACKED_SIZE_FIELD_NUMBER; hash = (53 * hash) + hashLong(getPackedSize()); if (hasInflatedSize()) { hash = (37 * hash) + INFLATED_SIZE_FIELD_NUMBER; hash = (53 * hash) + hashLong(getInflatedSize()); if (hasDeltaBase()) { hash = (37 * hash) + DELTA_BASE_FIELD_NUMBER; hash = (53 * hash) + getDeltaBase().hashCode(); if (hasIsFragmented()) { hash = (37 * hash) + IS_FRAGMENTED_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getIsFragmented()); 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.CachedObjectIndex.Item)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item other = (org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item) obj; boolean result = true; result = result && (hasChunkKey() == other.hasChunkKey()); if (hasChunkKey()) { result = result && getChunkKey() .equals(other.getChunkKey()); } result = result && (hasObjectInfo() == other.hasObjectInfo()); if (hasObjectInfo()) { result = result && getObjectInfo() .equals(other.getObjectInfo()); } result = result && (hasTime() == other.hasTime()); if (hasTime()) { result = result && (getTime() == other.getTime()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeObjectInfo(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo value) { if (objectInfoBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && objectInfo_ != org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.getDefaultInstance()) { objectInfo_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.newBuilder(objectInfo_).mergeFrom(value).buildPartial(); } else { objectInfo_ = value; } onChanged(); } else { objectInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } public Builder clearObjectInfo() {
public Builder mergeObjectInfo(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo value) { if (objectInfoBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && objectInfo_ != org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.getDefaultInstance()) { objectInfo_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.newBuilder(objectInfo_).mergeFrom(value).buildPartial(); } else { objectInfo_ = value; } onChanged(); } else { objectInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } public Builder clearObjectInfo() {
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.getDefaultInstance()) return this; if (other.hasObjectType()) { setObjectType(other.getObjectType()); } if (other.hasOffset()) { setOffset(other.getOffset()); } if (other.hasPackedSize()) { setPackedSize(other.getPackedSize()); } if (other.hasInflatedSize()) { setInflatedSize(other.getInflatedSize()); } if (other.hasDeltaBase()) { setDeltaBase(other.getDeltaBase()); } if (other.hasIsFragmented()) { setIsFragmented(other.getIsFragmented()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.getDefaultInstance()) return this; if (other.hasObjectType()) { setObjectType(other.getObjectType()); } if (other.hasOffset()) { setOffset(other.getOffset()); } if (other.hasPackedSize()) { setPackedSize(other.getPackedSize()); } if (other.hasInflatedSize()) { setInflatedSize(other.getInflatedSize()); } if (other.hasDeltaBase()) { setDeltaBase(other.getDeltaBase()); } if (other.hasIsFragmented()) { setIsFragmented(other.getIsFragmented()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder toBuilder() { return newBuilder(this); }
ObjectInfo info(ChunkKey chunkKey) { GitStore.ObjectInfo.Builder b = GitStore.ObjectInfo.newBuilder(); b.setObjectType(GitStore.ObjectInfo.ObjectType.valueOf(getType())); b.setOffset(offsetOf(chunkPtr)); b.setPackedSize(packedSize); b.setInflatedSize(inflatedSize); if (base != null) { byte[] t = new byte[Constants.OBJECT_ID_LENGTH]; base.copyRawTo(t, 0); b.setDeltaBase(ByteString.copyFrom(t)); } if (isFragmented()) b.setIsFragmented(true); return new ObjectInfo(chunkKey, b.build()); } }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo prototype) {
long getPackedSize() { return data.getPackedSize(); }