@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageContext)) { return super.equals(obj); } com.google.cloud.vision.v1.ImageContext other = (com.google.cloud.vision.v1.ImageContext) obj; boolean result = true; result = result && (hasLatLongRect() == other.hasLatLongRect()); if (hasLatLongRect()) { result = result && getLatLongRect().equals(other.getLatLongRect()); } result = result && getLanguageHintsList().equals(other.getLanguageHintsList()); result = result && (hasCropHintsParams() == other.hasCropHintsParams()); if (hasCropHintsParams()) { result = result && getCropHintsParams().equals(other.getCropHintsParams()); } result = result && (hasProductSearchParams() == other.hasProductSearchParams()); if (hasProductSearchParams()) { result = result && getProductSearchParams().equals(other.getProductSearchParams()); } result = result && (hasWebDetectionParams() == other.hasWebDetectionParams()); if (hasWebDetectionParams()) { result = result && getWebDetectionParams().equals(other.getWebDetectionParams()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageContext)) { return super.equals(obj); } com.google.cloud.vision.v1.ImageContext other = (com.google.cloud.vision.v1.ImageContext) obj; boolean result = true; result = result && (hasLatLongRect() == other.hasLatLongRect()); if (hasLatLongRect()) { result = result && getLatLongRect().equals(other.getLatLongRect()); } result = result && getLanguageHintsList().equals(other.getLanguageHintsList()); result = result && (hasCropHintsParams() == other.hasCropHintsParams()); if (hasCropHintsParams()) { result = result && getCropHintsParams().equals(other.getCropHintsParams()); } result = result && (hasProductSearchParams() == other.hasProductSearchParams()); if (hasProductSearchParams()) { result = result && getProductSearchParams().equals(other.getProductSearchParams()); } result = result && (hasWebDetectionParams() == other.hasWebDetectionParams()); if (hasWebDetectionParams()) { result = result && getWebDetectionParams().equals(other.getWebDetectionParams()); } result = result && unknownFields.equals(other.unknownFields); return result; }