@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1beta1.BoundingBox)) { return super.equals(obj); } com.google.cloud.videointelligence.v1beta1.BoundingBox other = (com.google.cloud.videointelligence.v1beta1.BoundingBox) obj; boolean result = true; result = result && (getLeft() == other.getLeft()); result = result && (getRight() == other.getRight()); result = result && (getBottom() == other.getBottom()); result = result && (getTop() == other.getTop()); 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(); hash = (37 * hash) + LEFT_FIELD_NUMBER; hash = (53 * hash) + getLeft(); hash = (37 * hash) + RIGHT_FIELD_NUMBER; hash = (53 * hash) + getRight(); hash = (37 * hash) + BOTTOM_FIELD_NUMBER; hash = (53 * hash) + getBottom(); hash = (37 * hash) + TOP_FIELD_NUMBER; hash = (53 * hash) + getTop(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.BoundingBox other) { if (other == com.google.cloud.videointelligence.v1beta1.BoundingBox.getDefaultInstance()) return this; if (other.getLeft() != 0) { setLeft(other.getLeft()); } if (other.getRight() != 0) { setRight(other.getRight()); } if (other.getBottom() != 0) { setBottom(other.getBottom()); } if (other.getTop() != 0) { setTop(other.getTop()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }