@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSearchResults)) { return super.equals(obj); } com.google.cloud.vision.v1.ProductSearchResults other = (com.google.cloud.vision.v1.ProductSearchResults) obj; boolean result = true; result = result && (hasIndexTime() == other.hasIndexTime()); if (hasIndexTime()) { result = result && getIndexTime().equals(other.getIndexTime()); } result = result && getResultsList().equals(other.getResultsList()); result = result && getProductGroupedResultsList().equals(other.getProductGroupedResultsList()); 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 (hasIndexTime()) { hash = (37 * hash) + INDEX_TIME_FIELD_NUMBER; hash = (53 * hash) + getIndexTime().hashCode(); } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); } if (getProductGroupedResultsCount() > 0) { hash = (37 * hash) + PRODUCT_GROUPED_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getProductGroupedResultsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSearchResults)) { return super.equals(obj); } com.google.cloud.vision.v1.ProductSearchResults other = (com.google.cloud.vision.v1.ProductSearchResults) obj; boolean result = true; result = result && (hasIndexTime() == other.hasIndexTime()); if (hasIndexTime()) { result = result && getIndexTime().equals(other.getIndexTime()); } result = result && getResultsList().equals(other.getResultsList()); result = result && getProductGroupedResultsList().equals(other.getProductGroupedResultsList()); 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 (hasIndexTime()) { hash = (37 * hash) + INDEX_TIME_FIELD_NUMBER; hash = (53 * hash) + getIndexTime().hashCode(); } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); } if (getProductGroupedResultsCount() > 0) { hash = (37 * hash) + PRODUCT_GROUPED_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getProductGroupedResultsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }