public static final class StreamingRecognizeRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<StreamingRecognizeRequest.Builder> implements StreamingRecognizeRequestOrBuilder
The top-level message sent by the client for the `StreamingRecognize` method. Multiple `StreamingRecognizeRequest` messages are sent. The first message must contain a `streaming_config` message and must not contain `audio_content`. All subsequent messages must contain `audio_content` and must not contain a `streaming_config` message.Protobuf type
google.cloud.speech.v1.StreamingRecognizeRequest| Modifier and Type | Method and Description |
|---|---|
StreamingRecognizeRequest |
build() |
StreamingRecognizeRequest |
buildPartial() |
StreamingRecognizeRequest.Builder |
clear() |
StreamingRecognizeRequest.Builder |
clearAudioContent()
The audio data to be recognized.
|
StreamingRecognizeRequest.Builder |
clearStreamingConfig()
Provides information to the recognizer that specifies how to process the
request.
|
StreamingRecognizeRequest.Builder |
clearStreamingRequest() |
com.google.protobuf.ByteString |
getAudioContent()
The audio data to be recognized.
|
StreamingRecognizeRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
StreamingRecognitionConfig |
getStreamingConfig()
Provides information to the recognizer that specifies how to process the
request.
|
StreamingRecognitionConfig.Builder |
getStreamingConfigBuilder()
Provides information to the recognizer that specifies how to process the
request.
|
StreamingRecognitionConfigOrBuilder |
getStreamingConfigOrBuilder()
Provides information to the recognizer that specifies how to process the
request.
|
StreamingRecognizeRequest.StreamingRequestCase |
getStreamingRequestCase() |
boolean |
hasAudioContent()
The audio data to be recognized.
|
boolean |
hasStreamingConfig()
Provides information to the recognizer that specifies how to process the
request.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StreamingRecognizeRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StreamingRecognizeRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
StreamingRecognizeRequest.Builder |
mergeFrom(StreamingRecognizeRequest other) |
StreamingRecognizeRequest.Builder |
mergeStreamingConfig(StreamingRecognitionConfig value)
Provides information to the recognizer that specifies how to process the
request.
|
StreamingRecognizeRequest.Builder |
setAudioContent(com.google.protobuf.ByteString value)
The audio data to be recognized.
|
StreamingRecognizeRequest.Builder |
setStreamingConfig(StreamingRecognitionConfig.Builder builderForValue)
Provides information to the recognizer that specifies how to process the
request.
|
StreamingRecognizeRequest.Builder |
setStreamingConfig(StreamingRecognitionConfig value)
Provides information to the recognizer that specifies how to process the
request.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<StreamingRecognizeRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StreamingRecognizeRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognizeRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognizeRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest.Builder mergeFrom(StreamingRecognizeRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingRecognizeRequest.Builder>IOExceptionpublic StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase()
getStreamingRequestCase in interface StreamingRecognizeRequestOrBuilderpublic StreamingRecognizeRequest.Builder clearStreamingRequest()
public 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;hasStreamingConfig in interface StreamingRecognizeRequestOrBuilderpublic 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;getStreamingConfig in interface StreamingRecognizeRequestOrBuilderpublic StreamingRecognizeRequest.Builder setStreamingConfig(StreamingRecognitionConfig value)
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;public StreamingRecognizeRequest.Builder setStreamingConfig(StreamingRecognitionConfig.Builder builderForValue)
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;public StreamingRecognizeRequest.Builder mergeStreamingConfig(StreamingRecognitionConfig value)
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;public StreamingRecognizeRequest.Builder clearStreamingConfig()
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;public StreamingRecognitionConfig.Builder getStreamingConfigBuilder()
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;public 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;getStreamingConfigOrBuilder in interface StreamingRecognizeRequestOrBuilderpublic 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;hasAudioContent in interface StreamingRecognizeRequestOrBuilderpublic 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;getAudioContent in interface StreamingRecognizeRequestOrBuilderpublic StreamingRecognizeRequest.Builder setAudioContent(com.google.protobuf.ByteString value)
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;value - The audioContent to set.public StreamingRecognizeRequest.Builder clearAudioContent()
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;Copyright © 2026 Google LLC. All rights reserved.