@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (audioSourceCase_) { case 1: hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); break; case 2: hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionAudio)) { return super.equals(obj); } com.google.cloud.speech.v1.RecognitionAudio other = (com.google.cloud.speech.v1.RecognitionAudio) obj; boolean result = true; result = result && getAudioSourceCase().equals(other.getAudioSourceCase()); if (!result) return false; switch (audioSourceCase_) { case 1: result = result && getContent().equals(other.getContent()); break; case 2: result = result && getUri().equals(other.getUri()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionAudio other) { if (other == com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) return this; switch (other.getAudioSourceCase()) { case CONTENT: { setContent(other.getContent()); break; } case URI: { audioSourceCase_ = 2; audioSource_ = other.audioSource_; onChanged(); break; } case AUDIOSOURCE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }