@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.Block)) { return super.equals(obj); } com.google.cloud.vision.v1.Block other = (com.google.cloud.vision.v1.Block) obj; boolean result = true; result = result && (hasProperty() == other.hasProperty()); if (hasProperty()) { result = result && getProperty().equals(other.getProperty()); } result = result && (hasBoundingBox() == other.hasBoundingBox()); if (hasBoundingBox()) { result = result && getBoundingBox().equals(other.getBoundingBox()); } result = result && getParagraphsList().equals(other.getParagraphsList()); result = result && blockType_ == other.blockType_; result = result && (java.lang.Float.floatToIntBits(getConfidence()) == java.lang.Float.floatToIntBits(other.getConfidence())); 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 (hasProperty()) { hash = (37 * hash) + PROPERTY_FIELD_NUMBER; hash = (53 * hash) + getProperty().hashCode(); } if (hasBoundingBox()) { hash = (37 * hash) + BOUNDING_BOX_FIELD_NUMBER; hash = (53 * hash) + getBoundingBox().hashCode(); } if (getParagraphsCount() > 0) { hash = (37 * hash) + PARAGRAPHS_FIELD_NUMBER; hash = (53 * hash) + getParagraphsList().hashCode(); } hash = (37 * hash) + BLOCK_TYPE_FIELD_NUMBER; hash = (53 * hash) + blockType_; hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
for (Block block : page.getBlocksList()) { String blockText = ""; for (Paragraph para : block.getParagraphsList()) { String paraText = ""; for (Word word: para.getWordsList()) {
for (Block block : page.getBlocksList()) { String blockText = ""; for (Paragraph para : block.getParagraphsList()) { String paraText = ""; for (Word word: para.getWordsList()) {
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasProperty()) { hash = (37 * hash) + PROPERTY_FIELD_NUMBER; hash = (53 * hash) + getProperty().hashCode(); } if (hasBoundingBox()) { hash = (37 * hash) + BOUNDING_BOX_FIELD_NUMBER; hash = (53 * hash) + getBoundingBox().hashCode(); } if (getParagraphsCount() > 0) { hash = (37 * hash) + PARAGRAPHS_FIELD_NUMBER; hash = (53 * hash) + getParagraphsList().hashCode(); } hash = (37 * hash) + BLOCK_TYPE_FIELD_NUMBER; hash = (53 * hash) + blockType_; hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); 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.Block)) { return super.equals(obj); } com.google.cloud.vision.v1.Block other = (com.google.cloud.vision.v1.Block) obj; boolean result = true; result = result && (hasProperty() == other.hasProperty()); if (hasProperty()) { result = result && getProperty().equals(other.getProperty()); } result = result && (hasBoundingBox() == other.hasBoundingBox()); if (hasBoundingBox()) { result = result && getBoundingBox().equals(other.getBoundingBox()); } result = result && getParagraphsList().equals(other.getParagraphsList()); result = result && blockType_ == other.blockType_; result = result && (java.lang.Float.floatToIntBits(getConfidence()) == java.lang.Float.floatToIntBits(other.getConfidence())); result = result && unknownFields.equals(other.unknownFields); return result; }