public static final class StreamingRecognitionConfig.Builder extends GeneratedMessageV3.Builder<StreamingRecognitionConfig.Builder> implements StreamingRecognitionConfigOrBuilder
Provides information to the recognizer that specifies how to process the
request.
Protobuf type google.cloud.speech.v1beta1.StreamingRecognitionConfig
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StreamingRecognitionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public StreamingRecognitionConfig build()
Returns
buildPartial()
public StreamingRecognitionConfig buildPartial()
Returns
clear()
public StreamingRecognitionConfig.Builder clear()
Returns
Overrides
clearConfig()
public StreamingRecognitionConfig.Builder clearConfig()
Required Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public StreamingRecognitionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearInterimResults()
public StreamingRecognitionConfig.Builder clearInterimResults()
Optional If true
, interim results (tentative hypotheses) may be
returned as they become available (these interim results are indicated with
the is_final=false
flag).
If false
or omitted, only is_final=true
result(s) are returned.
bool interim_results = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public StreamingRecognitionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSingleUtterance()
public StreamingRecognitionConfig.Builder clearSingleUtterance()
Optional If false
or omitted, the recognizer will perform continuous
recognition (continuing to wait for and process audio even if the user
pauses speaking) until the client closes the input stream (gRPC API) or
until the maximum time limit has been reached. May return multiple
StreamingRecognitionResult
s with the is_final
flag set to true
.
If true
, the recognizer will detect a single spoken utterance. When it
detects that the user has paused or stopped speaking, it will return an
END_OF_UTTERANCE
event and cease recognition. It will return no more than
one StreamingRecognitionResult
with the is_final
flag set to true
.
bool single_utterance = 2;
Returns
clone()
public StreamingRecognitionConfig.Builder clone()
Returns
Overrides
getConfig()
public RecognitionConfig getConfig()
Required Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;
Returns
getConfigBuilder()
public RecognitionConfig.Builder getConfigBuilder()
Required Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;
Returns
getConfigOrBuilder()
public RecognitionConfigOrBuilder getConfigOrBuilder()
Required Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;
Returns
getDefaultInstanceForType()
public StreamingRecognitionConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getInterimResults()
public boolean getInterimResults()
Optional If true
, interim results (tentative hypotheses) may be
returned as they become available (these interim results are indicated with
the is_final=false
flag).
If false
or omitted, only is_final=true
result(s) are returned.
bool interim_results = 3;
Returns
getSingleUtterance()
public boolean getSingleUtterance()
Optional If false
or omitted, the recognizer will perform continuous
recognition (continuing to wait for and process audio even if the user
pauses speaking) until the client closes the input stream (gRPC API) or
until the maximum time limit has been reached. May return multiple
StreamingRecognitionResult
s with the is_final
flag set to true
.
If true
, the recognizer will detect a single spoken utterance. When it
detects that the user has paused or stopped speaking, it will return an
END_OF_UTTERANCE
event and cease recognition. It will return no more than
one StreamingRecognitionResult
with the is_final
flag set to true
.
bool single_utterance = 2;
Returns
hasConfig()
public boolean hasConfig()
Required Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeConfig(RecognitionConfig value)
public StreamingRecognitionConfig.Builder mergeConfig(RecognitionConfig value)
Required Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;
Parameter
Returns
mergeFrom(StreamingRecognitionConfig other)
public StreamingRecognitionConfig.Builder mergeFrom(StreamingRecognitionConfig other)
Parameter
Returns
public StreamingRecognitionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public StreamingRecognitionConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StreamingRecognitionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setConfig(RecognitionConfig value)
public StreamingRecognitionConfig.Builder setConfig(RecognitionConfig value)
Required Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;
Parameter
Returns
setConfig(RecognitionConfig.Builder builderForValue)
public StreamingRecognitionConfig.Builder setConfig(RecognitionConfig.Builder builderForValue)
Required Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public StreamingRecognitionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setInterimResults(boolean value)
public StreamingRecognitionConfig.Builder setInterimResults(boolean value)
Optional If true
, interim results (tentative hypotheses) may be
returned as they become available (these interim results are indicated with
the is_final=false
flag).
If false
or omitted, only is_final=true
result(s) are returned.
bool interim_results = 3;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StreamingRecognitionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSingleUtterance(boolean value)
public StreamingRecognitionConfig.Builder setSingleUtterance(boolean value)
Optional If false
or omitted, the recognizer will perform continuous
recognition (continuing to wait for and process audio even if the user
pauses speaking) until the client closes the input stream (gRPC API) or
until the maximum time limit has been reached. May return multiple
StreamingRecognitionResult
s with the is_final
flag set to true
.
If true
, the recognizer will detect a single spoken utterance. When it
detects that the user has paused or stopped speaking, it will return an
END_OF_UTTERANCE
event and cease recognition. It will return no more than
one StreamingRecognitionResult
with the is_final
flag set to true
.
bool single_utterance = 2;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final StreamingRecognitionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides