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
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 StreamingRecognitionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public StreamingRecognitionConfig build()
buildPartial()
public StreamingRecognitionConfig buildPartial()
clear()
public StreamingRecognitionConfig.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public StreamingRecognitionConfig.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public StreamingRecognitionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public StreamingRecognitionConfig.Builder clone()
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;
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;
getConfigOrBuilder()
public RecognitionConfigOrBuilder getConfigOrBuilder()
Required Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;
getDefaultInstanceForType()
public StreamingRecognitionConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
hasConfig()
public boolean hasConfig()
Required Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(StreamingRecognitionConfig other)
public StreamingRecognitionConfig.Builder mergeFrom(StreamingRecognitionConfig other)
public StreamingRecognitionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public StreamingRecognitionConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StreamingRecognitionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public StreamingRecognitionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
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 |
---|
Name | Description |
value | boolean
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StreamingRecognitionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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 |
---|
Name | Description |
value | boolean
|
setUnknownFields(UnknownFieldSet unknownFields)
public final StreamingRecognitionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides