@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasObjectName()) { hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; hash = (53 * hash) + getObjectName().hashCode(); } if (hasChunkKey()) { hash = (37 * hash) + CHUNK_KEY_FIELD_NUMBER; hash = (53 * hash) + getChunkKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasObjectName()) { hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; hash = (53 * hash) + getObjectName().hashCode(); } if (hasChunkKey()) { hash = (37 * hash) + CHUNK_KEY_FIELD_NUMBER; hash = (53 * hash) + getChunkKey().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.GitStore.RefData.Id)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id) obj; boolean result = true; result = result && (hasObjectName() == other.hasObjectName()); if (hasObjectName()) { result = result && getObjectName() .equals(other.getObjectName()); } 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.RefData.Id)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id) obj; boolean result = true; result = result && (hasObjectName() == other.hasObjectName()); if (hasObjectName()) { result = result && getObjectName() .equals(other.getObjectName()); } result = result && (hasChunkKey() == other.hasChunkKey()); if (hasChunkKey()) { result = result && getChunkKey() .equals(other.getChunkKey()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
private static ObjectId idFrom(RefData.Id src) { ObjectId id = ObjectId.fromString(src.getObjectName()); if (!src.hasChunkKey()) return id; return new IdWithChunk(id, ChunkKey.fromString(src.getChunkKey())); }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance()) return this; if (other.hasObjectName()) { setObjectName(other.getObjectName()); } if (other.hasChunkKey()) { setChunkKey(other.getChunkKey()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private static ObjectId idFrom(RefData.Id src) { ObjectId id = ObjectId.fromString(src.getObjectName()); if (!src.hasChunkKey()) return id; return new IdWithChunk(id, ChunkKey.fromString(src.getChunkKey())); }
public Builder clearObjectName() { bitField0_ = (bitField0_ & ~0x00000001); objectName_ = getDefaultInstance().getObjectName(); onChanged(); return this; } void setObjectName(com.google.protobuf.ByteString value) {
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance()) return this; if (other.hasObjectName()) { setObjectName(other.getObjectName()); } if (other.hasChunkKey()) { setChunkKey(other.getChunkKey()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder clearObjectName() { bitField0_ = (bitField0_ & ~0x00000001); objectName_ = getDefaultInstance().getObjectName(); onChanged(); return this; } void setObjectName(com.google.protobuf.ByteString value) {