public static final class StreamingRecognizeRequest.Builder extends GeneratedMessageV3.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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StreamingRecognizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public StreamingRecognizeRequest build()
Returns
buildPartial()
public StreamingRecognizeRequest buildPartial()
Returns
clear()
public StreamingRecognizeRequest.Builder clear()
Returns
Overrides
clearAudioContent()
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.
bytes audio_content = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public StreamingRecognizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public StreamingRecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearStreamingConfig()
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;
Returns
clearStreamingRequest()
public StreamingRecognizeRequest.Builder clearStreamingRequest()
Returns
clone()
public StreamingRecognizeRequest.Builder clone()
Returns
Overrides
getAudioContent()
public 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.
bytes audio_content = 2;
Returns
getDefaultInstanceForType()
public StreamingRecognizeRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getStreamingConfig()
public 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
getStreamingConfigBuilder()
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;
Returns
getStreamingConfigOrBuilder()
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;
Returns
getStreamingRequestCase()
public StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase()
Returns
hasAudioContent()
public 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.
bytes audio_content = 2;
Returns
Type | Description |
boolean | Whether the audioContent field is set.
|
hasStreamingConfig()
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;
Returns
Type | Description |
boolean | Whether the streamingConfig field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(StreamingRecognizeRequest other)
public StreamingRecognizeRequest.Builder mergeFrom(StreamingRecognizeRequest other)
Parameter
Returns
public StreamingRecognizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public StreamingRecognizeRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeStreamingConfig(StreamingRecognitionConfig value)
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StreamingRecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAudioContent(ByteString value)
public StreamingRecognizeRequest.Builder setAudioContent(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.
bytes audio_content = 2;
Parameter
Name | Description |
value | ByteString
The audioContent to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public StreamingRecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StreamingRecognizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setStreamingConfig(StreamingRecognitionConfig value)
public 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;
Parameter
Returns
setStreamingConfig(StreamingRecognitionConfig.Builder builderForValue)
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;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final StreamingRecognizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides