@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation)) { return super.equals(obj); } com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation other = (com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation) obj; boolean result = true; result = result && adult_ == other.adult_; result = result && spoof_ == other.spoof_; result = result && medical_ == other.medical_; result = result && violent_ == other.violent_; result = result && racy_ == other.racy_; 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(); hash = (37 * hash) + ADULT_FIELD_NUMBER; hash = (53 * hash) + adult_; hash = (37 * hash) + SPOOF_FIELD_NUMBER; hash = (53 * hash) + spoof_; hash = (37 * hash) + MEDICAL_FIELD_NUMBER; hash = (53 * hash) + medical_; hash = (37 * hash) + VIOLENT_FIELD_NUMBER; hash = (53 * hash) + violent_; hash = (37 * hash) + RACY_FIELD_NUMBER; hash = (53 * hash) + racy_; 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.SafeSearchAnnotation other) { if (other == com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.getDefaultInstance()) return this; if (other.adult_ != 0) { setAdultValue(other.getAdultValue()); } if (other.spoof_ != 0) { setSpoofValue(other.getSpoofValue()); } if (other.medical_ != 0) { setMedicalValue(other.getMedicalValue()); } if (other.violent_ != 0) { setViolentValue(other.getViolentValue()); } if (other.racy_ != 0) { setRacyValue(other.getRacyValue()); } if (other.getTimeOffset() != 0L) { setTimeOffset(other.getTimeOffset()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }