@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.LookupResponse)) { return super.equals(obj); } com.google.datastore.v1.LookupResponse other = (com.google.datastore.v1.LookupResponse) obj; boolean result = true; result = result && getFoundList().equals(other.getFoundList()); result = result && getMissingList().equals(other.getMissingList()); result = result && getDeferredList().equals(other.getDeferredList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getFoundCount() > 0) { hash = (37 * hash) + FOUND_FIELD_NUMBER; hash = (53 * hash) + getFoundList().hashCode(); } if (getMissingCount() > 0) { hash = (37 * hash) + MISSING_FIELD_NUMBER; hash = (53 * hash) + getMissingList().hashCode(); } if (getDeferredCount() > 0) { hash = (37 * hash) + DEFERRED_FIELD_NUMBER; hash = (53 * hash) + getDeferredList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
private void loadResults() { com.google.datastore.v1.LookupResponse responsePb = lookup(requestPb.build()); iter = responsePb.getFoundList().iterator(); requestPb.clearKeys(); if (responsePb.getDeferredCount() > 0) { requestPb.addAllKeys(responsePb.getDeferredList()); } }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.LookupResponse)) { return super.equals(obj); } com.google.datastore.v1.LookupResponse other = (com.google.datastore.v1.LookupResponse) obj; boolean result = true; result = result && getFoundList().equals(other.getFoundList()); result = result && getMissingList().equals(other.getMissingList()); result = result && getDeferredList().equals(other.getDeferredList()); result = result && unknownFields.equals(other.unknownFields); return result; }
static QueryResult build(final com.google.datastore.v1.LookupResponse response) { return new QueryResult(ImmutableList.copyOf( response.getFoundList().stream() .map(entity -> Entity.builder(entity.getEntity()).build()) .collect(Collectors.toList()))); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.LookupResponse)) { return super.equals(obj); } com.google.datastore.v1.LookupResponse other = (com.google.datastore.v1.LookupResponse) obj; boolean result = true; result = result && getFoundList() .equals(other.getFoundList()); result = result && getMissingList() .equals(other.getMissingList()); result = result && getDeferredList() .equals(other.getDeferredList()); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getFoundCount() > 0) { hash = (37 * hash) + FOUND_FIELD_NUMBER; hash = (53 * hash) + getFoundList().hashCode(); } if (getMissingCount() > 0) { hash = (37 * hash) + MISSING_FIELD_NUMBER; hash = (53 * hash) + getMissingList().hashCode(); } if (getDeferredCount() > 0) { hash = (37 * hash) + DEFERRED_FIELD_NUMBER; hash = (53 * hash) + getDeferredList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getFoundCount() > 0) { hash = (37 * hash) + FOUND_FIELD_NUMBER; hash = (53 * hash) + getFoundList().hashCode(); } if (getMissingCount() > 0) { hash = (37 * hash) + MISSING_FIELD_NUMBER; hash = (53 * hash) + getMissingList().hashCode(); } if (getDeferredCount() > 0) { hash = (37 * hash) + DEFERRED_FIELD_NUMBER; hash = (53 * hash) + getDeferredList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
private void loadResults() { com.google.datastore.v1.LookupResponse responsePb = lookup(requestPb.build()); iter = responsePb.getFoundList().iterator(); requestPb.clearKeys(); if (responsePb.getDeferredCount() > 0) { requestPb.addAllKeys(responsePb.getDeferredList()); } }