public static final class StreamingRecognitionConfig.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
StreamingRecognitionConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
StreamingRecognitionConfig |
build() |
StreamingRecognitionConfig |
buildPartial() |
StreamingRecognitionConfig.Builder |
clear() |
StreamingRecognitionConfig.Builder |
clearConfig()
*Required* Provides information to the recognizer that specifies how to
process the request.
|
StreamingRecognitionConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
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).
|
StreamingRecognitionConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
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.
|
StreamingRecognitionConfig.Builder |
clone() |
RecognitionConfig |
getConfig()
*Required* Provides information to the recognizer that specifies how to
process the request.
|
RecognitionConfig.Builder |
getConfigBuilder()
*Required* Provides information to the recognizer that specifies how to
process the request.
|
RecognitionConfigOrBuilder |
getConfigOrBuilder()
*Required* Provides information to the recognizer that specifies how to
process the request.
|
StreamingRecognitionConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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).
|
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.
|
boolean |
hasConfig()
*Required* Provides information to the recognizer that specifies how to
process the request.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StreamingRecognitionConfig.Builder |
mergeConfig(RecognitionConfig value)
*Required* Provides information to the recognizer that specifies how to
process the request.
|
StreamingRecognitionConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StreamingRecognitionConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
StreamingRecognitionConfig.Builder |
mergeFrom(StreamingRecognitionConfig other) |
StreamingRecognitionConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StreamingRecognitionConfig.Builder |
setConfig(RecognitionConfig.Builder builderForValue)
*Required* Provides information to the recognizer that specifies how to
process the request.
|
StreamingRecognitionConfig.Builder |
setConfig(RecognitionConfig value)
*Required* Provides information to the recognizer that specifies how to
process the request.
|
StreamingRecognitionConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
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).
|
StreamingRecognitionConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
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.
|
StreamingRecognitionConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionConfig.Builder>public StreamingRecognitionConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionConfig.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.GeneratedMessageV3.Builder<StreamingRecognitionConfig.Builder>public StreamingRecognitionConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StreamingRecognitionConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognitionConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognitionConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionConfig.Builder>public StreamingRecognitionConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionConfig.Builder>public StreamingRecognitionConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionConfig.Builder>public StreamingRecognitionConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionConfig.Builder>public StreamingRecognitionConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionConfig.Builder>public StreamingRecognitionConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionConfig.Builder>public StreamingRecognitionConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingRecognitionConfig.Builder>public StreamingRecognitionConfig.Builder mergeFrom(StreamingRecognitionConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionConfig.Builder>public StreamingRecognitionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingRecognitionConfig.Builder>java.io.IOExceptionpublic boolean hasConfig()
*Required* Provides information to the recognizer that specifies how to process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;hasConfig in interface StreamingRecognitionConfigOrBuilderpublic RecognitionConfig getConfig()
*Required* Provides information to the recognizer that specifies how to process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;getConfig in interface StreamingRecognitionConfigOrBuilderpublic 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;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;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;public StreamingRecognitionConfig.Builder clearConfig()
*Required* Provides information to the recognizer that specifies how to process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;public RecognitionConfig.Builder getConfigBuilder()
*Required* Provides information to the recognizer that specifies how to process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;public RecognitionConfigOrBuilder getConfigOrBuilder()
*Required* Provides information to the recognizer that specifies how to process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;getConfigOrBuilder in interface StreamingRecognitionConfigOrBuilderpublic 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;getSingleUtterance in interface StreamingRecognitionConfigOrBuilderpublic 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;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;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;getInterimResults in interface StreamingRecognitionConfigOrBuilderpublic 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;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;public final StreamingRecognitionConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionConfig.Builder>public final StreamingRecognitionConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionConfig.Builder>