@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.LatLongRect)) { return super.equals(obj); } com.google.cloud.vision.v1.LatLongRect other = (com.google.cloud.vision.v1.LatLongRect) obj; boolean result = true; result = result && (hasMinLatLng() == other.hasMinLatLng()); if (hasMinLatLng()) { result = result && getMinLatLng().equals(other.getMinLatLng()); } result = result && (hasMaxLatLng() == other.hasMaxLatLng()); if (hasMaxLatLng()) { result = result && getMaxLatLng().equals(other.getMaxLatLng()); } 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 (hasMinLatLng()) { hash = (37 * hash) + MIN_LAT_LNG_FIELD_NUMBER; hash = (53 * hash) + getMinLatLng().hashCode(); } if (hasMaxLatLng()) { hash = (37 * hash) + MAX_LAT_LNG_FIELD_NUMBER; hash = (53 * hash) + getMaxLatLng().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.vision.v1.LatLongRect other) { if (other == com.google.cloud.vision.v1.LatLongRect.getDefaultInstance()) return this; if (other.hasMinLatLng()) { mergeMinLatLng(other.getMinLatLng()); } if (other.hasMaxLatLng()) { mergeMaxLatLng(other.getMaxLatLng()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.LatLongRect)) { return super.equals(obj); } com.google.cloud.vision.v1.LatLongRect other = (com.google.cloud.vision.v1.LatLongRect) obj; boolean result = true; result = result && (hasMinLatLng() == other.hasMinLatLng()); if (hasMinLatLng()) { result = result && getMinLatLng().equals(other.getMinLatLng()); } result = result && (hasMaxLatLng() == other.hasMaxLatLng()); if (hasMaxLatLng()) { result = result && getMaxLatLng().equals(other.getMaxLatLng()); } 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 (hasMinLatLng()) { hash = (37 * hash) + MIN_LAT_LNG_FIELD_NUMBER; hash = (53 * hash) + getMinLatLng().hashCode(); } if (hasMaxLatLng()) { hash = (37 * hash) + MAX_LAT_LNG_FIELD_NUMBER; hash = (53 * hash) + getMaxLatLng().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.vision.v1.LatLongRect other) { if (other == com.google.cloud.vision.v1.LatLongRect.getDefaultInstance()) return this; if (other.hasMinLatLng()) { mergeMinLatLng(other.getMinLatLng()); } if (other.hasMaxLatLng()) { mergeMaxLatLng(other.getMaxLatLng()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }