@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.Query)) { return super.equals(obj); } com.google.datastore.v1.Query other = (com.google.datastore.v1.Query) obj; boolean result = true; result = result && getProjectionList().equals(other.getProjectionList()); result = result && getKindList().equals(other.getKindList()); result = result && (hasFilter() == other.hasFilter()); if (hasFilter()) { result = result && getFilter().equals(other.getFilter()); } result = result && getOrderList().equals(other.getOrderList()); result = result && getDistinctOnList().equals(other.getDistinctOnList()); result = result && getStartCursor().equals(other.getStartCursor()); result = result && getEndCursor().equals(other.getEndCursor()); result = result && (getOffset() == other.getOffset()); result = result && (hasLimit() == other.hasLimit()); if (hasLimit()) { result = result && getLimit().equals(other.getLimit()); } result = result && unknownFields.equals(other.unknownFields); return result; }
if (getProjectionCount() > 0) { hash = (37 * hash) + PROJECTION_FIELD_NUMBER; hash = (53 * hash) + getProjectionList().hashCode();
addOrderBy(OrderBy.fromPb(orderByPb)); for (com.google.datastore.v1.Projection projectionPb : queryPb.getProjectionList()) { addProjection(projectionPb.getProperty().getName());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.Query)) { return super.equals(obj); } com.google.datastore.v1.Query other = (com.google.datastore.v1.Query) obj; boolean result = true; result = result && getProjectionList().equals(other.getProjectionList()); result = result && getKindList().equals(other.getKindList()); result = result && (hasFilter() == other.hasFilter()); if (hasFilter()) { result = result && getFilter().equals(other.getFilter()); } result = result && getOrderList().equals(other.getOrderList()); result = result && getDistinctOnList().equals(other.getDistinctOnList()); result = result && getStartCursor().equals(other.getStartCursor()); result = result && getEndCursor().equals(other.getEndCursor()); result = result && (getOffset() == other.getOffset()); result = result && (hasLimit() == other.hasLimit()); if (hasLimit()) { result = result && getLimit().equals(other.getLimit()); } result = result && unknownFields.equals(other.unknownFields); return result; }
if (getProjectionCount() > 0) { hash = (37 * hash) + PROJECTION_FIELD_NUMBER; hash = (53 * hash) + getProjectionList().hashCode();
if (getProjectionCount() > 0) { hash = (37 * hash) + PROJECTION_FIELD_NUMBER; hash = (53 * hash) + getProjectionList().hashCode();
result = result && getProjectionList() .equals(other.getProjectionList()); result = result && getKindList() .equals(other.getKindList());
addOrderBy(OrderBy.fromPb(orderByPb)); for (com.google.datastore.v1.Projection projectionPb : queryPb.getProjectionList()) { addProjection(projectionPb.getProperty().getName());