public final class StreamingRecognitionConfig extends GeneratedMessageV3 implements StreamingRecognitionConfigOrBuilder
Provides information to the recognizer that specifies how to process the request.Protobuf type
google.cloud.speech.v1p1beta1.StreamingRecognitionConfig| Modifier and Type | Class and Description |
|---|---|
static class |
StreamingRecognitionConfig.Builder
Provides information to the recognizer that specifies how to process the
request.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CONFIG_FIELD_NUMBER |
static int |
INTERIM_RESULTS_FIELD_NUMBER |
static int |
SINGLE_UTTERANCE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
RecognitionConfig |
getConfig()
*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.
|
static StreamingRecognitionConfig |
getDefaultInstance() |
StreamingRecognitionConfig |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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).
|
Parser<StreamingRecognitionConfig> |
getParserForType() |
int |
getSerializedSize() |
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.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
hasConfig()
*Required* Provides information to the recognizer that specifies how to
process the request.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static StreamingRecognitionConfig.Builder |
newBuilder() |
static StreamingRecognitionConfig.Builder |
newBuilder(StreamingRecognitionConfig prototype) |
StreamingRecognitionConfig.Builder |
newBuilderForType() |
protected StreamingRecognitionConfig.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static StreamingRecognitionConfig |
parseDelimitedFrom(java.io.InputStream input) |
static StreamingRecognitionConfig |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static StreamingRecognitionConfig |
parseFrom(byte[] data) |
static StreamingRecognitionConfig |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static StreamingRecognitionConfig |
parseFrom(java.nio.ByteBuffer data) |
static StreamingRecognitionConfig |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static StreamingRecognitionConfig |
parseFrom(ByteString data) |
static StreamingRecognitionConfig |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static StreamingRecognitionConfig |
parseFrom(CodedInputStream input) |
static StreamingRecognitionConfig |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static StreamingRecognitionConfig |
parseFrom(java.io.InputStream input) |
static StreamingRecognitionConfig |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<StreamingRecognitionConfig> |
parser() |
StreamingRecognitionConfig.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int CONFIG_FIELD_NUMBER
public static final int SINGLE_UTTERANCE_FIELD_NUMBER
public static final int INTERIM_RESULTS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public boolean hasConfig()
*Required* Provides information to the recognizer that specifies how to process the request.
.google.cloud.speech.v1p1beta1.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.v1p1beta1.RecognitionConfig config = 1;getConfig in interface StreamingRecognitionConfigOrBuilderpublic RecognitionConfigOrBuilder getConfigOrBuilder()
*Required* Provides information to the recognizer that specifies how to process the request.
.google.cloud.speech.v1p1beta1.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_SINGLE_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 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 final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static StreamingRecognitionConfig parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static StreamingRecognitionConfig parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static StreamingRecognitionConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static StreamingRecognitionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static StreamingRecognitionConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static StreamingRecognitionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static StreamingRecognitionConfig parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static StreamingRecognitionConfig parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static StreamingRecognitionConfig parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static StreamingRecognitionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic StreamingRecognitionConfig.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static StreamingRecognitionConfig.Builder newBuilder()
public static StreamingRecognitionConfig.Builder newBuilder(StreamingRecognitionConfig prototype)
public StreamingRecognitionConfig.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected StreamingRecognitionConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static StreamingRecognitionConfig getDefaultInstance()
public static Parser<StreamingRecognitionConfig> parser()
public Parser<StreamingRecognitionConfig> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public StreamingRecognitionConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder