@java.lang.Override public com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultInstanceForType() { return com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance(); }
/** * * * <pre> * Provides information to the recognizer that specifies how to process the * request. The first `StreamingRecognizeRequest` message must contain a * `streaming_config` message. * </pre> * * <code>.google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;</code> */ public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig() { if (streamingRequestCase_ == 1) { return (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_; } return com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance(); } /**
/** * * * <pre> * Provides information to the recognizer that specifies how to process the * request. The first `StreamingRecognizeRequest` message must contain a * `streaming_config` message. * </pre> * * <code>.google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;</code> */ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() { if (streamingRequestCase_ == 1) { return (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_; } return com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance(); }
/** * * * <pre> * Provides information to the recognizer that specifies how to process the * request. The first `StreamingRecognizeRequest` message must contain a * `streaming_config` message. * </pre> * * <code>.google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;</code> */ public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig() { if (streamingConfigBuilder_ == null) { if (streamingRequestCase_ == 1) { return (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_; } return com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance(); } else { if (streamingRequestCase_ == 1) { return streamingConfigBuilder_.getMessage(); } return com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance(); } } /**
/** * * * <pre> * Provides information to the recognizer that specifies how to process the * request. The first `StreamingRecognizeRequest` message must contain a * `streaming_config` message. * </pre> * * <code>.google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;</code> */ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() { if ((streamingRequestCase_ == 1) && (streamingConfigBuilder_ != null)) { return streamingConfigBuilder_.getMessageOrBuilder(); } else { if (streamingRequestCase_ == 1) { return (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_; } return com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance(); } } /**
if (!(streamingRequestCase_ == 1)) { streamingRequest_ = com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance();
if (streamingRequestCase_ == 1 && streamingRequest_ != com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance()) { streamingRequest_ = com.google.cloud.speech.v1.StreamingRecognitionConfig.newBuilder(
public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognitionConfig other) { if (other == com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance()) return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } if (other.getSingleUtterance() != false) { setSingleUtterance(other.getSingleUtterance()); } if (other.getInterimResults() != false) { setInterimResults(other.getInterimResults()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }