@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1beta1.FaceLocation)) { return super.equals(obj); } com.google.cloud.videointelligence.v1beta1.FaceLocation other = (com.google.cloud.videointelligence.v1beta1.FaceLocation) obj; boolean result = true; result = result && (hasBoundingBox() == other.hasBoundingBox()); if (hasBoundingBox()) { result = result && getBoundingBox().equals(other.getBoundingBox()); } result = result && (getTimeOffset() == other.getTimeOffset()); 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 (hasBoundingBox()) { hash = (37 * hash) + BOUNDING_BOX_FIELD_NUMBER; hash = (53 * hash) + getBoundingBox().hashCode(); } hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimeOffset()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.FaceLocation other) { if (other == com.google.cloud.videointelligence.v1beta1.FaceLocation.getDefaultInstance()) return this; if (other.hasBoundingBox()) { mergeBoundingBox(other.getBoundingBox()); } if (other.getTimeOffset() != 0L) { setTimeOffset(other.getTimeOffset()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }