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.v1p1beta1.StreamingRecognizeRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StreamingRecognizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public StreamingRecognizeRequest build()
buildPartial()
public StreamingRecognizeRequest buildPartial()
clear()
public StreamingRecognizeRequest.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public StreamingRecognizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public StreamingRecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
clearStreamingRequest()
public StreamingRecognizeRequest.Builder clearStreamingRequest()
clone()
public StreamingRecognizeRequest.Builder clone()
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;
getDefaultInstanceForType()
public StreamingRecognizeRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
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.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
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.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
getStreamingRequestCase()
public StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase()
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.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
Returns |
---|
Type | Description |
boolean | Whether the streamingConfig field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(StreamingRecognizeRequest other)
public StreamingRecognizeRequest.Builder mergeFrom(StreamingRecognizeRequest other)
public StreamingRecognizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public StreamingRecognizeRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StreamingRecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public StreamingRecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StreamingRecognizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
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.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
setUnknownFields(UnknownFieldSet unknownFields)
public final StreamingRecognizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides