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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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 StreamingRecognitionConfigOrBuilder
public 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 StreamingRecognitionConfigOrBuilder
public 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 StreamingRecognitionConfigOrBuilder
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_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 StreamingRecognitionConfigOrBuilder
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 StreamingRecognitionConfigOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static StreamingRecognitionConfig parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StreamingRecognitionConfig parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StreamingRecognitionConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StreamingRecognitionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StreamingRecognitionConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StreamingRecognitionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StreamingRecognitionConfig parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static StreamingRecognitionConfig parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static StreamingRecognitionConfig parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static StreamingRecognitionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public StreamingRecognitionConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static StreamingRecognitionConfig.Builder newBuilder()
public static StreamingRecognitionConfig.Builder newBuilder(StreamingRecognitionConfig prototype)
public StreamingRecognitionConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected StreamingRecognitionConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static StreamingRecognitionConfig getDefaultInstance()
public static Parser<StreamingRecognitionConfig> parser()
public Parser<StreamingRecognitionConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public StreamingRecognitionConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder