Package com.google.cloud.speech.v1
Interface StreamingRecognizeRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
StreamingRecognizeRequest,StreamingRecognizeRequest.Builder
@Generated
public interface StreamingRecognizeRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteStringThe audio data to be recognized.Provides information to the recognizer that specifies how to process the request.Provides information to the recognizer that specifies how to process the request.booleanThe audio data to be recognized.booleanProvides information to the recognizer that specifies how to process the request.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasStreamingConfig
boolean hasStreamingConfig()Provides information to the recognizer that specifies how to process the request. The first `StreamingRecognizeRequest` message must contain a `streaming_config` message.
.google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;- Returns:
- Whether the streamingConfig field is set.
-
getStreamingConfig
StreamingRecognitionConfig getStreamingConfig()Provides information to the recognizer that specifies how to process the request. The first `StreamingRecognizeRequest` message must contain a `streaming_config` message.
.google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;- Returns:
- The streamingConfig.
-
getStreamingConfigOrBuilder
StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder()Provides information to the recognizer that specifies how to process the request. The first `StreamingRecognizeRequest` message must contain a `streaming_config` message.
.google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; -
hasAudioContent
boolean hasAudioContent()The audio data to be recognized. Sequential chunks of audio data are sent in sequential `StreamingRecognizeRequest` messages. The first `StreamingRecognizeRequest` message must not contain `audio_content` data and all subsequent `StreamingRecognizeRequest` messages must contain `audio_content` data. The audio bytes must be encoded as specified in `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a pure binary representation (not base64). See [content limits](https://cloud.google.com/speech-to-text/quotas#content).
bytes audio_content = 2;- Returns:
- Whether the audioContent field is set.
-
getAudioContent
com.google.protobuf.ByteString getAudioContent()The audio data to be recognized. Sequential chunks of audio data are sent in sequential `StreamingRecognizeRequest` messages. The first `StreamingRecognizeRequest` message must not contain `audio_content` data and all subsequent `StreamingRecognizeRequest` messages must contain `audio_content` data. The audio bytes must be encoded as specified in `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a pure binary representation (not base64). See [content limits](https://cloud.google.com/speech-to-text/quotas#content).
bytes audio_content = 2;- Returns:
- The audioContent.
-
getStreamingRequestCase
StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase()
-