@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (streamingRequestCase_) { case 1: hash = (37 * hash) + STREAMING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getStreamingConfig().hashCode(); break; case 2: hash = (37 * hash) + AUDIO_CONTENT_FIELD_NUMBER; hash = (53 * hash) + getAudioContent().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.StreamingRecognizeRequest)) { return super.equals(obj); } com.google.cloud.speech.v1.StreamingRecognizeRequest other = (com.google.cloud.speech.v1.StreamingRecognizeRequest) obj; boolean result = true; result = result && getStreamingRequestCase().equals(other.getStreamingRequestCase()); if (!result) return false; switch (streamingRequestCase_) { case 1: result = result && getStreamingConfig().equals(other.getStreamingConfig()); break; case 2: result = result && getAudioContent().equals(other.getAudioContent()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeRequest other) { if (other == com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance()) return this; switch (other.getStreamingRequestCase()) { case STREAMING_CONFIG: { mergeStreamingConfig(other.getStreamingConfig()); break; } case AUDIO_CONTENT: { setAudioContent(other.getAudioContent()); break; } case STREAMINGREQUEST_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }