@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1beta1.FaceAnnotation)) { return super.equals(obj); } com.google.cloud.videointelligence.v1beta1.FaceAnnotation other = (com.google.cloud.videointelligence.v1beta1.FaceAnnotation) obj; boolean result = true; result = result && getThumbnail().equals(other.getThumbnail()); result = result && getSegmentsList().equals(other.getSegmentsList()); result = result && getLocationsList().equals(other.getLocationsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * Thumbnail of a representative face view (in JPEG format). Encoding: base64. * </pre> * * <code>string thumbnail = 1;</code> */ public Builder clearThumbnail() { thumbnail_ = getDefaultInstance().getThumbnail(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + THUMBNAIL_FIELD_NUMBER; hash = (53 * hash) + getThumbnail().hashCode(); if (getSegmentsCount() > 0) { hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; hash = (53 * hash) + getSegmentsList().hashCode(); } if (getLocationsCount() > 0) { hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; hash = (53 * hash) + getLocationsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.FaceAnnotation other) { if (other == com.google.cloud.videointelligence.v1beta1.FaceAnnotation.getDefaultInstance()) return this; if (!other.getThumbnail().isEmpty()) { thumbnail_ = other.thumbnail_; onChanged();