@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1beta1.LabelLocation)) { return super.equals(obj); } com.google.cloud.videointelligence.v1beta1.LabelLocation other = (com.google.cloud.videointelligence.v1beta1.LabelLocation) obj; boolean result = true; result = result && (hasSegment() == other.hasSegment()); if (hasSegment()) { result = result && getSegment().equals(other.getSegment()); } result = result && (java.lang.Float.floatToIntBits(getConfidence()) == java.lang.Float.floatToIntBits(other.getConfidence())); result = result && level_ == other.level_; 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 (hasSegment()) { hash = (37 * hash) + SEGMENT_FIELD_NUMBER; hash = (53 * hash) + getSegment().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (37 * hash) + LEVEL_FIELD_NUMBER; hash = (53 * hash) + level_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.LabelLocation other) { if (other == com.google.cloud.videointelligence.v1beta1.LabelLocation.getDefaultInstance()) return this; if (other.hasSegment()) { mergeSegment(other.getSegment()); } if (other.getConfidence() != 0F) { setConfidence(other.getConfidence()); } if (other.level_ != 0) { setLevelValue(other.getLevelValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }