@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.speech.v1.WordInfo)) { return super.equals(obj); } com.google.cloud.speech.v1.WordInfo other = (com.google.cloud.speech.v1.WordInfo) obj; boolean result = true; result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && getStartTime().equals(other.getStartTime()); } result = result && (hasEndTime() == other.hasEndTime()); if (hasEndTime()) { result = result && getEndTime().equals(other.getEndTime()); } result = result && getWord().equals(other.getWord()); 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 (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasEndTime()) { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + WORD_FIELD_NUMBER; hash = (53 * hash) + getWord().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.speech.v1.WordInfo other) { if (other == com.google.cloud.speech.v1.WordInfo.getDefaultInstance()) return this; if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } if (!other.getWord().isEmpty()) { word_ = other.word_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }