@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSequence()) { hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + getSequence(); } if (hasSymref()) { hash = (37 * hash) + SYMREF_FIELD_NUMBER; hash = (53 * hash) + getSymref().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } if (hasIsPeeled()) { hash = (37 * hash) + IS_PEELED_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getIsPeeled()); } if (hasPeeled()) { hash = (37 * hash) + PEELED_FIELD_NUMBER; hash = (53 * hash) + getPeeled().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSequence()) { hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + getSequence(); } if (hasSymref()) { hash = (37 * hash) + SYMREF_FIELD_NUMBER; hash = (53 * hash) + getSymref().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } if (hasIsPeeled()) { hash = (37 * hash) + IS_PEELED_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getIsPeeled()); } if (hasPeeled()) { hash = (37 * hash) + PEELED_FIELD_NUMBER; hash = (53 * hash) + getPeeled().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasSequence()) { memoizedIsInitialized = 0; return false; } if (hasTarget()) { if (!getTarget().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasPeeled()) { if (!getPeeled().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasSequence()) { memoizedIsInitialized = 0; return false; } if (hasTarget()) { if (!getTarget().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasPeeled()) { if (!getPeeled().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.getDefaultInstance()) return this; if (other.hasSequence()) { setSequence(other.getSequence()); } if (other.hasSymref()) { setSymref(other.getSymref()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.hasIsPeeled()) { setIsPeeled(other.getIsPeeled()); } if (other.hasPeeled()) { mergePeeled(other.getPeeled()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.getDefaultInstance()) return this; if (other.hasSequence()) { setSequence(other.getSequence()); } if (other.hasSymref()) { setSymref(other.getSymref()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.hasIsPeeled()) { setIsPeeled(other.getIsPeeled()); } if (other.hasPeeled()) { mergePeeled(other.getPeeled()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
DhtObjectIdRef(String name, RefData data) { this.name = name; this.data = data; this.objectId = data.hasTarget() ? idFrom(data.getTarget()) : null; this.peeledId = data.hasPeeled() ? idFrom(data.getPeeled()) : null; }
DhtObjectIdRef(String name, RefData data) { this.name = name; this.data = data; this.objectId = data.hasTarget() ? idFrom(data.getTarget()) : null; this.peeledId = data.hasPeeled() ? idFrom(data.getPeeled()) : null; }