diff --git a/java/proto-google-cloud-speech-v1beta1/0.1.29/apidocs/allclasses-frame.html b/java/proto-google-cloud-speech-v1beta1/0.1.29/apidocs/allclasses-frame.html new file mode 100644 index 0000000000..e8772ac856 --- /dev/null +++ b/java/proto-google-cloud-speech-v1beta1/0.1.29/apidocs/allclasses-frame.html @@ -0,0 +1,65 @@ + + + +
+ +public static final class AsyncRecognizeMetadata.Builder +extends com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeMetadata.Builder> +implements AsyncRecognizeMetadataOrBuilder+
+ Describes the progress of a long-running `AsyncRecognize` call. It is + included in the `metadata` field of the `Operation` returned by the + `GetOperation` call of the `google::longrunning::Operations` service. ++ + Protobuf type
google.cloud.speech.v1beta1.AsyncRecognizeMetadata| Modifier and Type | +Method and Description | +
|---|---|
AsyncRecognizeMetadata.Builder |
+addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
AsyncRecognizeMetadata |
+build() |
+
AsyncRecognizeMetadata |
+buildPartial() |
+
AsyncRecognizeMetadata.Builder |
+clear() |
+
AsyncRecognizeMetadata.Builder |
+clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
+
AsyncRecognizeMetadata.Builder |
+clearLastUpdateTime()
+
+ Time of the most recent processing update.
+ |
+
AsyncRecognizeMetadata.Builder |
+clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
+
AsyncRecognizeMetadata.Builder |
+clearProgressPercent()
+
+ Approximate percentage of audio processed thus far.
+ |
+
AsyncRecognizeMetadata.Builder |
+clearStartTime()
+
+ Time when the request was received.
+ |
+
AsyncRecognizeMetadata.Builder |
+clone() |
+
AsyncRecognizeMetadata |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.Descriptor |
+getDescriptorForType() |
+
com.google.protobuf.Timestamp |
+getLastUpdateTime()
+
+ Time of the most recent processing update.
+ |
+
com.google.protobuf.Timestamp.Builder |
+getLastUpdateTimeBuilder()
+
+ Time of the most recent processing update.
+ |
+
com.google.protobuf.TimestampOrBuilder |
+getLastUpdateTimeOrBuilder()
+
+ Time of the most recent processing update.
+ |
+
int |
+getProgressPercent()
+
+ Approximate percentage of audio processed thus far.
+ |
+
com.google.protobuf.Timestamp |
+getStartTime()
+
+ Time when the request was received.
+ |
+
com.google.protobuf.Timestamp.Builder |
+getStartTimeBuilder()
+
+ Time when the request was received.
+ |
+
com.google.protobuf.TimestampOrBuilder |
+getStartTimeOrBuilder()
+
+ Time when the request was received.
+ |
+
boolean |
+hasLastUpdateTime()
+
+ Time of the most recent processing update.
+ |
+
boolean |
+hasStartTime()
+
+ Time when the request was received.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
AsyncRecognizeMetadata.Builder |
+mergeFrom(AsyncRecognizeMetadata other) |
+
AsyncRecognizeMetadata.Builder |
+mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
AsyncRecognizeMetadata.Builder |
+mergeFrom(com.google.protobuf.Message other) |
+
AsyncRecognizeMetadata.Builder |
+mergeLastUpdateTime(com.google.protobuf.Timestamp value)
+
+ Time of the most recent processing update.
+ |
+
AsyncRecognizeMetadata.Builder |
+mergeStartTime(com.google.protobuf.Timestamp value)
+
+ Time when the request was received.
+ |
+
AsyncRecognizeMetadata.Builder |
+mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
AsyncRecognizeMetadata.Builder |
+setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
AsyncRecognizeMetadata.Builder |
+setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
+
+ Time of the most recent processing update.
+ |
+
AsyncRecognizeMetadata.Builder |
+setLastUpdateTime(com.google.protobuf.Timestamp value)
+
+ Time of the most recent processing update.
+ |
+
AsyncRecognizeMetadata.Builder |
+setProgressPercent(int value)
+
+ Approximate percentage of audio processed thus far.
+ |
+
AsyncRecognizeMetadata.Builder |
+setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) |
+
AsyncRecognizeMetadata.Builder |
+setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
+
+ Time when the request was received.
+ |
+
AsyncRecognizeMetadata.Builder |
+setStartTime(com.google.protobuf.Timestamp value)
+
+ Time when the request was received.
+ |
+
AsyncRecognizeMetadata.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeMetadata.Builder>public AsyncRecognizeMetadata.Builder clear()+
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeMetadata.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<AsyncRecognizeMetadata.Builder>public AsyncRecognizeMetadata getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AsyncRecognizeMetadata build()+
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AsyncRecognizeMetadata buildPartial()+
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AsyncRecognizeMetadata.Builder clone()+
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeMetadata.Builder>public AsyncRecognizeMetadata.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<AsyncRecognizeMetadata.Builder>public AsyncRecognizeMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)+
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeMetadata.Builder>public AsyncRecognizeMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)+
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeMetadata.Builder>public AsyncRecognizeMetadata.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<AsyncRecognizeMetadata.Builder>public AsyncRecognizeMetadata.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<AsyncRecognizeMetadata.Builder>public AsyncRecognizeMetadata.Builder mergeFrom(com.google.protobuf.Message other)+
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AsyncRecognizeMetadata.Builder>public AsyncRecognizeMetadata.Builder mergeFrom(AsyncRecognizeMetadata other)+
public final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeMetadata.Builder>public AsyncRecognizeMetadata.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<AsyncRecognizeMetadata.Builder>java.io.IOExceptionpublic int getProgressPercent()+
+ Approximate percentage of audio processed thus far. Guaranteed to be 100 + when the audio is fully processed and the results are available. ++ +
int32 progress_percent = 1;getProgressPercent in interface AsyncRecognizeMetadataOrBuilderpublic AsyncRecognizeMetadata.Builder setProgressPercent(int value)+
+ Approximate percentage of audio processed thus far. Guaranteed to be 100 + when the audio is fully processed and the results are available. ++ +
int32 progress_percent = 1;public AsyncRecognizeMetadata.Builder clearProgressPercent()+
+ Approximate percentage of audio processed thus far. Guaranteed to be 100 + when the audio is fully processed and the results are available. ++ +
int32 progress_percent = 1;public boolean hasStartTime()+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;hasStartTime in interface AsyncRecognizeMetadataOrBuilderpublic com.google.protobuf.Timestamp getStartTime()+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;getStartTime in interface AsyncRecognizeMetadataOrBuilderpublic AsyncRecognizeMetadata.Builder setStartTime(com.google.protobuf.Timestamp value)+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;public AsyncRecognizeMetadata.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;public AsyncRecognizeMetadata.Builder mergeStartTime(com.google.protobuf.Timestamp value)+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;public AsyncRecognizeMetadata.Builder clearStartTime()+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;getStartTimeOrBuilder in interface AsyncRecognizeMetadataOrBuilderpublic boolean hasLastUpdateTime()+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;hasLastUpdateTime in interface AsyncRecognizeMetadataOrBuilderpublic com.google.protobuf.Timestamp getLastUpdateTime()+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;getLastUpdateTime in interface AsyncRecognizeMetadataOrBuilderpublic AsyncRecognizeMetadata.Builder setLastUpdateTime(com.google.protobuf.Timestamp value)+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;public AsyncRecognizeMetadata.Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;public AsyncRecognizeMetadata.Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value)+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;public AsyncRecognizeMetadata.Builder clearLastUpdateTime()+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder()+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder()+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;getLastUpdateTimeOrBuilder in interface AsyncRecognizeMetadataOrBuilderpublic final AsyncRecognizeMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeMetadata.Builder>public final AsyncRecognizeMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeMetadata.Builder>public final class AsyncRecognizeMetadata +extends com.google.protobuf.GeneratedMessageV3 +implements AsyncRecognizeMetadataOrBuilder+
+ Describes the progress of a long-running `AsyncRecognize` call. It is + included in the `metadata` field of the `Operation` returned by the + `GetOperation` call of the `google::longrunning::Operations` service. ++ + Protobuf type
google.cloud.speech.v1beta1.AsyncRecognizeMetadata| Modifier and Type | +Class and Description | +
|---|---|
static class |
+AsyncRecognizeMetadata.Builder
+
+ Describes the progress of a long-running `AsyncRecognize` call.
+ |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | +Field and Description | +
|---|---|
static int |
+LAST_UPDATE_TIME_FIELD_NUMBER |
+
static int |
+PROGRESS_PERCENT_FIELD_NUMBER |
+
static int |
+START_TIME_FIELD_NUMBER |
+
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(java.lang.Object obj) |
+
static AsyncRecognizeMetadata |
+getDefaultInstance() |
+
AsyncRecognizeMetadata |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Timestamp |
+getLastUpdateTime()
+
+ Time of the most recent processing update.
+ |
+
com.google.protobuf.TimestampOrBuilder |
+getLastUpdateTimeOrBuilder()
+
+ Time of the most recent processing update.
+ |
+
com.google.protobuf.Parser<AsyncRecognizeMetadata> |
+getParserForType() |
+
int |
+getProgressPercent()
+
+ Approximate percentage of audio processed thus far.
+ |
+
int |
+getSerializedSize() |
+
com.google.protobuf.Timestamp |
+getStartTime()
+
+ Time when the request was received.
+ |
+
com.google.protobuf.TimestampOrBuilder |
+getStartTimeOrBuilder()
+
+ Time when the request was received.
+ |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
int |
+hashCode() |
+
boolean |
+hasLastUpdateTime()
+
+ Time of the most recent processing update.
+ |
+
boolean |
+hasStartTime()
+
+ Time when the request was received.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static AsyncRecognizeMetadata.Builder |
+newBuilder() |
+
static AsyncRecognizeMetadata.Builder |
+newBuilder(AsyncRecognizeMetadata prototype) |
+
AsyncRecognizeMetadata.Builder |
+newBuilderForType() |
+
protected AsyncRecognizeMetadata.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static AsyncRecognizeMetadata |
+parseDelimitedFrom(java.io.InputStream input) |
+
static AsyncRecognizeMetadata |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeMetadata |
+parseFrom(byte[] data) |
+
static AsyncRecognizeMetadata |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeMetadata |
+parseFrom(java.nio.ByteBuffer data) |
+
static AsyncRecognizeMetadata |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeMetadata |
+parseFrom(com.google.protobuf.ByteString data) |
+
static AsyncRecognizeMetadata |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeMetadata |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static AsyncRecognizeMetadata |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeMetadata |
+parseFrom(java.io.InputStream input) |
+
static AsyncRecognizeMetadata |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<AsyncRecognizeMetadata> |
+parser() |
+
AsyncRecognizeMetadata.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 PROGRESS_PERCENT_FIELD_NUMBER+
public static final int START_TIME_FIELD_NUMBER+
public static final int LAST_UPDATE_TIME_FIELD_NUMBER+
public final com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getProgressPercent()+
+ Approximate percentage of audio processed thus far. Guaranteed to be 100 + when the audio is fully processed and the results are available. ++ +
int32 progress_percent = 1;getProgressPercent in interface AsyncRecognizeMetadataOrBuilderpublic boolean hasStartTime()+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;hasStartTime in interface AsyncRecognizeMetadataOrBuilderpublic com.google.protobuf.Timestamp getStartTime()+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;getStartTime in interface AsyncRecognizeMetadataOrBuilderpublic com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;getStartTimeOrBuilder in interface AsyncRecognizeMetadataOrBuilderpublic boolean hasLastUpdateTime()+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;hasLastUpdateTime in interface AsyncRecognizeMetadataOrBuilderpublic com.google.protobuf.Timestamp getLastUpdateTime()+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;getLastUpdateTime in interface AsyncRecognizeMetadataOrBuilderpublic com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder()+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;getLastUpdateTimeOrBuilder in interface AsyncRecognizeMetadataOrBuilderpublic final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AsyncRecognizeMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeMetadata parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeMetadata parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeMetadata parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeMetadata parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeMetadata parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeMetadata parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeMetadata parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeMetadata parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic AsyncRecognizeMetadata.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AsyncRecognizeMetadata.Builder newBuilder()+
public static AsyncRecognizeMetadata.Builder newBuilder(AsyncRecognizeMetadata prototype)+
public AsyncRecognizeMetadata.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AsyncRecognizeMetadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AsyncRecognizeMetadata getDefaultInstance()+
public static com.google.protobuf.Parser<AsyncRecognizeMetadata> parser()+
public com.google.protobuf.Parser<AsyncRecognizeMetadata> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AsyncRecognizeMetadata getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface AsyncRecognizeMetadataOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
com.google.protobuf.Timestamp |
+getLastUpdateTime()
+
+ Time of the most recent processing update.
+ |
+
com.google.protobuf.TimestampOrBuilder |
+getLastUpdateTimeOrBuilder()
+
+ Time of the most recent processing update.
+ |
+
int |
+getProgressPercent()
+
+ Approximate percentage of audio processed thus far.
+ |
+
com.google.protobuf.Timestamp |
+getStartTime()
+
+ Time when the request was received.
+ |
+
com.google.protobuf.TimestampOrBuilder |
+getStartTimeOrBuilder()
+
+ Time when the request was received.
+ |
+
boolean |
+hasLastUpdateTime()
+
+ Time of the most recent processing update.
+ |
+
boolean |
+hasStartTime()
+
+ Time when the request was received.
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedint getProgressPercent()+
+ Approximate percentage of audio processed thus far. Guaranteed to be 100 + when the audio is fully processed and the results are available. ++ +
int32 progress_percent = 1;boolean hasStartTime()+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;com.google.protobuf.Timestamp getStartTime()+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()+
+ Time when the request was received. ++ +
.google.protobuf.Timestamp start_time = 2;boolean hasLastUpdateTime()+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;com.google.protobuf.Timestamp getLastUpdateTime()+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder()+
+ Time of the most recent processing update. ++ +
.google.protobuf.Timestamp last_update_time = 3;public static final class AsyncRecognizeRequest.Builder +extends com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeRequest.Builder> +implements AsyncRecognizeRequestOrBuilder+
+ The top-level message sent by the client for the `AsyncRecognize` method. ++ + Protobuf type
google.cloud.speech.v1beta1.AsyncRecognizeRequest| Modifier and Type | +Method and Description | +
|---|---|
AsyncRecognizeRequest.Builder |
+addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
AsyncRecognizeRequest |
+build() |
+
AsyncRecognizeRequest |
+buildPartial() |
+
AsyncRecognizeRequest.Builder |
+clear() |
+
AsyncRecognizeRequest.Builder |
+clearAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
AsyncRecognizeRequest.Builder |
+clearConfig()
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
AsyncRecognizeRequest.Builder |
+clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
+
AsyncRecognizeRequest.Builder |
+clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
+
AsyncRecognizeRequest.Builder |
+clone() |
+
RecognitionAudio |
+getAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
RecognitionAudio.Builder |
+getAudioBuilder()
+
+ *Required* The audio data to be recognized.
+ |
+
RecognitionAudioOrBuilder |
+getAudioOrBuilder()
+
+ *Required* The audio data to be recognized.
+ |
+
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.
+ |
+
AsyncRecognizeRequest |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.Descriptor |
+getDescriptorForType() |
+
boolean |
+hasAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
boolean |
+hasConfig()
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
AsyncRecognizeRequest.Builder |
+mergeAudio(RecognitionAudio value)
+
+ *Required* The audio data to be recognized.
+ |
+
AsyncRecognizeRequest.Builder |
+mergeConfig(RecognitionConfig value)
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
AsyncRecognizeRequest.Builder |
+mergeFrom(AsyncRecognizeRequest other) |
+
AsyncRecognizeRequest.Builder |
+mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
AsyncRecognizeRequest.Builder |
+mergeFrom(com.google.protobuf.Message other) |
+
AsyncRecognizeRequest.Builder |
+mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
AsyncRecognizeRequest.Builder |
+setAudio(RecognitionAudio.Builder builderForValue)
+
+ *Required* The audio data to be recognized.
+ |
+
AsyncRecognizeRequest.Builder |
+setAudio(RecognitionAudio value)
+
+ *Required* The audio data to be recognized.
+ |
+
AsyncRecognizeRequest.Builder |
+setConfig(RecognitionConfig.Builder builderForValue)
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
AsyncRecognizeRequest.Builder |
+setConfig(RecognitionConfig value)
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
AsyncRecognizeRequest.Builder |
+setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
AsyncRecognizeRequest.Builder |
+setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) |
+
AsyncRecognizeRequest.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeRequest.Builder>public AsyncRecognizeRequest.Builder clear()+
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeRequest.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<AsyncRecognizeRequest.Builder>public AsyncRecognizeRequest getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AsyncRecognizeRequest build()+
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AsyncRecognizeRequest buildPartial()+
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AsyncRecognizeRequest.Builder clone()+
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeRequest.Builder>public AsyncRecognizeRequest.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<AsyncRecognizeRequest.Builder>public AsyncRecognizeRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)+
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeRequest.Builder>public AsyncRecognizeRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)+
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeRequest.Builder>public AsyncRecognizeRequest.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<AsyncRecognizeRequest.Builder>public AsyncRecognizeRequest.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<AsyncRecognizeRequest.Builder>public AsyncRecognizeRequest.Builder mergeFrom(com.google.protobuf.Message other)+
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AsyncRecognizeRequest.Builder>public AsyncRecognizeRequest.Builder mergeFrom(AsyncRecognizeRequest other)+
public final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeRequest.Builder>public AsyncRecognizeRequest.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<AsyncRecognizeRequest.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 AsyncRecognizeRequestOrBuilderpublic 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 AsyncRecognizeRequestOrBuilderpublic AsyncRecognizeRequest.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 AsyncRecognizeRequest.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 AsyncRecognizeRequest.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 AsyncRecognizeRequest.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 AsyncRecognizeRequestOrBuilderpublic boolean hasAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;hasAudio in interface AsyncRecognizeRequestOrBuilderpublic RecognitionAudio getAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;getAudio in interface AsyncRecognizeRequestOrBuilderpublic AsyncRecognizeRequest.Builder setAudio(RecognitionAudio value)+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;public AsyncRecognizeRequest.Builder setAudio(RecognitionAudio.Builder builderForValue)+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;public AsyncRecognizeRequest.Builder mergeAudio(RecognitionAudio value)+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;public AsyncRecognizeRequest.Builder clearAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;public RecognitionAudio.Builder getAudioBuilder()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;public RecognitionAudioOrBuilder getAudioOrBuilder()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;getAudioOrBuilder in interface AsyncRecognizeRequestOrBuilderpublic final AsyncRecognizeRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeRequest.Builder>public final AsyncRecognizeRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeRequest.Builder>public final class AsyncRecognizeRequest +extends com.google.protobuf.GeneratedMessageV3 +implements AsyncRecognizeRequestOrBuilder+
+ The top-level message sent by the client for the `AsyncRecognize` method. ++ + Protobuf type
google.cloud.speech.v1beta1.AsyncRecognizeRequest| Modifier and Type | +Class and Description | +
|---|---|
static class |
+AsyncRecognizeRequest.Builder
+
+ The top-level message sent by the client for the `AsyncRecognize` method.
+ |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | +Field and Description | +
|---|---|
static int |
+AUDIO_FIELD_NUMBER |
+
static int |
+CONFIG_FIELD_NUMBER |
+
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(java.lang.Object obj) |
+
RecognitionAudio |
+getAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
RecognitionAudioOrBuilder |
+getAudioOrBuilder()
+
+ *Required* The audio data to be recognized.
+ |
+
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 AsyncRecognizeRequest |
+getDefaultInstance() |
+
AsyncRecognizeRequest |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Parser<AsyncRecognizeRequest> |
+getParserForType() |
+
int |
+getSerializedSize() |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
boolean |
+hasAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
boolean |
+hasConfig()
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
int |
+hashCode() |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static AsyncRecognizeRequest.Builder |
+newBuilder() |
+
static AsyncRecognizeRequest.Builder |
+newBuilder(AsyncRecognizeRequest prototype) |
+
AsyncRecognizeRequest.Builder |
+newBuilderForType() |
+
protected AsyncRecognizeRequest.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static AsyncRecognizeRequest |
+parseDelimitedFrom(java.io.InputStream input) |
+
static AsyncRecognizeRequest |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeRequest |
+parseFrom(byte[] data) |
+
static AsyncRecognizeRequest |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeRequest |
+parseFrom(java.nio.ByteBuffer data) |
+
static AsyncRecognizeRequest |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeRequest |
+parseFrom(com.google.protobuf.ByteString data) |
+
static AsyncRecognizeRequest |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeRequest |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static AsyncRecognizeRequest |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeRequest |
+parseFrom(java.io.InputStream input) |
+
static AsyncRecognizeRequest |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<AsyncRecognizeRequest> |
+parser() |
+
AsyncRecognizeRequest.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 AUDIO_FIELD_NUMBER+
public final com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 AsyncRecognizeRequestOrBuilderpublic 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 AsyncRecognizeRequestOrBuilderpublic 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 AsyncRecognizeRequestOrBuilderpublic boolean hasAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;hasAudio in interface AsyncRecognizeRequestOrBuilderpublic RecognitionAudio getAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;getAudio in interface AsyncRecognizeRequestOrBuilderpublic RecognitionAudioOrBuilder getAudioOrBuilder()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;getAudioOrBuilder in interface AsyncRecognizeRequestOrBuilderpublic final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AsyncRecognizeRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeRequest parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeRequest parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeRequest parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeRequest parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeRequest parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeRequest parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeRequest parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeRequest parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic AsyncRecognizeRequest.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AsyncRecognizeRequest.Builder newBuilder()+
public static AsyncRecognizeRequest.Builder newBuilder(AsyncRecognizeRequest prototype)+
public AsyncRecognizeRequest.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AsyncRecognizeRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AsyncRecognizeRequest getDefaultInstance()+
public static com.google.protobuf.Parser<AsyncRecognizeRequest> parser()+
public com.google.protobuf.Parser<AsyncRecognizeRequest> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AsyncRecognizeRequest getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface AsyncRecognizeRequestOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
RecognitionAudio |
+getAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
RecognitionAudioOrBuilder |
+getAudioOrBuilder()
+
+ *Required* The audio data to be recognized.
+ |
+
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.
+ |
+
boolean |
+hasAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
boolean |
+hasConfig()
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedboolean hasConfig()+
+ *Required* Provides information to the recognizer that specifies how to + process the request. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;RecognitionConfig getConfig()+
+ *Required* Provides information to the recognizer that specifies how to + process the request. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;RecognitionConfigOrBuilder getConfigOrBuilder()+
+ *Required* Provides information to the recognizer that specifies how to + process the request. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;boolean hasAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;RecognitionAudio getAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;RecognitionAudioOrBuilder getAudioOrBuilder()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;public static final class AsyncRecognizeResponse.Builder +extends com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder> +implements AsyncRecognizeResponseOrBuilder+
+ The only message returned to the client by `AsyncRecognize`. It contains the + result as zero or more sequential `SpeechRecognitionResult` messages. It is + included in the `result.response` field of the `Operation` returned by the + `GetOperation` call of the `google::longrunning::Operations` service. ++ + Protobuf type
google.cloud.speech.v1beta1.AsyncRecognizeResponse| Modifier and Type | +Method and Description | +
|---|---|
AsyncRecognizeResponse.Builder |
+addAllResults(java.lang.Iterable<? extends SpeechRecognitionResult> values)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
AsyncRecognizeResponse.Builder |
+addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
AsyncRecognizeResponse.Builder |
+addResults(int index,
+ SpeechRecognitionResult.Builder builderForValue)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
AsyncRecognizeResponse.Builder |
+addResults(int index,
+ SpeechRecognitionResult value)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
AsyncRecognizeResponse.Builder |
+addResults(SpeechRecognitionResult.Builder builderForValue)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
AsyncRecognizeResponse.Builder |
+addResults(SpeechRecognitionResult value)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SpeechRecognitionResult.Builder |
+addResultsBuilder()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SpeechRecognitionResult.Builder |
+addResultsBuilder(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
AsyncRecognizeResponse |
+build() |
+
AsyncRecognizeResponse |
+buildPartial() |
+
AsyncRecognizeResponse.Builder |
+clear() |
+
AsyncRecognizeResponse.Builder |
+clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
+
AsyncRecognizeResponse.Builder |
+clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
+
AsyncRecognizeResponse.Builder |
+clearResults()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
AsyncRecognizeResponse.Builder |
+clone() |
+
AsyncRecognizeResponse |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.Descriptor |
+getDescriptorForType() |
+
SpeechRecognitionResult |
+getResults(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SpeechRecognitionResult.Builder |
+getResultsBuilder(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<SpeechRecognitionResult.Builder> |
+getResultsBuilderList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
int |
+getResultsCount()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<SpeechRecognitionResult> |
+getResultsList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SpeechRecognitionResultOrBuilder |
+getResultsOrBuilder(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<? extends SpeechRecognitionResultOrBuilder> |
+getResultsOrBuilderList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
AsyncRecognizeResponse.Builder |
+mergeFrom(AsyncRecognizeResponse other) |
+
AsyncRecognizeResponse.Builder |
+mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
AsyncRecognizeResponse.Builder |
+mergeFrom(com.google.protobuf.Message other) |
+
AsyncRecognizeResponse.Builder |
+mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
AsyncRecognizeResponse.Builder |
+removeResults(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
AsyncRecognizeResponse.Builder |
+setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
AsyncRecognizeResponse.Builder |
+setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) |
+
AsyncRecognizeResponse.Builder |
+setResults(int index,
+ SpeechRecognitionResult.Builder builderForValue)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
AsyncRecognizeResponse.Builder |
+setResults(int index,
+ SpeechRecognitionResult value)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
AsyncRecognizeResponse.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>public AsyncRecognizeResponse.Builder clear()+
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.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<AsyncRecognizeResponse.Builder>public AsyncRecognizeResponse getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AsyncRecognizeResponse build()+
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AsyncRecognizeResponse buildPartial()+
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AsyncRecognizeResponse.Builder clone()+
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>public AsyncRecognizeResponse.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<AsyncRecognizeResponse.Builder>public AsyncRecognizeResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)+
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>public AsyncRecognizeResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)+
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>public AsyncRecognizeResponse.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<AsyncRecognizeResponse.Builder>public AsyncRecognizeResponse.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<AsyncRecognizeResponse.Builder>public AsyncRecognizeResponse.Builder mergeFrom(com.google.protobuf.Message other)+
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AsyncRecognizeResponse.Builder>public AsyncRecognizeResponse.Builder mergeFrom(AsyncRecognizeResponse other)+
public final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>public AsyncRecognizeResponse.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<AsyncRecognizeResponse.Builder>java.io.IOExceptionpublic java.util.List<SpeechRecognitionResult> getResultsList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsList in interface AsyncRecognizeResponseOrBuilderpublic int getResultsCount()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsCount in interface AsyncRecognizeResponseOrBuilderpublic SpeechRecognitionResult getResults(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResults in interface AsyncRecognizeResponseOrBuilderpublic AsyncRecognizeResponse.Builder setResults(int index, + SpeechRecognitionResult value)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public AsyncRecognizeResponse.Builder setResults(int index, + SpeechRecognitionResult.Builder builderForValue)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public AsyncRecognizeResponse.Builder addResults(SpeechRecognitionResult value)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public AsyncRecognizeResponse.Builder addResults(int index, + SpeechRecognitionResult value)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public AsyncRecognizeResponse.Builder addResults(SpeechRecognitionResult.Builder builderForValue)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public AsyncRecognizeResponse.Builder addResults(int index, + SpeechRecognitionResult.Builder builderForValue)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public AsyncRecognizeResponse.Builder addAllResults(java.lang.Iterable<? extends SpeechRecognitionResult> values)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public AsyncRecognizeResponse.Builder clearResults()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public AsyncRecognizeResponse.Builder removeResults(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SpeechRecognitionResult.Builder getResultsBuilder(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsOrBuilder in interface AsyncRecognizeResponseOrBuilderpublic java.util.List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsOrBuilderList in interface AsyncRecognizeResponseOrBuilderpublic SpeechRecognitionResult.Builder addResultsBuilder()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SpeechRecognitionResult.Builder addResultsBuilder(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public java.util.List<SpeechRecognitionResult.Builder> getResultsBuilderList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public final AsyncRecognizeResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>public final AsyncRecognizeResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder>public final class AsyncRecognizeResponse +extends com.google.protobuf.GeneratedMessageV3 +implements AsyncRecognizeResponseOrBuilder+
+ The only message returned to the client by `AsyncRecognize`. It contains the + result as zero or more sequential `SpeechRecognitionResult` messages. It is + included in the `result.response` field of the `Operation` returned by the + `GetOperation` call of the `google::longrunning::Operations` service. ++ + Protobuf type
google.cloud.speech.v1beta1.AsyncRecognizeResponse| Modifier and Type | +Class and Description | +
|---|---|
static class |
+AsyncRecognizeResponse.Builder
+
+ The only message returned to the client by `AsyncRecognize`.
+ |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | +Field and Description | +
|---|---|
static int |
+RESULTS_FIELD_NUMBER |
+
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(java.lang.Object obj) |
+
static AsyncRecognizeResponse |
+getDefaultInstance() |
+
AsyncRecognizeResponse |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Parser<AsyncRecognizeResponse> |
+getParserForType() |
+
SpeechRecognitionResult |
+getResults(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
int |
+getResultsCount()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<SpeechRecognitionResult> |
+getResultsList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SpeechRecognitionResultOrBuilder |
+getResultsOrBuilder(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<? extends SpeechRecognitionResultOrBuilder> |
+getResultsOrBuilderList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
int |
+getSerializedSize() |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
int |
+hashCode() |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static AsyncRecognizeResponse.Builder |
+newBuilder() |
+
static AsyncRecognizeResponse.Builder |
+newBuilder(AsyncRecognizeResponse prototype) |
+
AsyncRecognizeResponse.Builder |
+newBuilderForType() |
+
protected AsyncRecognizeResponse.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static AsyncRecognizeResponse |
+parseDelimitedFrom(java.io.InputStream input) |
+
static AsyncRecognizeResponse |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeResponse |
+parseFrom(byte[] data) |
+
static AsyncRecognizeResponse |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeResponse |
+parseFrom(java.nio.ByteBuffer data) |
+
static AsyncRecognizeResponse |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeResponse |
+parseFrom(com.google.protobuf.ByteString data) |
+
static AsyncRecognizeResponse |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeResponse |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static AsyncRecognizeResponse |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static AsyncRecognizeResponse |
+parseFrom(java.io.InputStream input) |
+
static AsyncRecognizeResponse |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<AsyncRecognizeResponse> |
+parser() |
+
AsyncRecognizeResponse.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 RESULTS_FIELD_NUMBER+
public final com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.util.List<SpeechRecognitionResult> getResultsList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsList in interface AsyncRecognizeResponseOrBuilderpublic java.util.List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsOrBuilderList in interface AsyncRecognizeResponseOrBuilderpublic int getResultsCount()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsCount in interface AsyncRecognizeResponseOrBuilderpublic SpeechRecognitionResult getResults(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResults in interface AsyncRecognizeResponseOrBuilderpublic SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsOrBuilder in interface AsyncRecognizeResponseOrBuilderpublic final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AsyncRecognizeResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeResponse parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeResponse parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeResponse parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeResponse parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AsyncRecognizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeResponse parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeResponse parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeResponse parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static AsyncRecognizeResponse parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic AsyncRecognizeResponse.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AsyncRecognizeResponse.Builder newBuilder()+
public static AsyncRecognizeResponse.Builder newBuilder(AsyncRecognizeResponse prototype)+
public AsyncRecognizeResponse.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AsyncRecognizeResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AsyncRecognizeResponse getDefaultInstance()+
public static com.google.protobuf.Parser<AsyncRecognizeResponse> parser()+
public com.google.protobuf.Parser<AsyncRecognizeResponse> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AsyncRecognizeResponse getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface AsyncRecognizeResponseOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
SpeechRecognitionResult |
+getResults(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
int |
+getResultsCount()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<SpeechRecognitionResult> |
+getResultsList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SpeechRecognitionResultOrBuilder |
+getResultsOrBuilder(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<? extends SpeechRecognitionResultOrBuilder> |
+getResultsOrBuilderList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedjava.util.List<SpeechRecognitionResult> getResultsList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;SpeechRecognitionResult getResults(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;int getResultsCount()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;java.util.List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public static enum RecognitionAudio.AudioSourceCase +extends java.lang.Enum<RecognitionAudio.AudioSourceCase> +implements com.google.protobuf.Internal.EnumLite+
| Enum Constant and Description | +
|---|
AUDIOSOURCE_NOT_SET |
+
CONTENT |
+
URI |
+
| Modifier and Type | +Method and Description | +
|---|---|
static RecognitionAudio.AudioSourceCase |
+forNumber(int value) |
+
int |
+getNumber() |
+
static RecognitionAudio.AudioSourceCase |
+valueOf(int value)
+Deprecated.
+
+Use
+forNumber(int) instead. |
+
static RecognitionAudio.AudioSourceCase |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static RecognitionAudio.AudioSourceCase[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetClass, notify, notifyAll, wait, wait, waitpublic static final RecognitionAudio.AudioSourceCase CONTENT+
public static final RecognitionAudio.AudioSourceCase URI+
public static final RecognitionAudio.AudioSourceCase AUDIOSOURCE_NOT_SET+
public static RecognitionAudio.AudioSourceCase[] values()+
+for (RecognitionAudio.AudioSourceCase c : RecognitionAudio.AudioSourceCase.values()) + System.out.println(c); +
public static RecognitionAudio.AudioSourceCase valueOf(java.lang.String name)+
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@Deprecated +public static RecognitionAudio.AudioSourceCase valueOf(int value)+
forNumber(int) instead.public static RecognitionAudio.AudioSourceCase forNumber(int value)+
public int getNumber()+
getNumber in interface com.google.protobuf.Internal.EnumLitepublic static final class RecognitionAudio.Builder +extends com.google.protobuf.GeneratedMessageV3.Builder<RecognitionAudio.Builder> +implements RecognitionAudioOrBuilder+
+ Contains audio data in the encoding specified in the `RecognitionConfig`. + Either `content` or `uri` must be supplied. Supplying both or neither + returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See + [audio limits](https://cloud.google.com/speech/limits#content). ++ + Protobuf type
google.cloud.speech.v1beta1.RecognitionAudio| Modifier and Type | +Method and Description | +
|---|---|
RecognitionAudio.Builder |
+addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
RecognitionAudio |
+build() |
+
RecognitionAudio |
+buildPartial() |
+
RecognitionAudio.Builder |
+clear() |
+
RecognitionAudio.Builder |
+clearAudioSource() |
+
RecognitionAudio.Builder |
+clearContent()
+
+ The audio data bytes encoded as specified in
+ `RecognitionConfig`.
+ |
+
RecognitionAudio.Builder |
+clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
+
RecognitionAudio.Builder |
+clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
+
RecognitionAudio.Builder |
+clearUri()
+
+ URI that points to a file that contains audio data bytes as specified in
+ `RecognitionConfig`.
+ |
+
RecognitionAudio.Builder |
+clone() |
+
RecognitionAudio.AudioSourceCase |
+getAudioSourceCase() |
+
com.google.protobuf.ByteString |
+getContent()
+
+ The audio data bytes encoded as specified in
+ `RecognitionConfig`.
+ |
+
RecognitionAudio |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.Descriptor |
+getDescriptorForType() |
+
java.lang.String |
+getUri()
+
+ URI that points to a file that contains audio data bytes as specified in
+ `RecognitionConfig`.
+ |
+
com.google.protobuf.ByteString |
+getUriBytes()
+
+ URI that points to a file that contains audio data bytes as specified in
+ `RecognitionConfig`.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
RecognitionAudio.Builder |
+mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
RecognitionAudio.Builder |
+mergeFrom(com.google.protobuf.Message other) |
+
RecognitionAudio.Builder |
+mergeFrom(RecognitionAudio other) |
+
RecognitionAudio.Builder |
+mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
RecognitionAudio.Builder |
+setContent(com.google.protobuf.ByteString value)
+
+ The audio data bytes encoded as specified in
+ `RecognitionConfig`.
+ |
+
RecognitionAudio.Builder |
+setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
RecognitionAudio.Builder |
+setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) |
+
RecognitionAudio.Builder |
+setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
RecognitionAudio.Builder |
+setUri(java.lang.String value)
+
+ URI that points to a file that contains audio data bytes as specified in
+ `RecognitionConfig`.
+ |
+
RecognitionAudio.Builder |
+setUriBytes(com.google.protobuf.ByteString value)
+
+ URI that points to a file that contains audio data bytes as specified in
+ `RecognitionConfig`.
+ |
+
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionAudio.Builder>public RecognitionAudio.Builder clear()+
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionAudio.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<RecognitionAudio.Builder>public RecognitionAudio getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RecognitionAudio build()+
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RecognitionAudio buildPartial()+
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RecognitionAudio.Builder clone()+
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionAudio.Builder>public RecognitionAudio.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<RecognitionAudio.Builder>public RecognitionAudio.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)+
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionAudio.Builder>public RecognitionAudio.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)+
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionAudio.Builder>public RecognitionAudio.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<RecognitionAudio.Builder>public RecognitionAudio.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<RecognitionAudio.Builder>public RecognitionAudio.Builder mergeFrom(com.google.protobuf.Message other)+
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RecognitionAudio.Builder>public RecognitionAudio.Builder mergeFrom(RecognitionAudio other)+
public final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionAudio.Builder>public RecognitionAudio.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<RecognitionAudio.Builder>java.io.IOExceptionpublic RecognitionAudio.AudioSourceCase getAudioSourceCase()+
getAudioSourceCase in interface RecognitionAudioOrBuilderpublic RecognitionAudio.Builder clearAudioSource()+
public com.google.protobuf.ByteString getContent()+
+ The audio data bytes encoded as specified in + `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a + pure binary representation, whereas JSON representations use base64. ++ +
bytes content = 1;getContent in interface RecognitionAudioOrBuilderpublic RecognitionAudio.Builder setContent(com.google.protobuf.ByteString value)+
+ The audio data bytes encoded as specified in + `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a + pure binary representation, whereas JSON representations use base64. ++ +
bytes content = 1;public RecognitionAudio.Builder clearContent()+
+ The audio data bytes encoded as specified in + `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a + pure binary representation, whereas JSON representations use base64. ++ +
bytes content = 1;public java.lang.String getUri()+
+ URI that points to a file that contains audio data bytes as specified in + `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + supported, which must be specified in the following format: + `gs://bucket_name/object_name` (other URI formats return + [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + [Request URIs](https://cloud.google.com/storage/docs/reference-uris). ++ +
string uri = 2;getUri in interface RecognitionAudioOrBuilderpublic com.google.protobuf.ByteString getUriBytes()+
+ URI that points to a file that contains audio data bytes as specified in + `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + supported, which must be specified in the following format: + `gs://bucket_name/object_name` (other URI formats return + [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + [Request URIs](https://cloud.google.com/storage/docs/reference-uris). ++ +
string uri = 2;getUriBytes in interface RecognitionAudioOrBuilderpublic RecognitionAudio.Builder setUri(java.lang.String value)+
+ URI that points to a file that contains audio data bytes as specified in + `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + supported, which must be specified in the following format: + `gs://bucket_name/object_name` (other URI formats return + [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + [Request URIs](https://cloud.google.com/storage/docs/reference-uris). ++ +
string uri = 2;public RecognitionAudio.Builder clearUri()+
+ URI that points to a file that contains audio data bytes as specified in + `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + supported, which must be specified in the following format: + `gs://bucket_name/object_name` (other URI formats return + [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + [Request URIs](https://cloud.google.com/storage/docs/reference-uris). ++ +
string uri = 2;public RecognitionAudio.Builder setUriBytes(com.google.protobuf.ByteString value)+
+ URI that points to a file that contains audio data bytes as specified in + `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + supported, which must be specified in the following format: + `gs://bucket_name/object_name` (other URI formats return + [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + [Request URIs](https://cloud.google.com/storage/docs/reference-uris). ++ +
string uri = 2;public final RecognitionAudio.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionAudio.Builder>public final RecognitionAudio.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionAudio.Builder>public final class RecognitionAudio +extends com.google.protobuf.GeneratedMessageV3 +implements RecognitionAudioOrBuilder+
+ Contains audio data in the encoding specified in the `RecognitionConfig`. + Either `content` or `uri` must be supplied. Supplying both or neither + returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See + [audio limits](https://cloud.google.com/speech/limits#content). ++ + Protobuf type
google.cloud.speech.v1beta1.RecognitionAudio| Modifier and Type | +Class and Description | +
|---|---|
static class |
+RecognitionAudio.AudioSourceCase |
+
static class |
+RecognitionAudio.Builder
+
+ Contains audio data in the encoding specified in the `RecognitionConfig`.
+ |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | +Field and Description | +
|---|---|
static int |
+CONTENT_FIELD_NUMBER |
+
static int |
+URI_FIELD_NUMBER |
+
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(java.lang.Object obj) |
+
RecognitionAudio.AudioSourceCase |
+getAudioSourceCase() |
+
com.google.protobuf.ByteString |
+getContent()
+
+ The audio data bytes encoded as specified in
+ `RecognitionConfig`.
+ |
+
static RecognitionAudio |
+getDefaultInstance() |
+
RecognitionAudio |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Parser<RecognitionAudio> |
+getParserForType() |
+
int |
+getSerializedSize() |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
java.lang.String |
+getUri()
+
+ URI that points to a file that contains audio data bytes as specified in
+ `RecognitionConfig`.
+ |
+
com.google.protobuf.ByteString |
+getUriBytes()
+
+ URI that points to a file that contains audio data bytes as specified in
+ `RecognitionConfig`.
+ |
+
int |
+hashCode() |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static RecognitionAudio.Builder |
+newBuilder() |
+
static RecognitionAudio.Builder |
+newBuilder(RecognitionAudio prototype) |
+
RecognitionAudio.Builder |
+newBuilderForType() |
+
protected RecognitionAudio.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static RecognitionAudio |
+parseDelimitedFrom(java.io.InputStream input) |
+
static RecognitionAudio |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static RecognitionAudio |
+parseFrom(byte[] data) |
+
static RecognitionAudio |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static RecognitionAudio |
+parseFrom(java.nio.ByteBuffer data) |
+
static RecognitionAudio |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static RecognitionAudio |
+parseFrom(com.google.protobuf.ByteString data) |
+
static RecognitionAudio |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static RecognitionAudio |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static RecognitionAudio |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static RecognitionAudio |
+parseFrom(java.io.InputStream input) |
+
static RecognitionAudio |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<RecognitionAudio> |
+parser() |
+
RecognitionAudio.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 CONTENT_FIELD_NUMBER+
public static final int URI_FIELD_NUMBER+
public final com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public RecognitionAudio.AudioSourceCase getAudioSourceCase()+
getAudioSourceCase in interface RecognitionAudioOrBuilderpublic com.google.protobuf.ByteString getContent()+
+ The audio data bytes encoded as specified in + `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a + pure binary representation, whereas JSON representations use base64. ++ +
bytes content = 1;getContent in interface RecognitionAudioOrBuilderpublic java.lang.String getUri()+
+ URI that points to a file that contains audio data bytes as specified in + `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + supported, which must be specified in the following format: + `gs://bucket_name/object_name` (other URI formats return + [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + [Request URIs](https://cloud.google.com/storage/docs/reference-uris). ++ +
string uri = 2;getUri in interface RecognitionAudioOrBuilderpublic com.google.protobuf.ByteString getUriBytes()+
+ URI that points to a file that contains audio data bytes as specified in + `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + supported, which must be specified in the following format: + `gs://bucket_name/object_name` (other URI formats return + [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + [Request URIs](https://cloud.google.com/storage/docs/reference-uris). ++ +
string uri = 2;getUriBytes in interface RecognitionAudioOrBuilderpublic final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RecognitionAudio parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionAudio parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionAudio parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionAudio parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionAudio parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionAudio parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionAudio parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static RecognitionAudio parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static RecognitionAudio parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static RecognitionAudio parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static RecognitionAudio parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static RecognitionAudio parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic RecognitionAudio.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RecognitionAudio.Builder newBuilder()+
public static RecognitionAudio.Builder newBuilder(RecognitionAudio prototype)+
public RecognitionAudio.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RecognitionAudio.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RecognitionAudio getDefaultInstance()+
public static com.google.protobuf.Parser<RecognitionAudio> parser()+
public com.google.protobuf.Parser<RecognitionAudio> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RecognitionAudio getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface RecognitionAudioOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
RecognitionAudio.AudioSourceCase |
+getAudioSourceCase() |
+
com.google.protobuf.ByteString |
+getContent()
+
+ The audio data bytes encoded as specified in
+ `RecognitionConfig`.
+ |
+
java.lang.String |
+getUri()
+
+ URI that points to a file that contains audio data bytes as specified in
+ `RecognitionConfig`.
+ |
+
com.google.protobuf.ByteString |
+getUriBytes()
+
+ URI that points to a file that contains audio data bytes as specified in
+ `RecognitionConfig`.
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedcom.google.protobuf.ByteString getContent()+
+ The audio data bytes encoded as specified in + `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a + pure binary representation, whereas JSON representations use base64. ++ +
bytes content = 1;java.lang.String getUri()+
+ URI that points to a file that contains audio data bytes as specified in + `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + supported, which must be specified in the following format: + `gs://bucket_name/object_name` (other URI formats return + [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + [Request URIs](https://cloud.google.com/storage/docs/reference-uris). ++ +
string uri = 2;com.google.protobuf.ByteString getUriBytes()+
+ URI that points to a file that contains audio data bytes as specified in + `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + supported, which must be specified in the following format: + `gs://bucket_name/object_name` (other URI formats return + [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + [Request URIs](https://cloud.google.com/storage/docs/reference-uris). ++ +
string uri = 2;RecognitionAudio.AudioSourceCase getAudioSourceCase()+
public static enum RecognitionConfig.AudioEncoding +extends java.lang.Enum<RecognitionConfig.AudioEncoding> +implements com.google.protobuf.ProtocolMessageEnum+
+ Audio encoding of the data sent in the audio message. All encodings support + only 1 channel (mono) audio. Only `FLAC` includes a header that describes + the bytes of audio that follow the header. The other encodings are raw + audio bytes with no header. + For best results, the audio source should be captured and transmitted using + a lossless encoding (`FLAC` or `LINEAR16`). Recognition accuracy may be + reduced if lossy codecs (such as AMR, AMR_WB and MULAW) are used to capture + or transmit the audio, particularly if background noise is present. ++ + Protobuf enum
google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding| Enum Constant and Description | +
|---|
AMR
+
+ Adaptive Multi-Rate Narrowband codec.
+ |
+
AMR_WB
+
+ Adaptive Multi-Rate Wideband codec.
+ |
+
ENCODING_UNSPECIFIED
+
+ Not specified.
+ |
+
FLAC
+
+ This is the recommended encoding for `SyncRecognize` and
+ `StreamingRecognize` because it uses lossless compression; therefore
+ recognition accuracy is not compromised by a lossy codec.
+ |
+
LINEAR16
+
+ Uncompressed 16-bit signed little-endian samples (Linear PCM).
+ |
+
MULAW
+
+ 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
+ |
+
UNRECOGNIZED |
+
| Modifier and Type | +Field and Description | +
|---|---|
static int |
+AMR_VALUE
+
+ Adaptive Multi-Rate Narrowband codec.
+ |
+
static int |
+AMR_WB_VALUE
+
+ Adaptive Multi-Rate Wideband codec.
+ |
+
static int |
+ENCODING_UNSPECIFIED_VALUE
+
+ Not specified.
+ |
+
static int |
+FLAC_VALUE
+
+ This is the recommended encoding for `SyncRecognize` and
+ `StreamingRecognize` because it uses lossless compression; therefore
+ recognition accuracy is not compromised by a lossy codec.
+ |
+
static int |
+LINEAR16_VALUE
+
+ Uncompressed 16-bit signed little-endian samples (Linear PCM).
+ |
+
static int |
+MULAW_VALUE
+
+ 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static RecognitionConfig.AudioEncoding |
+forNumber(int value) |
+
static com.google.protobuf.Descriptors.EnumDescriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.EnumDescriptor |
+getDescriptorForType() |
+
int |
+getNumber() |
+
com.google.protobuf.Descriptors.EnumValueDescriptor |
+getValueDescriptor() |
+
static com.google.protobuf.Internal.EnumLiteMap<RecognitionConfig.AudioEncoding> |
+internalGetValueMap() |
+
static RecognitionConfig.AudioEncoding |
+valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
+
static RecognitionConfig.AudioEncoding |
+valueOf(int value)
+Deprecated.
+
+Use
+forNumber(int) instead. |
+
static RecognitionConfig.AudioEncoding |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static RecognitionConfig.AudioEncoding[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetClass, notify, notifyAll, wait, wait, waitpublic static final RecognitionConfig.AudioEncoding ENCODING_UNSPECIFIED+
+ Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. ++ +
ENCODING_UNSPECIFIED = 0;public static final RecognitionConfig.AudioEncoding LINEAR16+
+ Uncompressed 16-bit signed little-endian samples (Linear PCM). + This is the only encoding that may be used by `AsyncRecognize`. ++ +
LINEAR16 = 1;public static final RecognitionConfig.AudioEncoding FLAC+
+ This is the recommended encoding for `SyncRecognize` and + `StreamingRecognize` because it uses lossless compression; therefore + recognition accuracy is not compromised by a lossy codec. + The stream FLAC (Free Lossless Audio Codec) encoding is specified at: + http://flac.sourceforge.net/documentation.html. + 16-bit and 24-bit samples are supported. + Not all fields in STREAMINFO are supported. ++ +
FLAC = 2;public static final RecognitionConfig.AudioEncoding MULAW+
+ 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. ++ +
MULAW = 3;public static final RecognitionConfig.AudioEncoding AMR+
+ Adaptive Multi-Rate Narrowband codec. `sample_rate` must be 8000 Hz. ++ +
AMR = 4;public static final RecognitionConfig.AudioEncoding AMR_WB+
+ Adaptive Multi-Rate Wideband codec. `sample_rate` must be 16000 Hz. ++ +
AMR_WB = 5;public static final RecognitionConfig.AudioEncoding UNRECOGNIZED+
public static final int ENCODING_UNSPECIFIED_VALUE+
+ Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. ++ +
ENCODING_UNSPECIFIED = 0;public static final int LINEAR16_VALUE+
+ Uncompressed 16-bit signed little-endian samples (Linear PCM). + This is the only encoding that may be used by `AsyncRecognize`. ++ +
LINEAR16 = 1;public static final int FLAC_VALUE+
+ This is the recommended encoding for `SyncRecognize` and + `StreamingRecognize` because it uses lossless compression; therefore + recognition accuracy is not compromised by a lossy codec. + The stream FLAC (Free Lossless Audio Codec) encoding is specified at: + http://flac.sourceforge.net/documentation.html. + 16-bit and 24-bit samples are supported. + Not all fields in STREAMINFO are supported. ++ +
FLAC = 2;public static final int MULAW_VALUE+
+ 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. ++ +
MULAW = 3;public static final int AMR_VALUE+
+ Adaptive Multi-Rate Narrowband codec. `sample_rate` must be 8000 Hz. ++ +
AMR = 4;public static final int AMR_WB_VALUE+
+ Adaptive Multi-Rate Wideband codec. `sample_rate` must be 16000 Hz. ++ +
AMR_WB = 5;public static RecognitionConfig.AudioEncoding[] values()+
+for (RecognitionConfig.AudioEncoding c : RecognitionConfig.AudioEncoding.values()) + System.out.println(c); +
public static RecognitionConfig.AudioEncoding valueOf(java.lang.String name)+
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final int getNumber()+
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated +public static RecognitionConfig.AudioEncoding valueOf(int value)+
forNumber(int) instead.public static RecognitionConfig.AudioEncoding forNumber(int value)+
public static com.google.protobuf.Internal.EnumLiteMap<RecognitionConfig.AudioEncoding> internalGetValueMap()+
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()+
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()+
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()+
public static RecognitionConfig.AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)+
public static final class RecognitionConfig.Builder +extends com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder> +implements RecognitionConfigOrBuilder+
+ Provides information to the recognizer that specifies how to process the + request. ++ + Protobuf type
google.cloud.speech.v1beta1.RecognitionConfig| Modifier and Type | +Method and Description | +
|---|---|
RecognitionConfig.Builder |
+addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
RecognitionConfig |
+build() |
+
RecognitionConfig |
+buildPartial() |
+
RecognitionConfig.Builder |
+clear() |
+
RecognitionConfig.Builder |
+clearEncoding()
+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
+ |
+
RecognitionConfig.Builder |
+clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
+
RecognitionConfig.Builder |
+clearLanguageCode()
+
+ *Optional* The language of the supplied audio as a BCP-47 language tag.
+ |
+
RecognitionConfig.Builder |
+clearMaxAlternatives()
+
+ *Optional* Maximum number of recognition hypotheses to be returned.
+ |
+
RecognitionConfig.Builder |
+clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
+
RecognitionConfig.Builder |
+clearProfanityFilter()
+
+ *Optional* If set to `true`, the server will attempt to filter out
+ profanities, replacing all but the initial character in each filtered word
+ with asterisks, e.g.
+ |
+
RecognitionConfig.Builder |
+clearSampleRate()
+
+ *Required* Sample rate in Hertz of the audio data sent in all
+ `RecognitionAudio` messages.
+ |
+
RecognitionConfig.Builder |
+clearSpeechContext()
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
RecognitionConfig.Builder |
+clone() |
+
RecognitionConfig |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.Descriptor |
+getDescriptorForType() |
+
RecognitionConfig.AudioEncoding |
+getEncoding()
+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
+ |
+
int |
+getEncodingValue()
+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
+ |
+
java.lang.String |
+getLanguageCode()
+
+ *Optional* The language of the supplied audio as a BCP-47 language tag.
+ |
+
com.google.protobuf.ByteString |
+getLanguageCodeBytes()
+
+ *Optional* The language of the supplied audio as a BCP-47 language tag.
+ |
+
int |
+getMaxAlternatives()
+
+ *Optional* Maximum number of recognition hypotheses to be returned.
+ |
+
boolean |
+getProfanityFilter()
+
+ *Optional* If set to `true`, the server will attempt to filter out
+ profanities, replacing all but the initial character in each filtered word
+ with asterisks, e.g.
+ |
+
int |
+getSampleRate()
+
+ *Required* Sample rate in Hertz of the audio data sent in all
+ `RecognitionAudio` messages.
+ |
+
SpeechContext |
+getSpeechContext()
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
SpeechContext.Builder |
+getSpeechContextBuilder()
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
SpeechContextOrBuilder |
+getSpeechContextOrBuilder()
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
boolean |
+hasSpeechContext()
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
RecognitionConfig.Builder |
+mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
RecognitionConfig.Builder |
+mergeFrom(com.google.protobuf.Message other) |
+
RecognitionConfig.Builder |
+mergeFrom(RecognitionConfig other) |
+
RecognitionConfig.Builder |
+mergeSpeechContext(SpeechContext value)
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
RecognitionConfig.Builder |
+mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
RecognitionConfig.Builder |
+setEncoding(RecognitionConfig.AudioEncoding value)
+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
+ |
+
RecognitionConfig.Builder |
+setEncodingValue(int value)
+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
+ |
+
RecognitionConfig.Builder |
+setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
RecognitionConfig.Builder |
+setLanguageCode(java.lang.String value)
+
+ *Optional* The language of the supplied audio as a BCP-47 language tag.
+ |
+
RecognitionConfig.Builder |
+setLanguageCodeBytes(com.google.protobuf.ByteString value)
+
+ *Optional* The language of the supplied audio as a BCP-47 language tag.
+ |
+
RecognitionConfig.Builder |
+setMaxAlternatives(int value)
+
+ *Optional* Maximum number of recognition hypotheses to be returned.
+ |
+
RecognitionConfig.Builder |
+setProfanityFilter(boolean value)
+
+ *Optional* If set to `true`, the server will attempt to filter out
+ profanities, replacing all but the initial character in each filtered word
+ with asterisks, e.g.
+ |
+
RecognitionConfig.Builder |
+setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) |
+
RecognitionConfig.Builder |
+setSampleRate(int value)
+
+ *Required* Sample rate in Hertz of the audio data sent in all
+ `RecognitionAudio` messages.
+ |
+
RecognitionConfig.Builder |
+setSpeechContext(SpeechContext.Builder builderForValue)
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
RecognitionConfig.Builder |
+setSpeechContext(SpeechContext value)
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
RecognitionConfig.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>public RecognitionConfig.Builder clear()+
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.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<RecognitionConfig.Builder>public RecognitionConfig getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RecognitionConfig build()+
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RecognitionConfig buildPartial()+
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RecognitionConfig.Builder clone()+
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>public RecognitionConfig.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<RecognitionConfig.Builder>public RecognitionConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)+
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>public RecognitionConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)+
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>public RecognitionConfig.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<RecognitionConfig.Builder>public RecognitionConfig.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<RecognitionConfig.Builder>public RecognitionConfig.Builder mergeFrom(com.google.protobuf.Message other)+
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RecognitionConfig.Builder>public RecognitionConfig.Builder mergeFrom(RecognitionConfig other)+
public final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>public RecognitionConfig.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<RecognitionConfig.Builder>java.io.IOExceptionpublic int getEncodingValue()+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;getEncodingValue in interface RecognitionConfigOrBuilderpublic RecognitionConfig.Builder setEncodingValue(int value)+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;public RecognitionConfig.AudioEncoding getEncoding()+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;getEncoding in interface RecognitionConfigOrBuilderpublic RecognitionConfig.Builder setEncoding(RecognitionConfig.AudioEncoding value)+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;public RecognitionConfig.Builder clearEncoding()+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;public int getSampleRate()+
+ *Required* Sample rate in Hertz of the audio data sent in all + `RecognitionAudio` messages. Valid values are: 8000-48000. + 16000 is optimal. For best results, set the sampling rate of the audio + source to 16000 Hz. If that's not possible, use the native sample rate of + the audio source (instead of re-sampling). ++ +
int32 sample_rate = 2;getSampleRate in interface RecognitionConfigOrBuilderpublic RecognitionConfig.Builder setSampleRate(int value)+
+ *Required* Sample rate in Hertz of the audio data sent in all + `RecognitionAudio` messages. Valid values are: 8000-48000. + 16000 is optimal. For best results, set the sampling rate of the audio + source to 16000 Hz. If that's not possible, use the native sample rate of + the audio source (instead of re-sampling). ++ +
int32 sample_rate = 2;public RecognitionConfig.Builder clearSampleRate()+
+ *Required* Sample rate in Hertz of the audio data sent in all + `RecognitionAudio` messages. Valid values are: 8000-48000. + 16000 is optimal. For best results, set the sampling rate of the audio + source to 16000 Hz. If that's not possible, use the native sample rate of + the audio source (instead of re-sampling). ++ +
int32 sample_rate = 2;public java.lang.String getLanguageCode()+
+ *Optional* The language of the supplied audio as a BCP-47 language tag. + Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt + If omitted, defaults to "en-US". See + [Language Support](https://cloud.google.com/speech/docs/languages) + for a list of the currently supported language codes. ++ +
string language_code = 3;getLanguageCode in interface RecognitionConfigOrBuilderpublic com.google.protobuf.ByteString getLanguageCodeBytes()+
+ *Optional* The language of the supplied audio as a BCP-47 language tag. + Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt + If omitted, defaults to "en-US". See + [Language Support](https://cloud.google.com/speech/docs/languages) + for a list of the currently supported language codes. ++ +
string language_code = 3;getLanguageCodeBytes in interface RecognitionConfigOrBuilderpublic RecognitionConfig.Builder setLanguageCode(java.lang.String value)+
+ *Optional* The language of the supplied audio as a BCP-47 language tag. + Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt + If omitted, defaults to "en-US". See + [Language Support](https://cloud.google.com/speech/docs/languages) + for a list of the currently supported language codes. ++ +
string language_code = 3;public RecognitionConfig.Builder clearLanguageCode()+
+ *Optional* The language of the supplied audio as a BCP-47 language tag. + Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt + If omitted, defaults to "en-US". See + [Language Support](https://cloud.google.com/speech/docs/languages) + for a list of the currently supported language codes. ++ +
string language_code = 3;public RecognitionConfig.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)+
+ *Optional* The language of the supplied audio as a BCP-47 language tag. + Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt + If omitted, defaults to "en-US". See + [Language Support](https://cloud.google.com/speech/docs/languages) + for a list of the currently supported language codes. ++ +
string language_code = 3;public int getMaxAlternatives()+
+ *Optional* Maximum number of recognition hypotheses to be returned. + Specifically, the maximum number of `SpeechRecognitionAlternative` messages + within each `SpeechRecognitionResult`. + The server may return fewer than `max_alternatives`. + Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of + one. If omitted, will return a maximum of one. ++ +
int32 max_alternatives = 4;getMaxAlternatives in interface RecognitionConfigOrBuilderpublic RecognitionConfig.Builder setMaxAlternatives(int value)+
+ *Optional* Maximum number of recognition hypotheses to be returned. + Specifically, the maximum number of `SpeechRecognitionAlternative` messages + within each `SpeechRecognitionResult`. + The server may return fewer than `max_alternatives`. + Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of + one. If omitted, will return a maximum of one. ++ +
int32 max_alternatives = 4;public RecognitionConfig.Builder clearMaxAlternatives()+
+ *Optional* Maximum number of recognition hypotheses to be returned. + Specifically, the maximum number of `SpeechRecognitionAlternative` messages + within each `SpeechRecognitionResult`. + The server may return fewer than `max_alternatives`. + Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of + one. If omitted, will return a maximum of one. ++ +
int32 max_alternatives = 4;public boolean getProfanityFilter()+
+ *Optional* If set to `true`, the server will attempt to filter out + profanities, replacing all but the initial character in each filtered word + with asterisks, e.g. "f***". If set to `false` or omitted, profanities + won't be filtered out. ++ +
bool profanity_filter = 5;getProfanityFilter in interface RecognitionConfigOrBuilderpublic RecognitionConfig.Builder setProfanityFilter(boolean value)+
+ *Optional* If set to `true`, the server will attempt to filter out + profanities, replacing all but the initial character in each filtered word + with asterisks, e.g. "f***". If set to `false` or omitted, profanities + won't be filtered out. ++ +
bool profanity_filter = 5;public RecognitionConfig.Builder clearProfanityFilter()+
+ *Optional* If set to `true`, the server will attempt to filter out + profanities, replacing all but the initial character in each filtered word + with asterisks, e.g. "f***". If set to `false` or omitted, profanities + won't be filtered out. ++ +
bool profanity_filter = 5;public boolean hasSpeechContext()+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;hasSpeechContext in interface RecognitionConfigOrBuilderpublic SpeechContext getSpeechContext()+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;getSpeechContext in interface RecognitionConfigOrBuilderpublic RecognitionConfig.Builder setSpeechContext(SpeechContext value)+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;public RecognitionConfig.Builder setSpeechContext(SpeechContext.Builder builderForValue)+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;public RecognitionConfig.Builder mergeSpeechContext(SpeechContext value)+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;public RecognitionConfig.Builder clearSpeechContext()+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;public SpeechContext.Builder getSpeechContextBuilder()+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;public SpeechContextOrBuilder getSpeechContextOrBuilder()+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;getSpeechContextOrBuilder in interface RecognitionConfigOrBuilderpublic final RecognitionConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>public final RecognitionConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>public final class RecognitionConfig +extends com.google.protobuf.GeneratedMessageV3 +implements RecognitionConfigOrBuilder+
+ Provides information to the recognizer that specifies how to process the + request. ++ + Protobuf type
google.cloud.speech.v1beta1.RecognitionConfig| Modifier and Type | +Class and Description | +
|---|---|
static class |
+RecognitionConfig.AudioEncoding
+
+ Audio encoding of the data sent in the audio message.
+ |
+
static class |
+RecognitionConfig.Builder
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | +Field and Description | +
|---|---|
static int |
+ENCODING_FIELD_NUMBER |
+
static int |
+LANGUAGE_CODE_FIELD_NUMBER |
+
static int |
+MAX_ALTERNATIVES_FIELD_NUMBER |
+
static int |
+PROFANITY_FILTER_FIELD_NUMBER |
+
static int |
+SAMPLE_RATE_FIELD_NUMBER |
+
static int |
+SPEECH_CONTEXT_FIELD_NUMBER |
+
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(java.lang.Object obj) |
+
static RecognitionConfig |
+getDefaultInstance() |
+
RecognitionConfig |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
RecognitionConfig.AudioEncoding |
+getEncoding()
+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
+ |
+
int |
+getEncodingValue()
+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
+ |
+
java.lang.String |
+getLanguageCode()
+
+ *Optional* The language of the supplied audio as a BCP-47 language tag.
+ |
+
com.google.protobuf.ByteString |
+getLanguageCodeBytes()
+
+ *Optional* The language of the supplied audio as a BCP-47 language tag.
+ |
+
int |
+getMaxAlternatives()
+
+ *Optional* Maximum number of recognition hypotheses to be returned.
+ |
+
com.google.protobuf.Parser<RecognitionConfig> |
+getParserForType() |
+
boolean |
+getProfanityFilter()
+
+ *Optional* If set to `true`, the server will attempt to filter out
+ profanities, replacing all but the initial character in each filtered word
+ with asterisks, e.g.
+ |
+
int |
+getSampleRate()
+
+ *Required* Sample rate in Hertz of the audio data sent in all
+ `RecognitionAudio` messages.
+ |
+
int |
+getSerializedSize() |
+
SpeechContext |
+getSpeechContext()
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
SpeechContextOrBuilder |
+getSpeechContextOrBuilder()
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
int |
+hashCode() |
+
boolean |
+hasSpeechContext()
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static RecognitionConfig.Builder |
+newBuilder() |
+
static RecognitionConfig.Builder |
+newBuilder(RecognitionConfig prototype) |
+
RecognitionConfig.Builder |
+newBuilderForType() |
+
protected RecognitionConfig.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static RecognitionConfig |
+parseDelimitedFrom(java.io.InputStream input) |
+
static RecognitionConfig |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static RecognitionConfig |
+parseFrom(byte[] data) |
+
static RecognitionConfig |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static RecognitionConfig |
+parseFrom(java.nio.ByteBuffer data) |
+
static RecognitionConfig |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static RecognitionConfig |
+parseFrom(com.google.protobuf.ByteString data) |
+
static RecognitionConfig |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static RecognitionConfig |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static RecognitionConfig |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static RecognitionConfig |
+parseFrom(java.io.InputStream input) |
+
static RecognitionConfig |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<RecognitionConfig> |
+parser() |
+
RecognitionConfig.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 ENCODING_FIELD_NUMBER+
public static final int SAMPLE_RATE_FIELD_NUMBER+
public static final int LANGUAGE_CODE_FIELD_NUMBER+
public static final int MAX_ALTERNATIVES_FIELD_NUMBER+
public static final int PROFANITY_FILTER_FIELD_NUMBER+
public static final int SPEECH_CONTEXT_FIELD_NUMBER+
public final com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getEncodingValue()+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;getEncodingValue in interface RecognitionConfigOrBuilderpublic RecognitionConfig.AudioEncoding getEncoding()+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;getEncoding in interface RecognitionConfigOrBuilderpublic int getSampleRate()+
+ *Required* Sample rate in Hertz of the audio data sent in all + `RecognitionAudio` messages. Valid values are: 8000-48000. + 16000 is optimal. For best results, set the sampling rate of the audio + source to 16000 Hz. If that's not possible, use the native sample rate of + the audio source (instead of re-sampling). ++ +
int32 sample_rate = 2;getSampleRate in interface RecognitionConfigOrBuilderpublic java.lang.String getLanguageCode()+
+ *Optional* The language of the supplied audio as a BCP-47 language tag. + Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt + If omitted, defaults to "en-US". See + [Language Support](https://cloud.google.com/speech/docs/languages) + for a list of the currently supported language codes. ++ +
string language_code = 3;getLanguageCode in interface RecognitionConfigOrBuilderpublic com.google.protobuf.ByteString getLanguageCodeBytes()+
+ *Optional* The language of the supplied audio as a BCP-47 language tag. + Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt + If omitted, defaults to "en-US". See + [Language Support](https://cloud.google.com/speech/docs/languages) + for a list of the currently supported language codes. ++ +
string language_code = 3;getLanguageCodeBytes in interface RecognitionConfigOrBuilderpublic int getMaxAlternatives()+
+ *Optional* Maximum number of recognition hypotheses to be returned. + Specifically, the maximum number of `SpeechRecognitionAlternative` messages + within each `SpeechRecognitionResult`. + The server may return fewer than `max_alternatives`. + Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of + one. If omitted, will return a maximum of one. ++ +
int32 max_alternatives = 4;getMaxAlternatives in interface RecognitionConfigOrBuilderpublic boolean getProfanityFilter()+
+ *Optional* If set to `true`, the server will attempt to filter out + profanities, replacing all but the initial character in each filtered word + with asterisks, e.g. "f***". If set to `false` or omitted, profanities + won't be filtered out. ++ +
bool profanity_filter = 5;getProfanityFilter in interface RecognitionConfigOrBuilderpublic boolean hasSpeechContext()+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;hasSpeechContext in interface RecognitionConfigOrBuilderpublic SpeechContext getSpeechContext()+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;getSpeechContext in interface RecognitionConfigOrBuilderpublic SpeechContextOrBuilder getSpeechContextOrBuilder()+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;getSpeechContextOrBuilder in interface RecognitionConfigOrBuilderpublic final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RecognitionConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionConfig parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionConfig parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionConfig parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static RecognitionConfig parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static RecognitionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static RecognitionConfig parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static RecognitionConfig parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static RecognitionConfig parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic RecognitionConfig.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RecognitionConfig.Builder newBuilder()+
public static RecognitionConfig.Builder newBuilder(RecognitionConfig prototype)+
public RecognitionConfig.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RecognitionConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RecognitionConfig getDefaultInstance()+
public static com.google.protobuf.Parser<RecognitionConfig> parser()+
public com.google.protobuf.Parser<RecognitionConfig> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RecognitionConfig getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface RecognitionConfigOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
RecognitionConfig.AudioEncoding |
+getEncoding()
+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
+ |
+
int |
+getEncodingValue()
+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
+ |
+
java.lang.String |
+getLanguageCode()
+
+ *Optional* The language of the supplied audio as a BCP-47 language tag.
+ |
+
com.google.protobuf.ByteString |
+getLanguageCodeBytes()
+
+ *Optional* The language of the supplied audio as a BCP-47 language tag.
+ |
+
int |
+getMaxAlternatives()
+
+ *Optional* Maximum number of recognition hypotheses to be returned.
+ |
+
boolean |
+getProfanityFilter()
+
+ *Optional* If set to `true`, the server will attempt to filter out
+ profanities, replacing all but the initial character in each filtered word
+ with asterisks, e.g.
+ |
+
int |
+getSampleRate()
+
+ *Required* Sample rate in Hertz of the audio data sent in all
+ `RecognitionAudio` messages.
+ |
+
SpeechContext |
+getSpeechContext()
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
SpeechContextOrBuilder |
+getSpeechContextOrBuilder()
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
boolean |
+hasSpeechContext()
+
+ *Optional* A means to provide context to assist the speech recognition.
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedint getEncodingValue()+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;RecognitionConfig.AudioEncoding getEncoding()+
+ *Required* Encoding of audio data sent in all `RecognitionAudio` messages. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding encoding = 1;int getSampleRate()+
+ *Required* Sample rate in Hertz of the audio data sent in all + `RecognitionAudio` messages. Valid values are: 8000-48000. + 16000 is optimal. For best results, set the sampling rate of the audio + source to 16000 Hz. If that's not possible, use the native sample rate of + the audio source (instead of re-sampling). ++ +
int32 sample_rate = 2;java.lang.String getLanguageCode()+
+ *Optional* The language of the supplied audio as a BCP-47 language tag. + Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt + If omitted, defaults to "en-US". See + [Language Support](https://cloud.google.com/speech/docs/languages) + for a list of the currently supported language codes. ++ +
string language_code = 3;com.google.protobuf.ByteString getLanguageCodeBytes()+
+ *Optional* The language of the supplied audio as a BCP-47 language tag. + Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt + If omitted, defaults to "en-US". See + [Language Support](https://cloud.google.com/speech/docs/languages) + for a list of the currently supported language codes. ++ +
string language_code = 3;int getMaxAlternatives()+
+ *Optional* Maximum number of recognition hypotheses to be returned. + Specifically, the maximum number of `SpeechRecognitionAlternative` messages + within each `SpeechRecognitionResult`. + The server may return fewer than `max_alternatives`. + Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of + one. If omitted, will return a maximum of one. ++ +
int32 max_alternatives = 4;boolean getProfanityFilter()+
+ *Optional* If set to `true`, the server will attempt to filter out + profanities, replacing all but the initial character in each filtered word + with asterisks, e.g. "f***". If set to `false` or omitted, profanities + won't be filtered out. ++ +
bool profanity_filter = 5;boolean hasSpeechContext()+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;SpeechContext getSpeechContext()+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;SpeechContextOrBuilder getSpeechContextOrBuilder()+
+ *Optional* A means to provide context to assist the speech recognition. ++ +
.google.cloud.speech.v1beta1.SpeechContext speech_context = 6;public static final class SpeechContext.Builder +extends com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder> +implements SpeechContextOrBuilder+
+ Provides "hints" to the speech recognizer to favor specific words and phrases + in the results. ++ + Protobuf type
google.cloud.speech.v1beta1.SpeechContext| Modifier and Type | +Method and Description | +
|---|---|
SpeechContext.Builder |
+addAllPhrases(java.lang.Iterable<java.lang.String> values)
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
SpeechContext.Builder |
+addPhrases(java.lang.String value)
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
SpeechContext.Builder |
+addPhrasesBytes(com.google.protobuf.ByteString value)
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
SpeechContext.Builder |
+addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
SpeechContext |
+build() |
+
SpeechContext |
+buildPartial() |
+
SpeechContext.Builder |
+clear() |
+
SpeechContext.Builder |
+clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
+
SpeechContext.Builder |
+clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
+
SpeechContext.Builder |
+clearPhrases()
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
SpeechContext.Builder |
+clone() |
+
SpeechContext |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.Descriptor |
+getDescriptorForType() |
+
java.lang.String |
+getPhrases(int index)
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
com.google.protobuf.ByteString |
+getPhrasesBytes(int index)
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
int |
+getPhrasesCount()
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
com.google.protobuf.ProtocolStringList |
+getPhrasesList()
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
SpeechContext.Builder |
+mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
SpeechContext.Builder |
+mergeFrom(com.google.protobuf.Message other) |
+
SpeechContext.Builder |
+mergeFrom(SpeechContext other) |
+
SpeechContext.Builder |
+mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
SpeechContext.Builder |
+setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
SpeechContext.Builder |
+setPhrases(int index,
+ java.lang.String value)
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
SpeechContext.Builder |
+setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) |
+
SpeechContext.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext.Builder clear()+
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.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<SpeechContext.Builder>public SpeechContext getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SpeechContext build()+
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SpeechContext buildPartial()+
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SpeechContext.Builder clone()+
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext.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<SpeechContext.Builder>public SpeechContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)+
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)+
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext.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<SpeechContext.Builder>public SpeechContext.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<SpeechContext.Builder>public SpeechContext.Builder mergeFrom(com.google.protobuf.Message other)+
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpeechContext.Builder>public SpeechContext.Builder mergeFrom(SpeechContext other)+
public final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext.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<SpeechContext.Builder>java.io.IOExceptionpublic com.google.protobuf.ProtocolStringList getPhrasesList()+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;getPhrasesList in interface SpeechContextOrBuilderpublic int getPhrasesCount()+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;getPhrasesCount in interface SpeechContextOrBuilderpublic java.lang.String getPhrases(int index)+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;getPhrases in interface SpeechContextOrBuilderpublic com.google.protobuf.ByteString getPhrasesBytes(int index)+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;getPhrasesBytes in interface SpeechContextOrBuilderpublic SpeechContext.Builder setPhrases(int index, + java.lang.String value)+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;public SpeechContext.Builder addPhrases(java.lang.String value)+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;public SpeechContext.Builder addAllPhrases(java.lang.Iterable<java.lang.String> values)+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;public SpeechContext.Builder clearPhrases()+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;public SpeechContext.Builder addPhrasesBytes(com.google.protobuf.ByteString value)+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;public final SpeechContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public final SpeechContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public final class SpeechContext +extends com.google.protobuf.GeneratedMessageV3 +implements SpeechContextOrBuilder+
+ Provides "hints" to the speech recognizer to favor specific words and phrases + in the results. ++ + Protobuf type
google.cloud.speech.v1beta1.SpeechContext| Modifier and Type | +Class and Description | +
|---|---|
static class |
+SpeechContext.Builder
+
+ Provides "hints" to the speech recognizer to favor specific words and phrases
+ in the results.
+ |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | +Field and Description | +
|---|---|
static int |
+PHRASES_FIELD_NUMBER |
+
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(java.lang.Object obj) |
+
static SpeechContext |
+getDefaultInstance() |
+
SpeechContext |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Parser<SpeechContext> |
+getParserForType() |
+
java.lang.String |
+getPhrases(int index)
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
com.google.protobuf.ByteString |
+getPhrasesBytes(int index)
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
int |
+getPhrasesCount()
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
com.google.protobuf.ProtocolStringList |
+getPhrasesList()
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
int |
+getSerializedSize() |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
int |
+hashCode() |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static SpeechContext.Builder |
+newBuilder() |
+
static SpeechContext.Builder |
+newBuilder(SpeechContext prototype) |
+
SpeechContext.Builder |
+newBuilderForType() |
+
protected SpeechContext.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static SpeechContext |
+parseDelimitedFrom(java.io.InputStream input) |
+
static SpeechContext |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechContext |
+parseFrom(byte[] data) |
+
static SpeechContext |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechContext |
+parseFrom(java.nio.ByteBuffer data) |
+
static SpeechContext |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechContext |
+parseFrom(com.google.protobuf.ByteString data) |
+
static SpeechContext |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechContext |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static SpeechContext |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechContext |
+parseFrom(java.io.InputStream input) |
+
static SpeechContext |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<SpeechContext> |
+parser() |
+
SpeechContext.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 PHRASES_FIELD_NUMBER+
public final com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public com.google.protobuf.ProtocolStringList getPhrasesList()+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;getPhrasesList in interface SpeechContextOrBuilderpublic int getPhrasesCount()+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;getPhrasesCount in interface SpeechContextOrBuilderpublic java.lang.String getPhrases(int index)+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;getPhrases in interface SpeechContextOrBuilderpublic com.google.protobuf.ByteString getPhrasesBytes(int index)+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;getPhrasesBytes in interface SpeechContextOrBuilderpublic final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SpeechContext parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechContext parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechContext parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechContext parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechContext parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechContext parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechContext parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechContext parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechContext parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechContext parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic SpeechContext.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SpeechContext.Builder newBuilder()+
public static SpeechContext.Builder newBuilder(SpeechContext prototype)+
public SpeechContext.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SpeechContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SpeechContext getDefaultInstance()+
public static com.google.protobuf.Parser<SpeechContext> parser()+
public com.google.protobuf.Parser<SpeechContext> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SpeechContext getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface SpeechContextOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
java.lang.String |
+getPhrases(int index)
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
com.google.protobuf.ByteString |
+getPhrasesBytes(int index)
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
int |
+getPhrasesCount()
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
java.util.List<java.lang.String> |
+getPhrasesList()
+
+ *Optional* A list of strings containing words and phrases "hints" so that
+ the speech recognition is more likely to recognize them.
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedjava.util.List<java.lang.String> getPhrasesList()+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;int getPhrasesCount()+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;java.lang.String getPhrases(int index)+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;com.google.protobuf.ByteString getPhrasesBytes(int index)+
+ *Optional* A list of strings containing words and phrases "hints" so that + the speech recognition is more likely to recognize them. This can be used + to improve the accuracy for specific words and phrases, for example, if + specific commands are typically spoken by the user. This can also be used + to add additional words to the vocabulary of the recognizer. See + [usage limits](https://cloud.google.com/speech/limits#content). ++ +
repeated string phrases = 1;public final class SpeechProto
+extends java.lang.Object
+| Modifier and Type | +Method and Description | +
|---|---|
static com.google.protobuf.Descriptors.FileDescriptor |
+getDescriptor() |
+
static void |
+registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) |
+
static void |
+registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)+
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry)+
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor()+
public static final class SpeechRecognitionAlternative.Builder +extends com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder> +implements SpeechRecognitionAlternativeOrBuilder+
+ Alternative hypotheses (a.k.a. n-best list). ++ + Protobuf type
google.cloud.speech.v1beta1.SpeechRecognitionAlternative| Modifier and Type | +Method and Description | +
|---|---|
SpeechRecognitionAlternative.Builder |
+addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
SpeechRecognitionAlternative |
+build() |
+
SpeechRecognitionAlternative |
+buildPartial() |
+
SpeechRecognitionAlternative.Builder |
+clear() |
+
SpeechRecognitionAlternative.Builder |
+clearConfidence()
+
+ *Output-only* The confidence estimate between 0.0 and 1.0.
+ |
+
SpeechRecognitionAlternative.Builder |
+clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
+
SpeechRecognitionAlternative.Builder |
+clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
+
SpeechRecognitionAlternative.Builder |
+clearTranscript()
+
+ *Output-only* Transcript text representing the words that the user spoke.
+ |
+
SpeechRecognitionAlternative.Builder |
+clone() |
+
float |
+getConfidence()
+
+ *Output-only* The confidence estimate between 0.0 and 1.0.
+ |
+
SpeechRecognitionAlternative |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.Descriptor |
+getDescriptorForType() |
+
java.lang.String |
+getTranscript()
+
+ *Output-only* Transcript text representing the words that the user spoke.
+ |
+
com.google.protobuf.ByteString |
+getTranscriptBytes()
+
+ *Output-only* Transcript text representing the words that the user spoke.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
SpeechRecognitionAlternative.Builder |
+mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
SpeechRecognitionAlternative.Builder |
+mergeFrom(com.google.protobuf.Message other) |
+
SpeechRecognitionAlternative.Builder |
+mergeFrom(SpeechRecognitionAlternative other) |
+
SpeechRecognitionAlternative.Builder |
+mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
SpeechRecognitionAlternative.Builder |
+setConfidence(float value)
+
+ *Output-only* The confidence estimate between 0.0 and 1.0.
+ |
+
SpeechRecognitionAlternative.Builder |
+setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
SpeechRecognitionAlternative.Builder |
+setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) |
+
SpeechRecognitionAlternative.Builder |
+setTranscript(java.lang.String value)
+
+ *Output-only* Transcript text representing the words that the user spoke.
+ |
+
SpeechRecognitionAlternative.Builder |
+setTranscriptBytes(com.google.protobuf.ByteString value)
+
+ *Output-only* Transcript text representing the words that the user spoke.
+ |
+
SpeechRecognitionAlternative.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder clear()+
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.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<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SpeechRecognitionAlternative build()+
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SpeechRecognitionAlternative buildPartial()+
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SpeechRecognitionAlternative.Builder clone()+
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.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<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)+
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)+
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.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<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.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<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder mergeFrom(com.google.protobuf.Message other)+
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.Builder mergeFrom(SpeechRecognitionAlternative other)+
public final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public SpeechRecognitionAlternative.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<SpeechRecognitionAlternative.Builder>java.io.IOExceptionpublic java.lang.String getTranscript()+
+ *Output-only* Transcript text representing the words that the user spoke. ++ +
string transcript = 1;getTranscript in interface SpeechRecognitionAlternativeOrBuilderpublic com.google.protobuf.ByteString getTranscriptBytes()+
+ *Output-only* Transcript text representing the words that the user spoke. ++ +
string transcript = 1;getTranscriptBytes in interface SpeechRecognitionAlternativeOrBuilderpublic SpeechRecognitionAlternative.Builder setTranscript(java.lang.String value)+
+ *Output-only* Transcript text representing the words that the user spoke. ++ +
string transcript = 1;public SpeechRecognitionAlternative.Builder clearTranscript()+
+ *Output-only* Transcript text representing the words that the user spoke. ++ +
string transcript = 1;public SpeechRecognitionAlternative.Builder setTranscriptBytes(com.google.protobuf.ByteString value)+
+ *Output-only* Transcript text representing the words that the user spoke. ++ +
string transcript = 1;public float getConfidence()+
+ *Output-only* The confidence estimate between 0.0 and 1.0. A higher number + indicates an estimated greater likelihood that the recognized words are + correct. This field is typically provided only for the top hypothesis, and + only for `is_final=true` results. Clients should not rely on the + `confidence` field as it is not guaranteed to be accurate, or even set, in + any of the results. + The default of 0.0 is a sentinel value indicating `confidence` was not set. ++ +
float confidence = 2;getConfidence in interface SpeechRecognitionAlternativeOrBuilderpublic SpeechRecognitionAlternative.Builder setConfidence(float value)+
+ *Output-only* The confidence estimate between 0.0 and 1.0. A higher number + indicates an estimated greater likelihood that the recognized words are + correct. This field is typically provided only for the top hypothesis, and + only for `is_final=true` results. Clients should not rely on the + `confidence` field as it is not guaranteed to be accurate, or even set, in + any of the results. + The default of 0.0 is a sentinel value indicating `confidence` was not set. ++ +
float confidence = 2;public SpeechRecognitionAlternative.Builder clearConfidence()+
+ *Output-only* The confidence estimate between 0.0 and 1.0. A higher number + indicates an estimated greater likelihood that the recognized words are + correct. This field is typically provided only for the top hypothesis, and + only for `is_final=true` results. Clients should not rely on the + `confidence` field as it is not guaranteed to be accurate, or even set, in + any of the results. + The default of 0.0 is a sentinel value indicating `confidence` was not set. ++ +
float confidence = 2;public final SpeechRecognitionAlternative.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public final SpeechRecognitionAlternative.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder>public final class SpeechRecognitionAlternative +extends com.google.protobuf.GeneratedMessageV3 +implements SpeechRecognitionAlternativeOrBuilder+
+ Alternative hypotheses (a.k.a. n-best list). ++ + Protobuf type
google.cloud.speech.v1beta1.SpeechRecognitionAlternative| Modifier and Type | +Class and Description | +
|---|---|
static class |
+SpeechRecognitionAlternative.Builder
+
+ Alternative hypotheses (a.k.a.
+ |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | +Field and Description | +
|---|---|
static int |
+CONFIDENCE_FIELD_NUMBER |
+
static int |
+TRANSCRIPT_FIELD_NUMBER |
+
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(java.lang.Object obj) |
+
float |
+getConfidence()
+
+ *Output-only* The confidence estimate between 0.0 and 1.0.
+ |
+
static SpeechRecognitionAlternative |
+getDefaultInstance() |
+
SpeechRecognitionAlternative |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Parser<SpeechRecognitionAlternative> |
+getParserForType() |
+
int |
+getSerializedSize() |
+
java.lang.String |
+getTranscript()
+
+ *Output-only* Transcript text representing the words that the user spoke.
+ |
+
com.google.protobuf.ByteString |
+getTranscriptBytes()
+
+ *Output-only* Transcript text representing the words that the user spoke.
+ |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
int |
+hashCode() |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static SpeechRecognitionAlternative.Builder |
+newBuilder() |
+
static SpeechRecognitionAlternative.Builder |
+newBuilder(SpeechRecognitionAlternative prototype) |
+
SpeechRecognitionAlternative.Builder |
+newBuilderForType() |
+
protected SpeechRecognitionAlternative.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static SpeechRecognitionAlternative |
+parseDelimitedFrom(java.io.InputStream input) |
+
static SpeechRecognitionAlternative |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechRecognitionAlternative |
+parseFrom(byte[] data) |
+
static SpeechRecognitionAlternative |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechRecognitionAlternative |
+parseFrom(java.nio.ByteBuffer data) |
+
static SpeechRecognitionAlternative |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechRecognitionAlternative |
+parseFrom(com.google.protobuf.ByteString data) |
+
static SpeechRecognitionAlternative |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechRecognitionAlternative |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static SpeechRecognitionAlternative |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechRecognitionAlternative |
+parseFrom(java.io.InputStream input) |
+
static SpeechRecognitionAlternative |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<SpeechRecognitionAlternative> |
+parser() |
+
SpeechRecognitionAlternative.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 TRANSCRIPT_FIELD_NUMBER+
public static final int CONFIDENCE_FIELD_NUMBER+
public final com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getTranscript()+
+ *Output-only* Transcript text representing the words that the user spoke. ++ +
string transcript = 1;getTranscript in interface SpeechRecognitionAlternativeOrBuilderpublic com.google.protobuf.ByteString getTranscriptBytes()+
+ *Output-only* Transcript text representing the words that the user spoke. ++ +
string transcript = 1;getTranscriptBytes in interface SpeechRecognitionAlternativeOrBuilderpublic float getConfidence()+
+ *Output-only* The confidence estimate between 0.0 and 1.0. A higher number + indicates an estimated greater likelihood that the recognized words are + correct. This field is typically provided only for the top hypothesis, and + only for `is_final=true` results. Clients should not rely on the + `confidence` field as it is not guaranteed to be accurate, or even set, in + any of the results. + The default of 0.0 is a sentinel value indicating `confidence` was not set. ++ +
float confidence = 2;getConfidence in interface SpeechRecognitionAlternativeOrBuilderpublic final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SpeechRecognitionAlternative parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechRecognitionAlternative parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechRecognitionAlternative parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechRecognitionAlternative parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechRecognitionAlternative parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechRecognitionAlternative parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechRecognitionAlternative parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechRecognitionAlternative parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechRecognitionAlternative parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechRecognitionAlternative parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic SpeechRecognitionAlternative.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SpeechRecognitionAlternative.Builder newBuilder()+
public static SpeechRecognitionAlternative.Builder newBuilder(SpeechRecognitionAlternative prototype)+
public SpeechRecognitionAlternative.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SpeechRecognitionAlternative.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SpeechRecognitionAlternative getDefaultInstance()+
public static com.google.protobuf.Parser<SpeechRecognitionAlternative> parser()+
public com.google.protobuf.Parser<SpeechRecognitionAlternative> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SpeechRecognitionAlternative getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface SpeechRecognitionAlternativeOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
float |
+getConfidence()
+
+ *Output-only* The confidence estimate between 0.0 and 1.0.
+ |
+
java.lang.String |
+getTranscript()
+
+ *Output-only* Transcript text representing the words that the user spoke.
+ |
+
com.google.protobuf.ByteString |
+getTranscriptBytes()
+
+ *Output-only* Transcript text representing the words that the user spoke.
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedjava.lang.String getTranscript()+
+ *Output-only* Transcript text representing the words that the user spoke. ++ +
string transcript = 1;com.google.protobuf.ByteString getTranscriptBytes()+
+ *Output-only* Transcript text representing the words that the user spoke. ++ +
string transcript = 1;float getConfidence()+
+ *Output-only* The confidence estimate between 0.0 and 1.0. A higher number + indicates an estimated greater likelihood that the recognized words are + correct. This field is typically provided only for the top hypothesis, and + only for `is_final=true` results. Clients should not rely on the + `confidence` field as it is not guaranteed to be accurate, or even set, in + any of the results. + The default of 0.0 is a sentinel value indicating `confidence` was not set. ++ +
float confidence = 2;public static final class SpeechRecognitionResult.Builder +extends com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.Builder> +implements SpeechRecognitionResultOrBuilder+
+ A speech recognition result corresponding to a portion of the audio. ++ + Protobuf type
google.cloud.speech.v1beta1.SpeechRecognitionResult| Modifier and Type | +Method and Description | +
|---|---|
SpeechRecognitionResult.Builder |
+addAllAlternatives(java.lang.Iterable<? extends SpeechRecognitionAlternative> values)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionResult.Builder |
+addAlternatives(int index,
+ SpeechRecognitionAlternative.Builder builderForValue)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionResult.Builder |
+addAlternatives(int index,
+ SpeechRecognitionAlternative value)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionResult.Builder |
+addAlternatives(SpeechRecognitionAlternative.Builder builderForValue)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionResult.Builder |
+addAlternatives(SpeechRecognitionAlternative value)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionAlternative.Builder |
+addAlternativesBuilder()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionAlternative.Builder |
+addAlternativesBuilder(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionResult.Builder |
+addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
SpeechRecognitionResult |
+build() |
+
SpeechRecognitionResult |
+buildPartial() |
+
SpeechRecognitionResult.Builder |
+clear() |
+
SpeechRecognitionResult.Builder |
+clearAlternatives()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionResult.Builder |
+clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
+
SpeechRecognitionResult.Builder |
+clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
+
SpeechRecognitionResult.Builder |
+clone() |
+
SpeechRecognitionAlternative |
+getAlternatives(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionAlternative.Builder |
+getAlternativesBuilder(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<SpeechRecognitionAlternative.Builder> |
+getAlternativesBuilderList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
int |
+getAlternativesCount()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<SpeechRecognitionAlternative> |
+getAlternativesList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionAlternativeOrBuilder |
+getAlternativesOrBuilder(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> |
+getAlternativesOrBuilderList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionResult |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.Descriptor |
+getDescriptorForType() |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
SpeechRecognitionResult.Builder |
+mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
SpeechRecognitionResult.Builder |
+mergeFrom(com.google.protobuf.Message other) |
+
SpeechRecognitionResult.Builder |
+mergeFrom(SpeechRecognitionResult other) |
+
SpeechRecognitionResult.Builder |
+mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
SpeechRecognitionResult.Builder |
+removeAlternatives(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionResult.Builder |
+setAlternatives(int index,
+ SpeechRecognitionAlternative.Builder builderForValue)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionResult.Builder |
+setAlternatives(int index,
+ SpeechRecognitionAlternative value)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionResult.Builder |
+setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
SpeechRecognitionResult.Builder |
+setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) |
+
SpeechRecognitionResult.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.Builder>public SpeechRecognitionResult.Builder clear()+
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>public SpeechRecognitionResult getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SpeechRecognitionResult build()+
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SpeechRecognitionResult buildPartial()+
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SpeechRecognitionResult.Builder clone()+
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.Builder>public SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>public SpeechRecognitionResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)+
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.Builder>public SpeechRecognitionResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)+
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.Builder>public SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>public SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>public SpeechRecognitionResult.Builder mergeFrom(com.google.protobuf.Message other)+
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpeechRecognitionResult.Builder>public SpeechRecognitionResult.Builder mergeFrom(SpeechRecognitionResult other)+
public final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.Builder>public SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>java.io.IOExceptionpublic java.util.List<SpeechRecognitionAlternative> getAlternativesList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesList in interface SpeechRecognitionResultOrBuilderpublic int getAlternativesCount()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesCount in interface SpeechRecognitionResultOrBuilderpublic SpeechRecognitionAlternative getAlternatives(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternatives in interface SpeechRecognitionResultOrBuilderpublic SpeechRecognitionResult.Builder setAlternatives(int index, + SpeechRecognitionAlternative value)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionResult.Builder setAlternatives(int index, + SpeechRecognitionAlternative.Builder builderForValue)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionResult.Builder addAlternatives(SpeechRecognitionAlternative value)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionResult.Builder addAlternatives(int index, + SpeechRecognitionAlternative value)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionResult.Builder addAlternatives(SpeechRecognitionAlternative.Builder builderForValue)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionResult.Builder addAlternatives(int index, + SpeechRecognitionAlternative.Builder builderForValue)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionResult.Builder addAllAlternatives(java.lang.Iterable<? extends SpeechRecognitionAlternative> values)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionResult.Builder clearAlternatives()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionResult.Builder removeAlternatives(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionAlternative.Builder getAlternativesBuilder(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesOrBuilder in interface SpeechRecognitionResultOrBuilderpublic java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> getAlternativesOrBuilderList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesOrBuilderList in interface SpeechRecognitionResultOrBuilderpublic SpeechRecognitionAlternative.Builder addAlternativesBuilder()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionAlternative.Builder addAlternativesBuilder(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public java.util.List<SpeechRecognitionAlternative.Builder> getAlternativesBuilderList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public final SpeechRecognitionResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.Builder>public final SpeechRecognitionResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.Builder>public final class SpeechRecognitionResult +extends com.google.protobuf.GeneratedMessageV3 +implements SpeechRecognitionResultOrBuilder+
+ A speech recognition result corresponding to a portion of the audio. ++ + Protobuf type
google.cloud.speech.v1beta1.SpeechRecognitionResult| Modifier and Type | +Class and Description | +
|---|---|
static class |
+SpeechRecognitionResult.Builder
+
+ A speech recognition result corresponding to a portion of the audio.
+ |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | +Field and Description | +
|---|---|
static int |
+ALTERNATIVES_FIELD_NUMBER |
+
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(java.lang.Object obj) |
+
SpeechRecognitionAlternative |
+getAlternatives(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
int |
+getAlternativesCount()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<SpeechRecognitionAlternative> |
+getAlternativesList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionAlternativeOrBuilder |
+getAlternativesOrBuilder(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> |
+getAlternativesOrBuilderList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
static SpeechRecognitionResult |
+getDefaultInstance() |
+
SpeechRecognitionResult |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Parser<SpeechRecognitionResult> |
+getParserForType() |
+
int |
+getSerializedSize() |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
int |
+hashCode() |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static SpeechRecognitionResult.Builder |
+newBuilder() |
+
static SpeechRecognitionResult.Builder |
+newBuilder(SpeechRecognitionResult prototype) |
+
SpeechRecognitionResult.Builder |
+newBuilderForType() |
+
protected SpeechRecognitionResult.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static SpeechRecognitionResult |
+parseDelimitedFrom(java.io.InputStream input) |
+
static SpeechRecognitionResult |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechRecognitionResult |
+parseFrom(byte[] data) |
+
static SpeechRecognitionResult |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechRecognitionResult |
+parseFrom(java.nio.ByteBuffer data) |
+
static SpeechRecognitionResult |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechRecognitionResult |
+parseFrom(com.google.protobuf.ByteString data) |
+
static SpeechRecognitionResult |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechRecognitionResult |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static SpeechRecognitionResult |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SpeechRecognitionResult |
+parseFrom(java.io.InputStream input) |
+
static SpeechRecognitionResult |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<SpeechRecognitionResult> |
+parser() |
+
SpeechRecognitionResult.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 ALTERNATIVES_FIELD_NUMBER+
public final com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.util.List<SpeechRecognitionAlternative> getAlternativesList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesList in interface SpeechRecognitionResultOrBuilderpublic java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> getAlternativesOrBuilderList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesOrBuilderList in interface SpeechRecognitionResultOrBuilderpublic int getAlternativesCount()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesCount in interface SpeechRecognitionResultOrBuilderpublic SpeechRecognitionAlternative getAlternatives(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternatives in interface SpeechRecognitionResultOrBuilderpublic SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesOrBuilder in interface SpeechRecognitionResultOrBuilderpublic final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SpeechRecognitionResult parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechRecognitionResult parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechRecognitionResult parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechRecognitionResult parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechRecognitionResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechRecognitionResult parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechRecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechRecognitionResult parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechRecognitionResult parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SpeechRecognitionResult parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic SpeechRecognitionResult.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SpeechRecognitionResult.Builder newBuilder()+
public static SpeechRecognitionResult.Builder newBuilder(SpeechRecognitionResult prototype)+
public SpeechRecognitionResult.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SpeechRecognitionResult.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SpeechRecognitionResult getDefaultInstance()+
public static com.google.protobuf.Parser<SpeechRecognitionResult> parser()+
public com.google.protobuf.Parser<SpeechRecognitionResult> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SpeechRecognitionResult getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface SpeechRecognitionResultOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
SpeechRecognitionAlternative |
+getAlternatives(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
int |
+getAlternativesCount()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<SpeechRecognitionAlternative> |
+getAlternativesList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionAlternativeOrBuilder |
+getAlternativesOrBuilder(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> |
+getAlternativesOrBuilderList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedjava.util.List<SpeechRecognitionAlternative> getAlternativesList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;SpeechRecognitionAlternative getAlternatives(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;int getAlternativesCount()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> getAlternativesOrBuilderList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic 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>public final class StreamingRecognitionConfig +extends com.google.protobuf.GeneratedMessageV3 +implements StreamingRecognitionConfigOrBuilder+
+ Provides information to the recognizer that specifies how to process the + request. ++ + Protobuf type
google.cloud.speech.v1beta1.StreamingRecognitionConfig| Modifier and Type | +Class and Description | +
|---|---|
static class |
+StreamingRecognitionConfig.Builder
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.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 com.google.protobuf.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).
+ |
+
com.google.protobuf.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.
+ |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
boolean |
+hasConfig()
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
int |
+hashCode() |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static StreamingRecognitionConfig.Builder |
+newBuilder() |
+
static StreamingRecognitionConfig.Builder |
+newBuilder(StreamingRecognitionConfig prototype) |
+
StreamingRecognitionConfig.Builder |
+newBuilderForType() |
+
protected StreamingRecognitionConfig.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static StreamingRecognitionConfig |
+parseDelimitedFrom(java.io.InputStream input) |
+
static StreamingRecognitionConfig |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognitionConfig |
+parseFrom(byte[] data) |
+
static StreamingRecognitionConfig |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognitionConfig |
+parseFrom(java.nio.ByteBuffer data) |
+
static StreamingRecognitionConfig |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognitionConfig |
+parseFrom(com.google.protobuf.ByteString data) |
+
static StreamingRecognitionConfig |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognitionConfig |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static StreamingRecognitionConfig |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognitionConfig |
+parseFrom(java.io.InputStream input) |
+
static StreamingRecognitionConfig |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<StreamingRecognitionConfig> |
+parser() |
+
StreamingRecognitionConfig.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static StreamingRecognitionConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognitionConfig parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognitionConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognitionConfig parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognitionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognitionConfig parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognitionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognitionConfig parseFrom(java.io.InputStream input, + com.google.protobuf.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, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognitionConfig parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognitionConfig parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic StreamingRecognitionConfig.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static StreamingRecognitionConfig.Builder newBuilder()+
public static StreamingRecognitionConfig.Builder newBuilder(StreamingRecognitionConfig prototype)+
public StreamingRecognitionConfig.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected StreamingRecognitionConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static StreamingRecognitionConfig getDefaultInstance()+
public static com.google.protobuf.Parser<StreamingRecognitionConfig> parser()+
public com.google.protobuf.Parser<StreamingRecognitionConfig> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public StreamingRecognitionConfig getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface StreamingRecognitionConfigOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
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.
+ |
+
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.
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedboolean hasConfig()+
+ *Required* Provides information to the recognizer that specifies how to + process the request. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;RecognitionConfig getConfig()+
+ *Required* Provides information to the recognizer that specifies how to + process the request. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;RecognitionConfigOrBuilder getConfigOrBuilder()+
+ *Required* Provides information to the recognizer that specifies how to + process the request. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;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;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;public static final class StreamingRecognitionResult.Builder +extends com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder> +implements StreamingRecognitionResultOrBuilder+
+ A streaming speech recognition result corresponding to a portion of the audio + that is currently being processed. ++ + Protobuf type
google.cloud.speech.v1beta1.StreamingRecognitionResult| Modifier and Type | +Method and Description | +
|---|---|
StreamingRecognitionResult.Builder |
+addAllAlternatives(java.lang.Iterable<? extends SpeechRecognitionAlternative> values)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
StreamingRecognitionResult.Builder |
+addAlternatives(int index,
+ SpeechRecognitionAlternative.Builder builderForValue)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
StreamingRecognitionResult.Builder |
+addAlternatives(int index,
+ SpeechRecognitionAlternative value)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
StreamingRecognitionResult.Builder |
+addAlternatives(SpeechRecognitionAlternative.Builder builderForValue)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
StreamingRecognitionResult.Builder |
+addAlternatives(SpeechRecognitionAlternative value)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionAlternative.Builder |
+addAlternativesBuilder()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionAlternative.Builder |
+addAlternativesBuilder(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
StreamingRecognitionResult.Builder |
+addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
StreamingRecognitionResult |
+build() |
+
StreamingRecognitionResult |
+buildPartial() |
+
StreamingRecognitionResult.Builder |
+clear() |
+
StreamingRecognitionResult.Builder |
+clearAlternatives()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
StreamingRecognitionResult.Builder |
+clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
+
StreamingRecognitionResult.Builder |
+clearIsFinal()
+
+ *Output-only* If `false`, this `StreamingRecognitionResult` represents an
+ interim result that may change.
+ |
+
StreamingRecognitionResult.Builder |
+clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
+
StreamingRecognitionResult.Builder |
+clearStability()
+
+ *Output-only* An estimate of the likelihood that the recognizer will not
+ change its guess about this interim result.
+ |
+
StreamingRecognitionResult.Builder |
+clone() |
+
SpeechRecognitionAlternative |
+getAlternatives(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionAlternative.Builder |
+getAlternativesBuilder(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<SpeechRecognitionAlternative.Builder> |
+getAlternativesBuilderList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
int |
+getAlternativesCount()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<SpeechRecognitionAlternative> |
+getAlternativesList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionAlternativeOrBuilder |
+getAlternativesOrBuilder(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> |
+getAlternativesOrBuilderList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
StreamingRecognitionResult |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.Descriptor |
+getDescriptorForType() |
+
boolean |
+getIsFinal()
+
+ *Output-only* If `false`, this `StreamingRecognitionResult` represents an
+ interim result that may change.
+ |
+
float |
+getStability()
+
+ *Output-only* An estimate of the likelihood that the recognizer will not
+ change its guess about this interim result.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
StreamingRecognitionResult.Builder |
+mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
StreamingRecognitionResult.Builder |
+mergeFrom(com.google.protobuf.Message other) |
+
StreamingRecognitionResult.Builder |
+mergeFrom(StreamingRecognitionResult other) |
+
StreamingRecognitionResult.Builder |
+mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
StreamingRecognitionResult.Builder |
+removeAlternatives(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
StreamingRecognitionResult.Builder |
+setAlternatives(int index,
+ SpeechRecognitionAlternative.Builder builderForValue)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
StreamingRecognitionResult.Builder |
+setAlternatives(int index,
+ SpeechRecognitionAlternative value)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
StreamingRecognitionResult.Builder |
+setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
StreamingRecognitionResult.Builder |
+setIsFinal(boolean value)
+
+ *Output-only* If `false`, this `StreamingRecognitionResult` represents an
+ interim result that may change.
+ |
+
StreamingRecognitionResult.Builder |
+setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) |
+
StreamingRecognitionResult.Builder |
+setStability(float value)
+
+ *Output-only* An estimate of the likelihood that the recognizer will not
+ change its guess about this interim result.
+ |
+
StreamingRecognitionResult.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder clear()+
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.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<StreamingRecognitionResult.Builder>public StreamingRecognitionResult getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StreamingRecognitionResult build()+
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognitionResult buildPartial()+
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognitionResult.Builder clone()+
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.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<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)+
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)+
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.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<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.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<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder mergeFrom(com.google.protobuf.Message other)+
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.Builder mergeFrom(StreamingRecognitionResult other)+
public final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public StreamingRecognitionResult.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<StreamingRecognitionResult.Builder>java.io.IOExceptionpublic java.util.List<SpeechRecognitionAlternative> getAlternativesList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesList in interface StreamingRecognitionResultOrBuilderpublic int getAlternativesCount()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesCount in interface StreamingRecognitionResultOrBuilderpublic SpeechRecognitionAlternative getAlternatives(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternatives in interface StreamingRecognitionResultOrBuilderpublic StreamingRecognitionResult.Builder setAlternatives(int index, + SpeechRecognitionAlternative value)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder setAlternatives(int index, + SpeechRecognitionAlternative.Builder builderForValue)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAlternatives(SpeechRecognitionAlternative value)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAlternatives(int index, + SpeechRecognitionAlternative value)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAlternatives(SpeechRecognitionAlternative.Builder builderForValue)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAlternatives(int index, + SpeechRecognitionAlternative.Builder builderForValue)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder addAllAlternatives(java.lang.Iterable<? extends SpeechRecognitionAlternative> values)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder clearAlternatives()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public StreamingRecognitionResult.Builder removeAlternatives(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionAlternative.Builder getAlternativesBuilder(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesOrBuilder in interface StreamingRecognitionResultOrBuilderpublic java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> getAlternativesOrBuilderList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesOrBuilderList in interface StreamingRecognitionResultOrBuilderpublic SpeechRecognitionAlternative.Builder addAlternativesBuilder()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public SpeechRecognitionAlternative.Builder addAlternativesBuilder(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public java.util.List<SpeechRecognitionAlternative.Builder> getAlternativesBuilderList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;public boolean getIsFinal()+
+ *Output-only* If `false`, this `StreamingRecognitionResult` represents an + interim result that may change. If `true`, this is the final time the + speech service will return this particular `StreamingRecognitionResult`, + the recognizer will not return any further hypotheses for this portion of + the transcript and corresponding audio. ++ +
bool is_final = 2;getIsFinal in interface StreamingRecognitionResultOrBuilderpublic StreamingRecognitionResult.Builder setIsFinal(boolean value)+
+ *Output-only* If `false`, this `StreamingRecognitionResult` represents an + interim result that may change. If `true`, this is the final time the + speech service will return this particular `StreamingRecognitionResult`, + the recognizer will not return any further hypotheses for this portion of + the transcript and corresponding audio. ++ +
bool is_final = 2;public StreamingRecognitionResult.Builder clearIsFinal()+
+ *Output-only* If `false`, this `StreamingRecognitionResult` represents an + interim result that may change. If `true`, this is the final time the + speech service will return this particular `StreamingRecognitionResult`, + the recognizer will not return any further hypotheses for this portion of + the transcript and corresponding audio. ++ +
bool is_final = 2;public float getStability()+
+ *Output-only* An estimate of the likelihood that the recognizer will not + change its guess about this interim result. Values range from 0.0 + (completely unstable) to 1.0 (completely stable). + This field is only provided for interim results (`is_final=false`). + The default of 0.0 is a sentinel value indicating `stability` was not set. ++ +
float stability = 3;getStability in interface StreamingRecognitionResultOrBuilderpublic StreamingRecognitionResult.Builder setStability(float value)+
+ *Output-only* An estimate of the likelihood that the recognizer will not + change its guess about this interim result. Values range from 0.0 + (completely unstable) to 1.0 (completely stable). + This field is only provided for interim results (`is_final=false`). + The default of 0.0 is a sentinel value indicating `stability` was not set. ++ +
float stability = 3;public StreamingRecognitionResult.Builder clearStability()+
+ *Output-only* An estimate of the likelihood that the recognizer will not + change its guess about this interim result. Values range from 0.0 + (completely unstable) to 1.0 (completely stable). + This field is only provided for interim results (`is_final=false`). + The default of 0.0 is a sentinel value indicating `stability` was not set. ++ +
float stability = 3;public final StreamingRecognitionResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public final StreamingRecognitionResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognitionResult.Builder>public final class StreamingRecognitionResult +extends com.google.protobuf.GeneratedMessageV3 +implements StreamingRecognitionResultOrBuilder+
+ A streaming speech recognition result corresponding to a portion of the audio + that is currently being processed. ++ + Protobuf type
google.cloud.speech.v1beta1.StreamingRecognitionResult| Modifier and Type | +Class and Description | +
|---|---|
static class |
+StreamingRecognitionResult.Builder
+
+ A streaming speech recognition result corresponding to a portion of the audio
+ that is currently being processed.
+ |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | +Field and Description | +
|---|---|
static int |
+ALTERNATIVES_FIELD_NUMBER |
+
static int |
+IS_FINAL_FIELD_NUMBER |
+
static int |
+STABILITY_FIELD_NUMBER |
+
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(java.lang.Object obj) |
+
SpeechRecognitionAlternative |
+getAlternatives(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
int |
+getAlternativesCount()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<SpeechRecognitionAlternative> |
+getAlternativesList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionAlternativeOrBuilder |
+getAlternativesOrBuilder(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> |
+getAlternativesOrBuilderList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
static StreamingRecognitionResult |
+getDefaultInstance() |
+
StreamingRecognitionResult |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
boolean |
+getIsFinal()
+
+ *Output-only* If `false`, this `StreamingRecognitionResult` represents an
+ interim result that may change.
+ |
+
com.google.protobuf.Parser<StreamingRecognitionResult> |
+getParserForType() |
+
int |
+getSerializedSize() |
+
float |
+getStability()
+
+ *Output-only* An estimate of the likelihood that the recognizer will not
+ change its guess about this interim result.
+ |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
int |
+hashCode() |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static StreamingRecognitionResult.Builder |
+newBuilder() |
+
static StreamingRecognitionResult.Builder |
+newBuilder(StreamingRecognitionResult prototype) |
+
StreamingRecognitionResult.Builder |
+newBuilderForType() |
+
protected StreamingRecognitionResult.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static StreamingRecognitionResult |
+parseDelimitedFrom(java.io.InputStream input) |
+
static StreamingRecognitionResult |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognitionResult |
+parseFrom(byte[] data) |
+
static StreamingRecognitionResult |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognitionResult |
+parseFrom(java.nio.ByteBuffer data) |
+
static StreamingRecognitionResult |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognitionResult |
+parseFrom(com.google.protobuf.ByteString data) |
+
static StreamingRecognitionResult |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognitionResult |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static StreamingRecognitionResult |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognitionResult |
+parseFrom(java.io.InputStream input) |
+
static StreamingRecognitionResult |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<StreamingRecognitionResult> |
+parser() |
+
StreamingRecognitionResult.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 ALTERNATIVES_FIELD_NUMBER+
public static final int IS_FINAL_FIELD_NUMBER+
public static final int STABILITY_FIELD_NUMBER+
public final com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.util.List<SpeechRecognitionAlternative> getAlternativesList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesList in interface StreamingRecognitionResultOrBuilderpublic java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> getAlternativesOrBuilderList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesOrBuilderList in interface StreamingRecognitionResultOrBuilderpublic int getAlternativesCount()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesCount in interface StreamingRecognitionResultOrBuilderpublic SpeechRecognitionAlternative getAlternatives(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternatives in interface StreamingRecognitionResultOrBuilderpublic SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;getAlternativesOrBuilder in interface StreamingRecognitionResultOrBuilderpublic boolean getIsFinal()+
+ *Output-only* If `false`, this `StreamingRecognitionResult` represents an + interim result that may change. If `true`, this is the final time the + speech service will return this particular `StreamingRecognitionResult`, + the recognizer will not return any further hypotheses for this portion of + the transcript and corresponding audio. ++ +
bool is_final = 2;getIsFinal in interface StreamingRecognitionResultOrBuilderpublic float getStability()+
+ *Output-only* An estimate of the likelihood that the recognizer will not + change its guess about this interim result. Values range from 0.0 + (completely unstable) to 1.0 (completely stable). + This field is only provided for interim results (`is_final=false`). + The default of 0.0 is a sentinel value indicating `stability` was not set. ++ +
float stability = 3;getStability in interface StreamingRecognitionResultOrBuilderpublic final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static StreamingRecognitionResult parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognitionResult parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognitionResult parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognitionResult parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognitionResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognitionResult parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognitionResult parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognitionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognitionResult parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognitionResult parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognitionResult parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic StreamingRecognitionResult.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static StreamingRecognitionResult.Builder newBuilder()+
public static StreamingRecognitionResult.Builder newBuilder(StreamingRecognitionResult prototype)+
public StreamingRecognitionResult.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected StreamingRecognitionResult.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static StreamingRecognitionResult getDefaultInstance()+
public static com.google.protobuf.Parser<StreamingRecognitionResult> parser()+
public com.google.protobuf.Parser<StreamingRecognitionResult> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public StreamingRecognitionResult getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface StreamingRecognitionResultOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
SpeechRecognitionAlternative |
+getAlternatives(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
int |
+getAlternativesCount()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<SpeechRecognitionAlternative> |
+getAlternativesList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
SpeechRecognitionAlternativeOrBuilder |
+getAlternativesOrBuilder(int index)
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> |
+getAlternativesOrBuilderList()
+
+ *Output-only* May contain one or more recognition hypotheses (up to the
+ maximum specified in `max_alternatives`).
+ |
+
boolean |
+getIsFinal()
+
+ *Output-only* If `false`, this `StreamingRecognitionResult` represents an
+ interim result that may change.
+ |
+
float |
+getStability()
+
+ *Output-only* An estimate of the likelihood that the recognizer will not
+ change its guess about this interim result.
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedjava.util.List<SpeechRecognitionAlternative> getAlternativesList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;SpeechRecognitionAlternative getAlternatives(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;int getAlternativesCount()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;java.util.List<? extends SpeechRecognitionAlternativeOrBuilder> getAlternativesOrBuilderList()+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(int index)+
+ *Output-only* May contain one or more recognition hypotheses (up to the + maximum specified in `max_alternatives`). ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;boolean getIsFinal()+
+ *Output-only* If `false`, this `StreamingRecognitionResult` represents an + interim result that may change. If `true`, this is the final time the + speech service will return this particular `StreamingRecognitionResult`, + the recognizer will not return any further hypotheses for this portion of + the transcript and corresponding audio. ++ +
bool is_final = 2;float getStability()+
+ *Output-only* An estimate of the likelihood that the recognizer will not + change its guess about this interim result. Values range from 0.0 + (completely unstable) to 1.0 (completely stable). + This field is only provided for interim results (`is_final=false`). + The default of 0.0 is a sentinel value indicating `stability` was not set. ++ +
float stability = 3;public static final class StreamingRecognizeRequest.Builder +extends com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder> +implements StreamingRecognizeRequestOrBuilder+
+ The top-level message sent by the client for the `StreamingRecognize` method. + Multiple `StreamingRecognizeRequest` messages are sent. The first message + must contain a `streaming_config` message and must not contain `audio` data. + All subsequent messages must contain `audio` data and must not contain a + `streaming_config` message. ++ + Protobuf type
google.cloud.speech.v1beta1.StreamingRecognizeRequest| Modifier and Type | +Method and Description | +
|---|---|
StreamingRecognizeRequest.Builder |
+addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
StreamingRecognizeRequest |
+build() |
+
StreamingRecognizeRequest |
+buildPartial() |
+
StreamingRecognizeRequest.Builder |
+clear() |
+
StreamingRecognizeRequest.Builder |
+clearAudioContent()
+
+ The audio data to be recognized.
+ |
+
StreamingRecognizeRequest.Builder |
+clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
+
StreamingRecognizeRequest.Builder |
+clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
+
StreamingRecognizeRequest.Builder |
+clearStreamingConfig()
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
StreamingRecognizeRequest.Builder |
+clearStreamingRequest() |
+
StreamingRecognizeRequest.Builder |
+clone() |
+
com.google.protobuf.ByteString |
+getAudioContent()
+
+ The audio data to be recognized.
+ |
+
StreamingRecognizeRequest |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.Descriptor |
+getDescriptorForType() |
+
StreamingRecognitionConfig |
+getStreamingConfig()
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
StreamingRecognitionConfig.Builder |
+getStreamingConfigBuilder()
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
StreamingRecognitionConfigOrBuilder |
+getStreamingConfigOrBuilder()
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
StreamingRecognizeRequest.StreamingRequestCase |
+getStreamingRequestCase() |
+
boolean |
+hasStreamingConfig()
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
StreamingRecognizeRequest.Builder |
+mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
StreamingRecognizeRequest.Builder |
+mergeFrom(com.google.protobuf.Message other) |
+
StreamingRecognizeRequest.Builder |
+mergeFrom(StreamingRecognizeRequest other) |
+
StreamingRecognizeRequest.Builder |
+mergeStreamingConfig(StreamingRecognitionConfig value)
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
StreamingRecognizeRequest.Builder |
+mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
StreamingRecognizeRequest.Builder |
+setAudioContent(com.google.protobuf.ByteString value)
+
+ The audio data to be recognized.
+ |
+
StreamingRecognizeRequest.Builder |
+setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
StreamingRecognizeRequest.Builder |
+setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) |
+
StreamingRecognizeRequest.Builder |
+setStreamingConfig(StreamingRecognitionConfig.Builder builderForValue)
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
StreamingRecognizeRequest.Builder |
+setStreamingConfig(StreamingRecognitionConfig value)
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
StreamingRecognizeRequest.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest.Builder clear()+
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeRequest.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<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StreamingRecognizeRequest build()+
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognizeRequest buildPartial()+
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognizeRequest.Builder clone()+
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest.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<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)+
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)+
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest.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<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest.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<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest.Builder mergeFrom(com.google.protobuf.Message other)+
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest.Builder mergeFrom(StreamingRecognizeRequest other)+
public final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>public StreamingRecognizeRequest.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<StreamingRecognizeRequest.Builder>java.io.IOExceptionpublic StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase()+
getStreamingRequestCase in interface StreamingRecognizeRequestOrBuilderpublic StreamingRecognizeRequest.Builder clearStreamingRequest()+
public boolean hasStreamingConfig()+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;hasStreamingConfig in interface StreamingRecognizeRequestOrBuilderpublic StreamingRecognitionConfig getStreamingConfig()+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;getStreamingConfig in interface StreamingRecognizeRequestOrBuilderpublic StreamingRecognizeRequest.Builder setStreamingConfig(StreamingRecognitionConfig value)+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;public StreamingRecognizeRequest.Builder setStreamingConfig(StreamingRecognitionConfig.Builder builderForValue)+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;public StreamingRecognizeRequest.Builder mergeStreamingConfig(StreamingRecognitionConfig value)+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;public StreamingRecognizeRequest.Builder clearStreamingConfig()+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;public StreamingRecognitionConfig.Builder getStreamingConfigBuilder()+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;public StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder()+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;getStreamingConfigOrBuilder in interface StreamingRecognizeRequestOrBuilderpublic com.google.protobuf.ByteString getAudioContent()+
+ The audio data to be recognized. Sequential chunks of audio data are sent + in sequential `StreamingRecognizeRequest` messages. The first + `StreamingRecognizeRequest` message must not contain `audio_content` data + and all subsequent `StreamingRecognizeRequest` messages must contain + `audio_content` data. The audio bytes must be encoded as specified in + `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a + pure binary representation (not base64). See + [audio limits](https://cloud.google.com/speech/limits#content). ++ +
bytes audio_content = 2;getAudioContent in interface StreamingRecognizeRequestOrBuilderpublic StreamingRecognizeRequest.Builder setAudioContent(com.google.protobuf.ByteString value)+
+ The audio data to be recognized. Sequential chunks of audio data are sent + in sequential `StreamingRecognizeRequest` messages. The first + `StreamingRecognizeRequest` message must not contain `audio_content` data + and all subsequent `StreamingRecognizeRequest` messages must contain + `audio_content` data. The audio bytes must be encoded as specified in + `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a + pure binary representation (not base64). See + [audio limits](https://cloud.google.com/speech/limits#content). ++ +
bytes audio_content = 2;public StreamingRecognizeRequest.Builder clearAudioContent()+
+ The audio data to be recognized. Sequential chunks of audio data are sent + in sequential `StreamingRecognizeRequest` messages. The first + `StreamingRecognizeRequest` message must not contain `audio_content` data + and all subsequent `StreamingRecognizeRequest` messages must contain + `audio_content` data. The audio bytes must be encoded as specified in + `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a + pure binary representation (not base64). See + [audio limits](https://cloud.google.com/speech/limits#content). ++ +
bytes audio_content = 2;public final StreamingRecognizeRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>public final StreamingRecognizeRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>public static enum StreamingRecognizeRequest.StreamingRequestCase +extends java.lang.Enum<StreamingRecognizeRequest.StreamingRequestCase> +implements com.google.protobuf.Internal.EnumLite+
| Enum Constant and Description | +
|---|
AUDIO_CONTENT |
+
STREAMING_CONFIG |
+
STREAMINGREQUEST_NOT_SET |
+
| Modifier and Type | +Method and Description | +
|---|---|
static StreamingRecognizeRequest.StreamingRequestCase |
+forNumber(int value) |
+
int |
+getNumber() |
+
static StreamingRecognizeRequest.StreamingRequestCase |
+valueOf(int value)
+Deprecated.
+
+Use
+forNumber(int) instead. |
+
static StreamingRecognizeRequest.StreamingRequestCase |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static StreamingRecognizeRequest.StreamingRequestCase[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetClass, notify, notifyAll, wait, wait, waitpublic static final StreamingRecognizeRequest.StreamingRequestCase STREAMING_CONFIG+
public static final StreamingRecognizeRequest.StreamingRequestCase AUDIO_CONTENT+
public static final StreamingRecognizeRequest.StreamingRequestCase STREAMINGREQUEST_NOT_SET+
public static StreamingRecognizeRequest.StreamingRequestCase[] values()+
+for (StreamingRecognizeRequest.StreamingRequestCase c : StreamingRecognizeRequest.StreamingRequestCase.values()) + System.out.println(c); +
public static StreamingRecognizeRequest.StreamingRequestCase valueOf(java.lang.String name)+
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@Deprecated +public static StreamingRecognizeRequest.StreamingRequestCase valueOf(int value)+
forNumber(int) instead.public static StreamingRecognizeRequest.StreamingRequestCase forNumber(int value)+
public int getNumber()+
getNumber in interface com.google.protobuf.Internal.EnumLitepublic final class StreamingRecognizeRequest +extends com.google.protobuf.GeneratedMessageV3 +implements StreamingRecognizeRequestOrBuilder+
+ The top-level message sent by the client for the `StreamingRecognize` method. + Multiple `StreamingRecognizeRequest` messages are sent. The first message + must contain a `streaming_config` message and must not contain `audio` data. + All subsequent messages must contain `audio` data and must not contain a + `streaming_config` message. ++ + Protobuf type
google.cloud.speech.v1beta1.StreamingRecognizeRequest| Modifier and Type | +Class and Description | +
|---|---|
static class |
+StreamingRecognizeRequest.Builder
+
+ The top-level message sent by the client for the `StreamingRecognize` method.
+ |
+
static class |
+StreamingRecognizeRequest.StreamingRequestCase |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | +Field and Description | +
|---|---|
static int |
+AUDIO_CONTENT_FIELD_NUMBER |
+
static int |
+STREAMING_CONFIG_FIELD_NUMBER |
+
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(java.lang.Object obj) |
+
com.google.protobuf.ByteString |
+getAudioContent()
+
+ The audio data to be recognized.
+ |
+
static StreamingRecognizeRequest |
+getDefaultInstance() |
+
StreamingRecognizeRequest |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Parser<StreamingRecognizeRequest> |
+getParserForType() |
+
int |
+getSerializedSize() |
+
StreamingRecognitionConfig |
+getStreamingConfig()
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
StreamingRecognitionConfigOrBuilder |
+getStreamingConfigOrBuilder()
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
StreamingRecognizeRequest.StreamingRequestCase |
+getStreamingRequestCase() |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
int |
+hashCode() |
+
boolean |
+hasStreamingConfig()
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static StreamingRecognizeRequest.Builder |
+newBuilder() |
+
static StreamingRecognizeRequest.Builder |
+newBuilder(StreamingRecognizeRequest prototype) |
+
StreamingRecognizeRequest.Builder |
+newBuilderForType() |
+
protected StreamingRecognizeRequest.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static StreamingRecognizeRequest |
+parseDelimitedFrom(java.io.InputStream input) |
+
static StreamingRecognizeRequest |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognizeRequest |
+parseFrom(byte[] data) |
+
static StreamingRecognizeRequest |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognizeRequest |
+parseFrom(java.nio.ByteBuffer data) |
+
static StreamingRecognizeRequest |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognizeRequest |
+parseFrom(com.google.protobuf.ByteString data) |
+
static StreamingRecognizeRequest |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognizeRequest |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static StreamingRecognizeRequest |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognizeRequest |
+parseFrom(java.io.InputStream input) |
+
static StreamingRecognizeRequest |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<StreamingRecognizeRequest> |
+parser() |
+
StreamingRecognizeRequest.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 STREAMING_CONFIG_FIELD_NUMBER+
public static final int AUDIO_CONTENT_FIELD_NUMBER+
public final com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase()+
getStreamingRequestCase in interface StreamingRecognizeRequestOrBuilderpublic boolean hasStreamingConfig()+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;hasStreamingConfig in interface StreamingRecognizeRequestOrBuilderpublic StreamingRecognitionConfig getStreamingConfig()+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;getStreamingConfig in interface StreamingRecognizeRequestOrBuilderpublic StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder()+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;getStreamingConfigOrBuilder in interface StreamingRecognizeRequestOrBuilderpublic com.google.protobuf.ByteString getAudioContent()+
+ The audio data to be recognized. Sequential chunks of audio data are sent + in sequential `StreamingRecognizeRequest` messages. The first + `StreamingRecognizeRequest` message must not contain `audio_content` data + and all subsequent `StreamingRecognizeRequest` messages must contain + `audio_content` data. The audio bytes must be encoded as specified in + `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a + pure binary representation (not base64). See + [audio limits](https://cloud.google.com/speech/limits#content). ++ +
bytes audio_content = 2;getAudioContent in interface StreamingRecognizeRequestOrBuilderpublic final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static StreamingRecognizeRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognizeRequest parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognizeRequest parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognizeRequest parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognizeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognizeRequest parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognizeRequest parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognizeRequest parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognizeRequest parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognizeRequest parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic StreamingRecognizeRequest.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static StreamingRecognizeRequest.Builder newBuilder()+
public static StreamingRecognizeRequest.Builder newBuilder(StreamingRecognizeRequest prototype)+
public StreamingRecognizeRequest.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected StreamingRecognizeRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static StreamingRecognizeRequest getDefaultInstance()+
public static com.google.protobuf.Parser<StreamingRecognizeRequest> parser()+
public com.google.protobuf.Parser<StreamingRecognizeRequest> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public StreamingRecognizeRequest getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface StreamingRecognizeRequestOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
com.google.protobuf.ByteString |
+getAudioContent()
+
+ The audio data to be recognized.
+ |
+
StreamingRecognitionConfig |
+getStreamingConfig()
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
StreamingRecognitionConfigOrBuilder |
+getStreamingConfigOrBuilder()
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
StreamingRecognizeRequest.StreamingRequestCase |
+getStreamingRequestCase() |
+
boolean |
+hasStreamingConfig()
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedboolean hasStreamingConfig()+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;StreamingRecognitionConfig getStreamingConfig()+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder()+
+ Provides information to the recognizer that specifies how to process the + request. The first `StreamingRecognizeRequest` message must contain a + `streaming_config` message. ++ +
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;com.google.protobuf.ByteString getAudioContent()+
+ The audio data to be recognized. Sequential chunks of audio data are sent + in sequential `StreamingRecognizeRequest` messages. The first + `StreamingRecognizeRequest` message must not contain `audio_content` data + and all subsequent `StreamingRecognizeRequest` messages must contain + `audio_content` data. The audio bytes must be encoded as specified in + `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a + pure binary representation (not base64). See + [audio limits](https://cloud.google.com/speech/limits#content). ++ +
bytes audio_content = 2;StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase()+
public static final class StreamingRecognizeResponse.Builder +extends com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder> +implements StreamingRecognizeResponseOrBuilder+
+ `StreamingRecognizeResponse` is the only message returned to the client by
+ `StreamingRecognize`. A series of one or more `StreamingRecognizeResponse`
+ messages are streamed back to the client.
+ Here's an example of a series of ten `StreamingRecognizeResponse`s that might
+ be returned while processing audio:
+ 1. endpointer_type: START_OF_SPEECH
+ 2. results { alternatives { transcript: "tube" } stability: 0.01 }
+ result_index: 0
+ 3. results { alternatives { transcript: "to be a" } stability: 0.01 }
+ result_index: 0
+ 4. results { alternatives { transcript: "to be" } stability: 0.9 }
+ results { alternatives { transcript: " or not to be" } stability: 0.01 }
+ result_index: 0
+ 5. results { alternatives { transcript: "to be or not to be"
+ confidence: 0.92 }
+ alternatives { transcript: "to bee or not to bee" }
+ is_final: true }
+ result_index: 0
+ 6. results { alternatives { transcript: " that's" } stability: 0.01 }
+ result_index: 1
+ 7. results { alternatives { transcript: " that is" } stability: 0.9 }
+ results { alternatives { transcript: " the question" } stability: 0.01 }
+ result_index: 1
+ 8. endpointer_type: END_OF_SPEECH
+ 9. results { alternatives { transcript: " that is the question"
+ confidence: 0.98 }
+ alternatives { transcript: " that was the question" }
+ is_final: true }
+ result_index: 1
+ 10. endpointer_type: END_OF_AUDIO
+ Notes:
+ - Only two of the above responses #5 and #9 contain final results, they are
+ indicated by `is_final: true`. Concatenating these together generates the
+ full transcript: "to be or not to be that is the question".
+ - The others contain interim `results`. #4 and #7 contain two interim
+ `results`, the first portion has a high stability and is less likely to
+ change, the second portion has a low stability and is very likely to
+ change. A UI designer might choose to show only high stability `results`.
+ - The specific `stability` and `confidence` values shown above are only for
+ illustrative purposes. Actual values may vary.
+ - The `result_index` indicates the portion of audio that has had final
+ results returned, and is no longer being processed. For example, the
+ `results` in #6 and later correspond to the portion of audio after
+ "to be or not to be".
+
+
+ Protobuf type google.cloud.speech.v1beta1.StreamingRecognizeResponse| Modifier and Type | +Method and Description | +
|---|---|
StreamingRecognizeResponse.Builder |
+addAllResults(java.lang.Iterable<? extends StreamingRecognitionResult> values)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognizeResponse.Builder |
+addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
StreamingRecognizeResponse.Builder |
+addResults(int index,
+ StreamingRecognitionResult.Builder builderForValue)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognizeResponse.Builder |
+addResults(int index,
+ StreamingRecognitionResult value)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognizeResponse.Builder |
+addResults(StreamingRecognitionResult.Builder builderForValue)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognizeResponse.Builder |
+addResults(StreamingRecognitionResult value)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognitionResult.Builder |
+addResultsBuilder()
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognitionResult.Builder |
+addResultsBuilder(int index)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognizeResponse |
+build() |
+
StreamingRecognizeResponse |
+buildPartial() |
+
StreamingRecognizeResponse.Builder |
+clear() |
+
StreamingRecognizeResponse.Builder |
+clearEndpointerType()
+
+ *Output-only* Indicates the type of endpointer event.
+ |
+
StreamingRecognizeResponse.Builder |
+clearError()
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
StreamingRecognizeResponse.Builder |
+clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
+
StreamingRecognizeResponse.Builder |
+clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
+
StreamingRecognizeResponse.Builder |
+clearResultIndex()
+
+ *Output-only* Indicates the lowest index in the `results` array that has
+ changed.
+ |
+
StreamingRecognizeResponse.Builder |
+clearResults()
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognizeResponse.Builder |
+clone() |
+
StreamingRecognizeResponse |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.Descriptor |
+getDescriptorForType() |
+
StreamingRecognizeResponse.EndpointerType |
+getEndpointerType()
+
+ *Output-only* Indicates the type of endpointer event.
+ |
+
int |
+getEndpointerTypeValue()
+
+ *Output-only* Indicates the type of endpointer event.
+ |
+
com.google.rpc.Status |
+getError()
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
com.google.rpc.Status.Builder |
+getErrorBuilder()
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
com.google.rpc.StatusOrBuilder |
+getErrorOrBuilder()
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
int |
+getResultIndex()
+
+ *Output-only* Indicates the lowest index in the `results` array that has
+ changed.
+ |
+
StreamingRecognitionResult |
+getResults(int index)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognitionResult.Builder |
+getResultsBuilder(int index)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
java.util.List<StreamingRecognitionResult.Builder> |
+getResultsBuilderList()
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
int |
+getResultsCount()
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
java.util.List<StreamingRecognitionResult> |
+getResultsList()
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognitionResultOrBuilder |
+getResultsOrBuilder(int index)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
java.util.List<? extends StreamingRecognitionResultOrBuilder> |
+getResultsOrBuilderList()
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
boolean |
+hasError()
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
StreamingRecognizeResponse.Builder |
+mergeError(com.google.rpc.Status value)
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
StreamingRecognizeResponse.Builder |
+mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
StreamingRecognizeResponse.Builder |
+mergeFrom(com.google.protobuf.Message other) |
+
StreamingRecognizeResponse.Builder |
+mergeFrom(StreamingRecognizeResponse other) |
+
StreamingRecognizeResponse.Builder |
+mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
StreamingRecognizeResponse.Builder |
+removeResults(int index)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognizeResponse.Builder |
+setEndpointerType(StreamingRecognizeResponse.EndpointerType value)
+
+ *Output-only* Indicates the type of endpointer event.
+ |
+
StreamingRecognizeResponse.Builder |
+setEndpointerTypeValue(int value)
+
+ *Output-only* Indicates the type of endpointer event.
+ |
+
StreamingRecognizeResponse.Builder |
+setError(com.google.rpc.Status.Builder builderForValue)
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
StreamingRecognizeResponse.Builder |
+setError(com.google.rpc.Status value)
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
StreamingRecognizeResponse.Builder |
+setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
StreamingRecognizeResponse.Builder |
+setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) |
+
StreamingRecognizeResponse.Builder |
+setResultIndex(int value)
+
+ *Output-only* Indicates the lowest index in the `results` array that has
+ changed.
+ |
+
StreamingRecognizeResponse.Builder |
+setResults(int index,
+ StreamingRecognitionResult.Builder builderForValue)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognizeResponse.Builder |
+setResults(int index,
+ StreamingRecognitionResult value)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognizeResponse.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder clear()+
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.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<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StreamingRecognizeResponse build()+
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognizeResponse buildPartial()+
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StreamingRecognizeResponse.Builder clone()+
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.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<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)+
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)+
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.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<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.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<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder mergeFrom(com.google.protobuf.Message other)+
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.Builder mergeFrom(StreamingRecognizeResponse other)+
public final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public StreamingRecognizeResponse.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<StreamingRecognizeResponse.Builder>java.io.IOExceptionpublic boolean hasError()+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;hasError in interface StreamingRecognizeResponseOrBuilderpublic com.google.rpc.Status getError()+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;getError in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.Builder setError(com.google.rpc.Status value)+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;public StreamingRecognizeResponse.Builder setError(com.google.rpc.Status.Builder builderForValue)+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;public StreamingRecognizeResponse.Builder mergeError(com.google.rpc.Status value)+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;public StreamingRecognizeResponse.Builder clearError()+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;public com.google.rpc.Status.Builder getErrorBuilder()+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;public com.google.rpc.StatusOrBuilder getErrorOrBuilder()+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;getErrorOrBuilder in interface StreamingRecognizeResponseOrBuilderpublic java.util.List<StreamingRecognitionResult> getResultsList()+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;getResultsList in interface StreamingRecognizeResponseOrBuilderpublic int getResultsCount()+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;getResultsCount in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognitionResult getResults(int index)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;getResults in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.Builder setResults(int index, + StreamingRecognitionResult value)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder setResults(int index, + StreamingRecognitionResult.Builder builderForValue)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder addResults(StreamingRecognitionResult value)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder addResults(int index, + StreamingRecognitionResult value)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder addResults(StreamingRecognitionResult.Builder builderForValue)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder addResults(int index, + StreamingRecognitionResult.Builder builderForValue)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder addAllResults(java.lang.Iterable<? extends StreamingRecognitionResult> values)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder clearResults()+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;public StreamingRecognizeResponse.Builder removeResults(int index)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;public StreamingRecognitionResult.Builder getResultsBuilder(int index)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;public StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;getResultsOrBuilder in interface StreamingRecognizeResponseOrBuilderpublic java.util.List<? extends StreamingRecognitionResultOrBuilder> getResultsOrBuilderList()+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;getResultsOrBuilderList in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognitionResult.Builder addResultsBuilder()+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;public StreamingRecognitionResult.Builder addResultsBuilder(int index)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;public java.util.List<StreamingRecognitionResult.Builder> getResultsBuilderList()+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;public int getResultIndex()+
+ *Output-only* Indicates the lowest index in the `results` array that has + changed. The repeated `StreamingRecognitionResult` results overwrite past + results at this index and higher. ++ +
int32 result_index = 3;getResultIndex in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.Builder setResultIndex(int value)+
+ *Output-only* Indicates the lowest index in the `results` array that has + changed. The repeated `StreamingRecognitionResult` results overwrite past + results at this index and higher. ++ +
int32 result_index = 3;public StreamingRecognizeResponse.Builder clearResultIndex()+
+ *Output-only* Indicates the lowest index in the `results` array that has + changed. The repeated `StreamingRecognitionResult` results overwrite past + results at this index and higher. ++ +
int32 result_index = 3;public int getEndpointerTypeValue()+
+ *Output-only* Indicates the type of endpointer event. ++ +
.google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType endpointer_type = 4;getEndpointerTypeValue in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.Builder setEndpointerTypeValue(int value)+
+ *Output-only* Indicates the type of endpointer event. ++ +
.google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType endpointer_type = 4;public StreamingRecognizeResponse.EndpointerType getEndpointerType()+
+ *Output-only* Indicates the type of endpointer event. ++ +
.google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType endpointer_type = 4;getEndpointerType in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.Builder setEndpointerType(StreamingRecognizeResponse.EndpointerType value)+
+ *Output-only* Indicates the type of endpointer event. ++ +
.google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType endpointer_type = 4;public StreamingRecognizeResponse.Builder clearEndpointerType()+
+ *Output-only* Indicates the type of endpointer event. ++ +
.google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType endpointer_type = 4;public final StreamingRecognizeResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public final StreamingRecognizeResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingRecognizeResponse.Builder>public static enum StreamingRecognizeResponse.EndpointerType +extends java.lang.Enum<StreamingRecognizeResponse.EndpointerType> +implements com.google.protobuf.ProtocolMessageEnum+
+ Indicates the type of endpointer event. ++ + Protobuf enum
google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType| Enum Constant and Description | +
|---|
END_OF_AUDIO
+
+ This event is sent after the client has half-closed the input stream gRPC
+ connection and the server has received all of the audio.
+ |
+
END_OF_SPEECH
+
+ Speech has ceased to be detected in the audio stream.
+ |
+
END_OF_UTTERANCE
+
+ This event is only sent when `single_utterance` is `true`.
+ |
+
ENDPOINTER_EVENT_UNSPECIFIED
+
+ No endpointer event specified.
+ |
+
START_OF_SPEECH
+
+ Speech has been detected in the audio stream, and the service is
+ beginning to process it.
+ |
+
UNRECOGNIZED |
+
| Modifier and Type | +Field and Description | +
|---|---|
static int |
+END_OF_AUDIO_VALUE
+
+ This event is sent after the client has half-closed the input stream gRPC
+ connection and the server has received all of the audio.
+ |
+
static int |
+END_OF_SPEECH_VALUE
+
+ Speech has ceased to be detected in the audio stream.
+ |
+
static int |
+END_OF_UTTERANCE_VALUE
+
+ This event is only sent when `single_utterance` is `true`.
+ |
+
static int |
+ENDPOINTER_EVENT_UNSPECIFIED_VALUE
+
+ No endpointer event specified.
+ |
+
static int |
+START_OF_SPEECH_VALUE
+
+ Speech has been detected in the audio stream, and the service is
+ beginning to process it.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static StreamingRecognizeResponse.EndpointerType |
+forNumber(int value) |
+
static com.google.protobuf.Descriptors.EnumDescriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.EnumDescriptor |
+getDescriptorForType() |
+
int |
+getNumber() |
+
com.google.protobuf.Descriptors.EnumValueDescriptor |
+getValueDescriptor() |
+
static com.google.protobuf.Internal.EnumLiteMap<StreamingRecognizeResponse.EndpointerType> |
+internalGetValueMap() |
+
static StreamingRecognizeResponse.EndpointerType |
+valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
+
static StreamingRecognizeResponse.EndpointerType |
+valueOf(int value)
+Deprecated.
+
+Use
+forNumber(int) instead. |
+
static StreamingRecognizeResponse.EndpointerType |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static StreamingRecognizeResponse.EndpointerType[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetClass, notify, notifyAll, wait, wait, waitpublic static final StreamingRecognizeResponse.EndpointerType ENDPOINTER_EVENT_UNSPECIFIED+
+ No endpointer event specified. ++ +
ENDPOINTER_EVENT_UNSPECIFIED = 0;public static final StreamingRecognizeResponse.EndpointerType START_OF_SPEECH+
+ Speech has been detected in the audio stream, and the service is + beginning to process it. ++ +
START_OF_SPEECH = 1;public static final StreamingRecognizeResponse.EndpointerType END_OF_SPEECH+
+ Speech has ceased to be detected in the audio stream. (For example, the + user may have paused after speaking.) If `single_utterance` is `false`, + the service will continue to process audio, and if subsequent speech is + detected, will send another START_OF_SPEECH event. ++ +
END_OF_SPEECH = 2;public static final StreamingRecognizeResponse.EndpointerType END_OF_AUDIO+
+ This event is sent after the client has half-closed the input stream gRPC + connection and the server has received all of the audio. (The server may + still be processing the audio and may subsequently return additional + results.) ++ +
END_OF_AUDIO = 3;public static final StreamingRecognizeResponse.EndpointerType END_OF_UTTERANCE+
+ This event is only sent when `single_utterance` is `true`. It indicates + that the server has detected the end of the user's speech utterance and + expects no additional speech. Therefore, the server will not process + additional audio (although it may subsequently return additional + results). The client should stop sending additional audio data, + half-close the gRPC connection, and wait for any additional results + until the server closes the gRPC connection. ++ +
END_OF_UTTERANCE = 4;public static final StreamingRecognizeResponse.EndpointerType UNRECOGNIZED+
public static final int ENDPOINTER_EVENT_UNSPECIFIED_VALUE+
+ No endpointer event specified. ++ +
ENDPOINTER_EVENT_UNSPECIFIED = 0;public static final int START_OF_SPEECH_VALUE+
+ Speech has been detected in the audio stream, and the service is + beginning to process it. ++ +
START_OF_SPEECH = 1;public static final int END_OF_SPEECH_VALUE+
+ Speech has ceased to be detected in the audio stream. (For example, the + user may have paused after speaking.) If `single_utterance` is `false`, + the service will continue to process audio, and if subsequent speech is + detected, will send another START_OF_SPEECH event. ++ +
END_OF_SPEECH = 2;public static final int END_OF_AUDIO_VALUE+
+ This event is sent after the client has half-closed the input stream gRPC + connection and the server has received all of the audio. (The server may + still be processing the audio and may subsequently return additional + results.) ++ +
END_OF_AUDIO = 3;public static final int END_OF_UTTERANCE_VALUE+
+ This event is only sent when `single_utterance` is `true`. It indicates + that the server has detected the end of the user's speech utterance and + expects no additional speech. Therefore, the server will not process + additional audio (although it may subsequently return additional + results). The client should stop sending additional audio data, + half-close the gRPC connection, and wait for any additional results + until the server closes the gRPC connection. ++ +
END_OF_UTTERANCE = 4;public static StreamingRecognizeResponse.EndpointerType[] values()+
+for (StreamingRecognizeResponse.EndpointerType c : StreamingRecognizeResponse.EndpointerType.values()) + System.out.println(c); +
public static StreamingRecognizeResponse.EndpointerType valueOf(java.lang.String name)+
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final int getNumber()+
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated +public static StreamingRecognizeResponse.EndpointerType valueOf(int value)+
forNumber(int) instead.public static StreamingRecognizeResponse.EndpointerType forNumber(int value)+
public static com.google.protobuf.Internal.EnumLiteMap<StreamingRecognizeResponse.EndpointerType> internalGetValueMap()+
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()+
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()+
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()+
public static StreamingRecognizeResponse.EndpointerType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)+
public final class StreamingRecognizeResponse +extends com.google.protobuf.GeneratedMessageV3 +implements StreamingRecognizeResponseOrBuilder+
+ `StreamingRecognizeResponse` is the only message returned to the client by
+ `StreamingRecognize`. A series of one or more `StreamingRecognizeResponse`
+ messages are streamed back to the client.
+ Here's an example of a series of ten `StreamingRecognizeResponse`s that might
+ be returned while processing audio:
+ 1. endpointer_type: START_OF_SPEECH
+ 2. results { alternatives { transcript: "tube" } stability: 0.01 }
+ result_index: 0
+ 3. results { alternatives { transcript: "to be a" } stability: 0.01 }
+ result_index: 0
+ 4. results { alternatives { transcript: "to be" } stability: 0.9 }
+ results { alternatives { transcript: " or not to be" } stability: 0.01 }
+ result_index: 0
+ 5. results { alternatives { transcript: "to be or not to be"
+ confidence: 0.92 }
+ alternatives { transcript: "to bee or not to bee" }
+ is_final: true }
+ result_index: 0
+ 6. results { alternatives { transcript: " that's" } stability: 0.01 }
+ result_index: 1
+ 7. results { alternatives { transcript: " that is" } stability: 0.9 }
+ results { alternatives { transcript: " the question" } stability: 0.01 }
+ result_index: 1
+ 8. endpointer_type: END_OF_SPEECH
+ 9. results { alternatives { transcript: " that is the question"
+ confidence: 0.98 }
+ alternatives { transcript: " that was the question" }
+ is_final: true }
+ result_index: 1
+ 10. endpointer_type: END_OF_AUDIO
+ Notes:
+ - Only two of the above responses #5 and #9 contain final results, they are
+ indicated by `is_final: true`. Concatenating these together generates the
+ full transcript: "to be or not to be that is the question".
+ - The others contain interim `results`. #4 and #7 contain two interim
+ `results`, the first portion has a high stability and is less likely to
+ change, the second portion has a low stability and is very likely to
+ change. A UI designer might choose to show only high stability `results`.
+ - The specific `stability` and `confidence` values shown above are only for
+ illustrative purposes. Actual values may vary.
+ - The `result_index` indicates the portion of audio that has had final
+ results returned, and is no longer being processed. For example, the
+ `results` in #6 and later correspond to the portion of audio after
+ "to be or not to be".
+
+
+ Protobuf type google.cloud.speech.v1beta1.StreamingRecognizeResponse| Modifier and Type | +Class and Description | +
|---|---|
static class |
+StreamingRecognizeResponse.Builder
+
+ `StreamingRecognizeResponse` is the only message returned to the client by
+ `StreamingRecognize`.
+ |
+
static class |
+StreamingRecognizeResponse.EndpointerType
+
+ Indicates the type of endpointer event.
+ |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | +Field and Description | +
|---|---|
static int |
+ENDPOINTER_TYPE_FIELD_NUMBER |
+
static int |
+ERROR_FIELD_NUMBER |
+
static int |
+RESULT_INDEX_FIELD_NUMBER |
+
static int |
+RESULTS_FIELD_NUMBER |
+
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(java.lang.Object obj) |
+
static StreamingRecognizeResponse |
+getDefaultInstance() |
+
StreamingRecognizeResponse |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
StreamingRecognizeResponse.EndpointerType |
+getEndpointerType()
+
+ *Output-only* Indicates the type of endpointer event.
+ |
+
int |
+getEndpointerTypeValue()
+
+ *Output-only* Indicates the type of endpointer event.
+ |
+
com.google.rpc.Status |
+getError()
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
com.google.rpc.StatusOrBuilder |
+getErrorOrBuilder()
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
com.google.protobuf.Parser<StreamingRecognizeResponse> |
+getParserForType() |
+
int |
+getResultIndex()
+
+ *Output-only* Indicates the lowest index in the `results` array that has
+ changed.
+ |
+
StreamingRecognitionResult |
+getResults(int index)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
int |
+getResultsCount()
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
java.util.List<StreamingRecognitionResult> |
+getResultsList()
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognitionResultOrBuilder |
+getResultsOrBuilder(int index)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
java.util.List<? extends StreamingRecognitionResultOrBuilder> |
+getResultsOrBuilderList()
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
int |
+getSerializedSize() |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
boolean |
+hasError()
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
int |
+hashCode() |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static StreamingRecognizeResponse.Builder |
+newBuilder() |
+
static StreamingRecognizeResponse.Builder |
+newBuilder(StreamingRecognizeResponse prototype) |
+
StreamingRecognizeResponse.Builder |
+newBuilderForType() |
+
protected StreamingRecognizeResponse.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static StreamingRecognizeResponse |
+parseDelimitedFrom(java.io.InputStream input) |
+
static StreamingRecognizeResponse |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognizeResponse |
+parseFrom(byte[] data) |
+
static StreamingRecognizeResponse |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognizeResponse |
+parseFrom(java.nio.ByteBuffer data) |
+
static StreamingRecognizeResponse |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognizeResponse |
+parseFrom(com.google.protobuf.ByteString data) |
+
static StreamingRecognizeResponse |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognizeResponse |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static StreamingRecognizeResponse |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static StreamingRecognizeResponse |
+parseFrom(java.io.InputStream input) |
+
static StreamingRecognizeResponse |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<StreamingRecognizeResponse> |
+parser() |
+
StreamingRecognizeResponse.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 ERROR_FIELD_NUMBER+
public static final int RESULTS_FIELD_NUMBER+
public static final int RESULT_INDEX_FIELD_NUMBER+
public static final int ENDPOINTER_TYPE_FIELD_NUMBER+
public final com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasError()+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;hasError in interface StreamingRecognizeResponseOrBuilderpublic com.google.rpc.Status getError()+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;getError in interface StreamingRecognizeResponseOrBuilderpublic com.google.rpc.StatusOrBuilder getErrorOrBuilder()+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;getErrorOrBuilder in interface StreamingRecognizeResponseOrBuilderpublic java.util.List<StreamingRecognitionResult> getResultsList()+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;getResultsList in interface StreamingRecognizeResponseOrBuilderpublic java.util.List<? extends StreamingRecognitionResultOrBuilder> getResultsOrBuilderList()+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;getResultsOrBuilderList in interface StreamingRecognizeResponseOrBuilderpublic int getResultsCount()+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;getResultsCount in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognitionResult getResults(int index)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;getResults in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;getResultsOrBuilder in interface StreamingRecognizeResponseOrBuilderpublic int getResultIndex()+
+ *Output-only* Indicates the lowest index in the `results` array that has + changed. The repeated `StreamingRecognitionResult` results overwrite past + results at this index and higher. ++ +
int32 result_index = 3;getResultIndex in interface StreamingRecognizeResponseOrBuilderpublic int getEndpointerTypeValue()+
+ *Output-only* Indicates the type of endpointer event. ++ +
.google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType endpointer_type = 4;getEndpointerTypeValue in interface StreamingRecognizeResponseOrBuilderpublic StreamingRecognizeResponse.EndpointerType getEndpointerType()+
+ *Output-only* Indicates the type of endpointer event. ++ +
.google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType endpointer_type = 4;getEndpointerType in interface StreamingRecognizeResponseOrBuilderpublic final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static StreamingRecognizeResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognizeResponse parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognizeResponse parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognizeResponse parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognizeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognizeResponse parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingRecognizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognizeResponse parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognizeResponse parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static StreamingRecognizeResponse parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic StreamingRecognizeResponse.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static StreamingRecognizeResponse.Builder newBuilder()+
public static StreamingRecognizeResponse.Builder newBuilder(StreamingRecognizeResponse prototype)+
public StreamingRecognizeResponse.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected StreamingRecognizeResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static StreamingRecognizeResponse getDefaultInstance()+
public static com.google.protobuf.Parser<StreamingRecognizeResponse> parser()+
public com.google.protobuf.Parser<StreamingRecognizeResponse> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public StreamingRecognizeResponse getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface StreamingRecognizeResponseOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
StreamingRecognizeResponse.EndpointerType |
+getEndpointerType()
+
+ *Output-only* Indicates the type of endpointer event.
+ |
+
int |
+getEndpointerTypeValue()
+
+ *Output-only* Indicates the type of endpointer event.
+ |
+
com.google.rpc.Status |
+getError()
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
com.google.rpc.StatusOrBuilder |
+getErrorOrBuilder()
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
int |
+getResultIndex()
+
+ *Output-only* Indicates the lowest index in the `results` array that has
+ changed.
+ |
+
StreamingRecognitionResult |
+getResults(int index)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
int |
+getResultsCount()
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
java.util.List<StreamingRecognitionResult> |
+getResultsList()
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
StreamingRecognitionResultOrBuilder |
+getResultsOrBuilder(int index)
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
java.util.List<? extends StreamingRecognitionResultOrBuilder> |
+getResultsOrBuilderList()
+
+ *Output-only* This repeated list contains zero or more results that
+ correspond to consecutive portions of the audio currently being processed.
+ |
+
boolean |
+hasError()
+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
+ specifies the error for the operation.
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedboolean hasError()+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;com.google.rpc.Status getError()+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;com.google.rpc.StatusOrBuilder getErrorOrBuilder()+
+ *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that + specifies the error for the operation. ++ +
.google.rpc.Status error = 1;java.util.List<StreamingRecognitionResult> getResultsList()+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;StreamingRecognitionResult getResults(int index)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;int getResultsCount()+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;java.util.List<? extends StreamingRecognitionResultOrBuilder> getResultsOrBuilderList()+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index)+
+ *Output-only* This repeated list contains zero or more results that + correspond to consecutive portions of the audio currently being processed. + It contains zero or one `is_final=true` result (the newly settled portion), + followed by zero or more `is_final=false` results. ++ +
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;int getResultIndex()+
+ *Output-only* Indicates the lowest index in the `results` array that has + changed. The repeated `StreamingRecognitionResult` results overwrite past + results at this index and higher. ++ +
int32 result_index = 3;int getEndpointerTypeValue()+
+ *Output-only* Indicates the type of endpointer event. ++ +
.google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType endpointer_type = 4;StreamingRecognizeResponse.EndpointerType getEndpointerType()+
+ *Output-only* Indicates the type of endpointer event. ++ +
.google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType endpointer_type = 4;public static final class SyncRecognizeRequest.Builder +extends com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeRequest.Builder> +implements SyncRecognizeRequestOrBuilder+
+ The top-level message sent by the client for the `SyncRecognize` method. ++ + Protobuf type
google.cloud.speech.v1beta1.SyncRecognizeRequest| Modifier and Type | +Method and Description | +
|---|---|
SyncRecognizeRequest.Builder |
+addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
SyncRecognizeRequest |
+build() |
+
SyncRecognizeRequest |
+buildPartial() |
+
SyncRecognizeRequest.Builder |
+clear() |
+
SyncRecognizeRequest.Builder |
+clearAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
SyncRecognizeRequest.Builder |
+clearConfig()
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
SyncRecognizeRequest.Builder |
+clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
+
SyncRecognizeRequest.Builder |
+clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
+
SyncRecognizeRequest.Builder |
+clone() |
+
RecognitionAudio |
+getAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
RecognitionAudio.Builder |
+getAudioBuilder()
+
+ *Required* The audio data to be recognized.
+ |
+
RecognitionAudioOrBuilder |
+getAudioOrBuilder()
+
+ *Required* The audio data to be recognized.
+ |
+
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.
+ |
+
SyncRecognizeRequest |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.Descriptor |
+getDescriptorForType() |
+
boolean |
+hasAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
boolean |
+hasConfig()
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
SyncRecognizeRequest.Builder |
+mergeAudio(RecognitionAudio value)
+
+ *Required* The audio data to be recognized.
+ |
+
SyncRecognizeRequest.Builder |
+mergeConfig(RecognitionConfig value)
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
SyncRecognizeRequest.Builder |
+mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
SyncRecognizeRequest.Builder |
+mergeFrom(com.google.protobuf.Message other) |
+
SyncRecognizeRequest.Builder |
+mergeFrom(SyncRecognizeRequest other) |
+
SyncRecognizeRequest.Builder |
+mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
SyncRecognizeRequest.Builder |
+setAudio(RecognitionAudio.Builder builderForValue)
+
+ *Required* The audio data to be recognized.
+ |
+
SyncRecognizeRequest.Builder |
+setAudio(RecognitionAudio value)
+
+ *Required* The audio data to be recognized.
+ |
+
SyncRecognizeRequest.Builder |
+setConfig(RecognitionConfig.Builder builderForValue)
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
SyncRecognizeRequest.Builder |
+setConfig(RecognitionConfig value)
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
SyncRecognizeRequest.Builder |
+setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
SyncRecognizeRequest.Builder |
+setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) |
+
SyncRecognizeRequest.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeRequest.Builder>public SyncRecognizeRequest.Builder clear()+
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeRequest.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<SyncRecognizeRequest.Builder>public SyncRecognizeRequest getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SyncRecognizeRequest build()+
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SyncRecognizeRequest buildPartial()+
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SyncRecognizeRequest.Builder clone()+
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeRequest.Builder>public SyncRecognizeRequest.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<SyncRecognizeRequest.Builder>public SyncRecognizeRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)+
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeRequest.Builder>public SyncRecognizeRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)+
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeRequest.Builder>public SyncRecognizeRequest.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<SyncRecognizeRequest.Builder>public SyncRecognizeRequest.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<SyncRecognizeRequest.Builder>public SyncRecognizeRequest.Builder mergeFrom(com.google.protobuf.Message other)+
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SyncRecognizeRequest.Builder>public SyncRecognizeRequest.Builder mergeFrom(SyncRecognizeRequest other)+
public final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeRequest.Builder>public SyncRecognizeRequest.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<SyncRecognizeRequest.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 SyncRecognizeRequestOrBuilderpublic 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 SyncRecognizeRequestOrBuilderpublic SyncRecognizeRequest.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 SyncRecognizeRequest.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 SyncRecognizeRequest.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 SyncRecognizeRequest.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 SyncRecognizeRequestOrBuilderpublic boolean hasAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;hasAudio in interface SyncRecognizeRequestOrBuilderpublic RecognitionAudio getAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;getAudio in interface SyncRecognizeRequestOrBuilderpublic SyncRecognizeRequest.Builder setAudio(RecognitionAudio value)+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;public SyncRecognizeRequest.Builder setAudio(RecognitionAudio.Builder builderForValue)+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;public SyncRecognizeRequest.Builder mergeAudio(RecognitionAudio value)+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;public SyncRecognizeRequest.Builder clearAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;public RecognitionAudio.Builder getAudioBuilder()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;public RecognitionAudioOrBuilder getAudioOrBuilder()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;getAudioOrBuilder in interface SyncRecognizeRequestOrBuilderpublic final SyncRecognizeRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeRequest.Builder>public final SyncRecognizeRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeRequest.Builder>public final class SyncRecognizeRequest +extends com.google.protobuf.GeneratedMessageV3 +implements SyncRecognizeRequestOrBuilder+
+ The top-level message sent by the client for the `SyncRecognize` method. ++ + Protobuf type
google.cloud.speech.v1beta1.SyncRecognizeRequest| Modifier and Type | +Class and Description | +
|---|---|
static class |
+SyncRecognizeRequest.Builder
+
+ The top-level message sent by the client for the `SyncRecognize` method.
+ |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | +Field and Description | +
|---|---|
static int |
+AUDIO_FIELD_NUMBER |
+
static int |
+CONFIG_FIELD_NUMBER |
+
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(java.lang.Object obj) |
+
RecognitionAudio |
+getAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
RecognitionAudioOrBuilder |
+getAudioOrBuilder()
+
+ *Required* The audio data to be recognized.
+ |
+
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 SyncRecognizeRequest |
+getDefaultInstance() |
+
SyncRecognizeRequest |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Parser<SyncRecognizeRequest> |
+getParserForType() |
+
int |
+getSerializedSize() |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
boolean |
+hasAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
boolean |
+hasConfig()
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
int |
+hashCode() |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static SyncRecognizeRequest.Builder |
+newBuilder() |
+
static SyncRecognizeRequest.Builder |
+newBuilder(SyncRecognizeRequest prototype) |
+
SyncRecognizeRequest.Builder |
+newBuilderForType() |
+
protected SyncRecognizeRequest.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static SyncRecognizeRequest |
+parseDelimitedFrom(java.io.InputStream input) |
+
static SyncRecognizeRequest |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SyncRecognizeRequest |
+parseFrom(byte[] data) |
+
static SyncRecognizeRequest |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SyncRecognizeRequest |
+parseFrom(java.nio.ByteBuffer data) |
+
static SyncRecognizeRequest |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SyncRecognizeRequest |
+parseFrom(com.google.protobuf.ByteString data) |
+
static SyncRecognizeRequest |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SyncRecognizeRequest |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static SyncRecognizeRequest |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SyncRecognizeRequest |
+parseFrom(java.io.InputStream input) |
+
static SyncRecognizeRequest |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<SyncRecognizeRequest> |
+parser() |
+
SyncRecognizeRequest.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 AUDIO_FIELD_NUMBER+
public final com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 SyncRecognizeRequestOrBuilderpublic 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 SyncRecognizeRequestOrBuilderpublic 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 SyncRecognizeRequestOrBuilderpublic boolean hasAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;hasAudio in interface SyncRecognizeRequestOrBuilderpublic RecognitionAudio getAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;getAudio in interface SyncRecognizeRequestOrBuilderpublic RecognitionAudioOrBuilder getAudioOrBuilder()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;getAudioOrBuilder in interface SyncRecognizeRequestOrBuilderpublic final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SyncRecognizeRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SyncRecognizeRequest parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SyncRecognizeRequest parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SyncRecognizeRequest parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SyncRecognizeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SyncRecognizeRequest parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SyncRecognizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SyncRecognizeRequest parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static SyncRecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SyncRecognizeRequest parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static SyncRecognizeRequest parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SyncRecognizeRequest parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic SyncRecognizeRequest.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SyncRecognizeRequest.Builder newBuilder()+
public static SyncRecognizeRequest.Builder newBuilder(SyncRecognizeRequest prototype)+
public SyncRecognizeRequest.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SyncRecognizeRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SyncRecognizeRequest getDefaultInstance()+
public static com.google.protobuf.Parser<SyncRecognizeRequest> parser()+
public com.google.protobuf.Parser<SyncRecognizeRequest> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SyncRecognizeRequest getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface SyncRecognizeRequestOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
RecognitionAudio |
+getAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
RecognitionAudioOrBuilder |
+getAudioOrBuilder()
+
+ *Required* The audio data to be recognized.
+ |
+
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.
+ |
+
boolean |
+hasAudio()
+
+ *Required* The audio data to be recognized.
+ |
+
boolean |
+hasConfig()
+
+ *Required* Provides information to the recognizer that specifies how to
+ process the request.
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedboolean hasConfig()+
+ *Required* Provides information to the recognizer that specifies how to + process the request. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;RecognitionConfig getConfig()+
+ *Required* Provides information to the recognizer that specifies how to + process the request. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;RecognitionConfigOrBuilder getConfigOrBuilder()+
+ *Required* Provides information to the recognizer that specifies how to + process the request. ++ +
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;boolean hasAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;RecognitionAudio getAudio()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;RecognitionAudioOrBuilder getAudioOrBuilder()+
+ *Required* The audio data to be recognized. ++ +
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;public static final class SyncRecognizeResponse.Builder +extends com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder> +implements SyncRecognizeResponseOrBuilder+
+ The only message returned to the client by `SyncRecognize`. method. It + contains the result as zero or more sequential `SpeechRecognitionResult` + messages. ++ + Protobuf type
google.cloud.speech.v1beta1.SyncRecognizeResponse| Modifier and Type | +Method and Description | +
|---|---|
SyncRecognizeResponse.Builder |
+addAllResults(java.lang.Iterable<? extends SpeechRecognitionResult> values)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SyncRecognizeResponse.Builder |
+addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
SyncRecognizeResponse.Builder |
+addResults(int index,
+ SpeechRecognitionResult.Builder builderForValue)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SyncRecognizeResponse.Builder |
+addResults(int index,
+ SpeechRecognitionResult value)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SyncRecognizeResponse.Builder |
+addResults(SpeechRecognitionResult.Builder builderForValue)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SyncRecognizeResponse.Builder |
+addResults(SpeechRecognitionResult value)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SpeechRecognitionResult.Builder |
+addResultsBuilder()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SpeechRecognitionResult.Builder |
+addResultsBuilder(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SyncRecognizeResponse |
+build() |
+
SyncRecognizeResponse |
+buildPartial() |
+
SyncRecognizeResponse.Builder |
+clear() |
+
SyncRecognizeResponse.Builder |
+clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
+
SyncRecognizeResponse.Builder |
+clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
+
SyncRecognizeResponse.Builder |
+clearResults()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SyncRecognizeResponse.Builder |
+clone() |
+
SyncRecognizeResponse |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Descriptors.Descriptor |
+getDescriptorForType() |
+
SpeechRecognitionResult |
+getResults(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SpeechRecognitionResult.Builder |
+getResultsBuilder(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<SpeechRecognitionResult.Builder> |
+getResultsBuilderList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
int |
+getResultsCount()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<SpeechRecognitionResult> |
+getResultsList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SpeechRecognitionResultOrBuilder |
+getResultsOrBuilder(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<? extends SpeechRecognitionResultOrBuilder> |
+getResultsOrBuilderList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
SyncRecognizeResponse.Builder |
+mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
SyncRecognizeResponse.Builder |
+mergeFrom(com.google.protobuf.Message other) |
+
SyncRecognizeResponse.Builder |
+mergeFrom(SyncRecognizeResponse other) |
+
SyncRecognizeResponse.Builder |
+mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
+
SyncRecognizeResponse.Builder |
+removeResults(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SyncRecognizeResponse.Builder |
+setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) |
+
SyncRecognizeResponse.Builder |
+setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) |
+
SyncRecognizeResponse.Builder |
+setResults(int index,
+ SpeechRecognitionResult.Builder builderForValue)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SyncRecognizeResponse.Builder |
+setResults(int index,
+ SpeechRecognitionResult value)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SyncRecognizeResponse.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>public SyncRecognizeResponse.Builder clear()+
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeResponse.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<SyncRecognizeResponse.Builder>public SyncRecognizeResponse getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SyncRecognizeResponse build()+
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SyncRecognizeResponse buildPartial()+
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SyncRecognizeResponse.Builder clone()+
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>public SyncRecognizeResponse.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<SyncRecognizeResponse.Builder>public SyncRecognizeResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)+
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>public SyncRecognizeResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)+
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>public SyncRecognizeResponse.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<SyncRecognizeResponse.Builder>public SyncRecognizeResponse.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<SyncRecognizeResponse.Builder>public SyncRecognizeResponse.Builder mergeFrom(com.google.protobuf.Message other)+
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SyncRecognizeResponse.Builder>public SyncRecognizeResponse.Builder mergeFrom(SyncRecognizeResponse other)+
public final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>public SyncRecognizeResponse.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<SyncRecognizeResponse.Builder>java.io.IOExceptionpublic java.util.List<SpeechRecognitionResult> getResultsList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsList in interface SyncRecognizeResponseOrBuilderpublic int getResultsCount()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsCount in interface SyncRecognizeResponseOrBuilderpublic SpeechRecognitionResult getResults(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResults in interface SyncRecognizeResponseOrBuilderpublic SyncRecognizeResponse.Builder setResults(int index, + SpeechRecognitionResult value)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SyncRecognizeResponse.Builder setResults(int index, + SpeechRecognitionResult.Builder builderForValue)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SyncRecognizeResponse.Builder addResults(SpeechRecognitionResult value)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SyncRecognizeResponse.Builder addResults(int index, + SpeechRecognitionResult value)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SyncRecognizeResponse.Builder addResults(SpeechRecognitionResult.Builder builderForValue)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SyncRecognizeResponse.Builder addResults(int index, + SpeechRecognitionResult.Builder builderForValue)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SyncRecognizeResponse.Builder addAllResults(java.lang.Iterable<? extends SpeechRecognitionResult> values)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SyncRecognizeResponse.Builder clearResults()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SyncRecognizeResponse.Builder removeResults(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SpeechRecognitionResult.Builder getResultsBuilder(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsOrBuilder in interface SyncRecognizeResponseOrBuilderpublic java.util.List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsOrBuilderList in interface SyncRecognizeResponseOrBuilderpublic SpeechRecognitionResult.Builder addResultsBuilder()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public SpeechRecognitionResult.Builder addResultsBuilder(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public java.util.List<SpeechRecognitionResult.Builder> getResultsBuilderList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;public final SyncRecognizeResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>public final SyncRecognizeResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)+
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>public final class SyncRecognizeResponse +extends com.google.protobuf.GeneratedMessageV3 +implements SyncRecognizeResponseOrBuilder+
+ The only message returned to the client by `SyncRecognize`. method. It + contains the result as zero or more sequential `SpeechRecognitionResult` + messages. ++ + Protobuf type
google.cloud.speech.v1beta1.SyncRecognizeResponse| Modifier and Type | +Class and Description | +
|---|---|
static class |
+SyncRecognizeResponse.Builder
+
+ The only message returned to the client by `SyncRecognize`.
+ |
+
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | +Field and Description | +
|---|---|
static int |
+RESULTS_FIELD_NUMBER |
+
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(java.lang.Object obj) |
+
static SyncRecognizeResponse |
+getDefaultInstance() |
+
SyncRecognizeResponse |
+getDefaultInstanceForType() |
+
static com.google.protobuf.Descriptors.Descriptor |
+getDescriptor() |
+
com.google.protobuf.Parser<SyncRecognizeResponse> |
+getParserForType() |
+
SpeechRecognitionResult |
+getResults(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
int |
+getResultsCount()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<SpeechRecognitionResult> |
+getResultsList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SpeechRecognitionResultOrBuilder |
+getResultsOrBuilder(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<? extends SpeechRecognitionResultOrBuilder> |
+getResultsOrBuilderList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
int |
+getSerializedSize() |
+
com.google.protobuf.UnknownFieldSet |
+getUnknownFields() |
+
int |
+hashCode() |
+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
+internalGetFieldAccessorTable() |
+
boolean |
+isInitialized() |
+
static SyncRecognizeResponse.Builder |
+newBuilder() |
+
static SyncRecognizeResponse.Builder |
+newBuilder(SyncRecognizeResponse prototype) |
+
SyncRecognizeResponse.Builder |
+newBuilderForType() |
+
protected SyncRecognizeResponse.Builder |
+newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
+
static SyncRecognizeResponse |
+parseDelimitedFrom(java.io.InputStream input) |
+
static SyncRecognizeResponse |
+parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SyncRecognizeResponse |
+parseFrom(byte[] data) |
+
static SyncRecognizeResponse |
+parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SyncRecognizeResponse |
+parseFrom(java.nio.ByteBuffer data) |
+
static SyncRecognizeResponse |
+parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SyncRecognizeResponse |
+parseFrom(com.google.protobuf.ByteString data) |
+
static SyncRecognizeResponse |
+parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SyncRecognizeResponse |
+parseFrom(com.google.protobuf.CodedInputStream input) |
+
static SyncRecognizeResponse |
+parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static SyncRecognizeResponse |
+parseFrom(java.io.InputStream input) |
+
static SyncRecognizeResponse |
+parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
+
static com.google.protobuf.Parser<SyncRecognizeResponse> |
+parser() |
+
SyncRecognizeResponse.Builder |
+toBuilder() |
+
void |
+writeTo(com.google.protobuf.CodedOutputStream output) |
+
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 RESULTS_FIELD_NUMBER+
public final com.google.protobuf.UnknownFieldSet getUnknownFields()+
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()+
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()+
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.util.List<SpeechRecognitionResult> getResultsList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsList in interface SyncRecognizeResponseOrBuilderpublic java.util.List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsOrBuilderList in interface SyncRecognizeResponseOrBuilderpublic int getResultsCount()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsCount in interface SyncRecognizeResponseOrBuilderpublic SpeechRecognitionResult getResults(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResults in interface SyncRecognizeResponseOrBuilderpublic SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;getResultsOrBuilder in interface SyncRecognizeResponseOrBuilderpublic final boolean isInitialized()+
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException+
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()+
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)+
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()+
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SyncRecognizeResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SyncRecognizeResponse parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SyncRecognizeResponse parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SyncRecognizeResponse parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SyncRecognizeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SyncRecognizeResponse parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException+
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SyncRecognizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SyncRecognizeResponse parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static SyncRecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SyncRecognizeResponse parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic static SyncRecognizeResponse parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException+
java.io.IOExceptionpublic static SyncRecognizeResponse parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException+
java.io.IOExceptionpublic SyncRecognizeResponse.Builder newBuilderForType()+
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SyncRecognizeResponse.Builder newBuilder()+
public static SyncRecognizeResponse.Builder newBuilder(SyncRecognizeResponse prototype)+
public SyncRecognizeResponse.Builder toBuilder()+
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SyncRecognizeResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)+
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SyncRecognizeResponse getDefaultInstance()+
public static com.google.protobuf.Parser<SyncRecognizeResponse> parser()+
public com.google.protobuf.Parser<SyncRecognizeResponse> getParserForType()+
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SyncRecognizeResponse getDefaultInstanceForType()+
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic interface SyncRecognizeResponseOrBuilder
+extends com.google.protobuf.MessageOrBuilder
+| Modifier and Type | +Method and Description | +
|---|---|
SpeechRecognitionResult |
+getResults(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
int |
+getResultsCount()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<SpeechRecognitionResult> |
+getResultsList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
SpeechRecognitionResultOrBuilder |
+getResultsOrBuilder(int index)
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
java.util.List<? extends SpeechRecognitionResultOrBuilder> |
+getResultsOrBuilderList()
+
+ *Output-only* Sequential list of transcription results corresponding to
+ sequential portions of audio.
+ |
+
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedjava.util.List<SpeechRecognitionResult> getResultsList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;SpeechRecognitionResult getResults(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;int getResultsCount()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;java.util.List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)+
+ *Output-only* Sequential list of transcription results corresponding to + sequential portions of audio. ++ +
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;| Interface | +Description | +
|---|---|
| AsyncRecognizeMetadataOrBuilder | ++ |
| AsyncRecognizeRequestOrBuilder | ++ |
| AsyncRecognizeResponseOrBuilder | ++ |
| RecognitionAudioOrBuilder | ++ |
| RecognitionConfigOrBuilder | ++ |
| SpeechContextOrBuilder | ++ |
| SpeechRecognitionAlternativeOrBuilder | ++ |
| SpeechRecognitionResultOrBuilder | ++ |
| StreamingRecognitionConfigOrBuilder | ++ |
| StreamingRecognitionResultOrBuilder | ++ |
| StreamingRecognizeRequestOrBuilder | ++ |
| StreamingRecognizeResponseOrBuilder | ++ |
| SyncRecognizeRequestOrBuilder | ++ |
| SyncRecognizeResponseOrBuilder | ++ |
| Class | +Description | +
|---|---|
| AsyncRecognizeMetadata | +
+
+ Describes the progress of a long-running `AsyncRecognize` call.
+ |
+
| AsyncRecognizeMetadata.Builder | +
+
+ Describes the progress of a long-running `AsyncRecognize` call.
+ |
+
| AsyncRecognizeRequest | +
+
+ The top-level message sent by the client for the `AsyncRecognize` method.
+ |
+
| AsyncRecognizeRequest.Builder | +
+
+ The top-level message sent by the client for the `AsyncRecognize` method.
+ |
+
| AsyncRecognizeResponse | +
+
+ The only message returned to the client by `AsyncRecognize`.
+ |
+
| AsyncRecognizeResponse.Builder | +
+
+ The only message returned to the client by `AsyncRecognize`.
+ |
+
| RecognitionAudio | +
+
+ Contains audio data in the encoding specified in the `RecognitionConfig`.
+ |
+
| RecognitionAudio.Builder | +
+
+ Contains audio data in the encoding specified in the `RecognitionConfig`.
+ |
+
| RecognitionConfig | +
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
| RecognitionConfig.Builder | +
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
| SpeechContext | +
+
+ Provides "hints" to the speech recognizer to favor specific words and phrases
+ in the results.
+ |
+
| SpeechContext.Builder | +
+
+ Provides "hints" to the speech recognizer to favor specific words and phrases
+ in the results.
+ |
+
| SpeechProto | ++ |
| SpeechRecognitionAlternative | +
+
+ Alternative hypotheses (a.k.a.
+ |
+
| SpeechRecognitionAlternative.Builder | +
+
+ Alternative hypotheses (a.k.a.
+ |
+
| SpeechRecognitionResult | +
+
+ A speech recognition result corresponding to a portion of the audio.
+ |
+
| SpeechRecognitionResult.Builder | +
+
+ A speech recognition result corresponding to a portion of the audio.
+ |
+
| StreamingRecognitionConfig | +
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
| StreamingRecognitionConfig.Builder | +
+
+ Provides information to the recognizer that specifies how to process the
+ request.
+ |
+
| StreamingRecognitionResult | +
+
+ A streaming speech recognition result corresponding to a portion of the audio
+ that is currently being processed.
+ |
+
| StreamingRecognitionResult.Builder | +
+
+ A streaming speech recognition result corresponding to a portion of the audio
+ that is currently being processed.
+ |
+
| StreamingRecognizeRequest | +
+
+ The top-level message sent by the client for the `StreamingRecognize` method.
+ |
+
| StreamingRecognizeRequest.Builder | +
+
+ The top-level message sent by the client for the `StreamingRecognize` method.
+ |
+
| StreamingRecognizeResponse | +
+
+ `StreamingRecognizeResponse` is the only message returned to the client by
+ `StreamingRecognize`.
+ |
+
| StreamingRecognizeResponse.Builder | +
+
+ `StreamingRecognizeResponse` is the only message returned to the client by
+ `StreamingRecognize`.
+ |
+
| SyncRecognizeRequest | +
+
+ The top-level message sent by the client for the `SyncRecognize` method.
+ |
+
| SyncRecognizeRequest.Builder | +
+
+ The top-level message sent by the client for the `SyncRecognize` method.
+ |
+
| SyncRecognizeResponse | +
+
+ The only message returned to the client by `SyncRecognize`.
+ |
+
| SyncRecognizeResponse.Builder | +
+
+ The only message returned to the client by `SyncRecognize`.
+ |
+
| Enum | +Description | +
|---|---|
| RecognitionAudio.AudioSourceCase | ++ |
| RecognitionConfig.AudioEncoding | +
+
+ Audio encoding of the data sent in the audio message.
+ |
+
| StreamingRecognizeRequest.StreamingRequestCase | ++ |
| StreamingRecognizeResponse.EndpointerType | +
+
+ Indicates the type of endpointer event.
+ |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+LAST_UPDATE_TIME_FIELD_NUMBER |
+3 |
+
+
+public static final int |
+PROGRESS_PERCENT_FIELD_NUMBER |
+1 |
+
+
+public static final int |
+START_TIME_FIELD_NUMBER |
+2 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+AUDIO_FIELD_NUMBER |
+2 |
+
+
+public static final int |
+CONFIG_FIELD_NUMBER |
+1 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+RESULTS_FIELD_NUMBER |
+2 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+CONTENT_FIELD_NUMBER |
+1 |
+
+
+public static final int |
+URI_FIELD_NUMBER |
+2 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+ENCODING_FIELD_NUMBER |
+1 |
+
+
+public static final int |
+LANGUAGE_CODE_FIELD_NUMBER |
+3 |
+
+
+public static final int |
+MAX_ALTERNATIVES_FIELD_NUMBER |
+4 |
+
+
+public static final int |
+PROFANITY_FILTER_FIELD_NUMBER |
+5 |
+
+
+public static final int |
+SAMPLE_RATE_FIELD_NUMBER |
+2 |
+
+
+public static final int |
+SPEECH_CONTEXT_FIELD_NUMBER |
+6 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+AMR_VALUE |
+4 |
+
+
+public static final int |
+AMR_WB_VALUE |
+5 |
+
+
+public static final int |
+ENCODING_UNSPECIFIED_VALUE |
+0 |
+
+
+public static final int |
+FLAC_VALUE |
+2 |
+
+
+public static final int |
+LINEAR16_VALUE |
+1 |
+
+
+public static final int |
+MULAW_VALUE |
+3 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+PHRASES_FIELD_NUMBER |
+1 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+CONFIDENCE_FIELD_NUMBER |
+2 |
+
+
+public static final int |
+TRANSCRIPT_FIELD_NUMBER |
+1 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+ALTERNATIVES_FIELD_NUMBER |
+1 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+CONFIG_FIELD_NUMBER |
+1 |
+
+
+public static final int |
+INTERIM_RESULTS_FIELD_NUMBER |
+3 |
+
+
+public static final int |
+SINGLE_UTTERANCE_FIELD_NUMBER |
+2 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+ALTERNATIVES_FIELD_NUMBER |
+1 |
+
+
+public static final int |
+IS_FINAL_FIELD_NUMBER |
+2 |
+
+
+public static final int |
+STABILITY_FIELD_NUMBER |
+3 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+AUDIO_CONTENT_FIELD_NUMBER |
+2 |
+
+
+public static final int |
+STREAMING_CONFIG_FIELD_NUMBER |
+1 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+ENDPOINTER_TYPE_FIELD_NUMBER |
+4 |
+
+
+public static final int |
+ERROR_FIELD_NUMBER |
+1 |
+
+
+public static final int |
+RESULT_INDEX_FIELD_NUMBER |
+3 |
+
+
+public static final int |
+RESULTS_FIELD_NUMBER |
+2 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+END_OF_AUDIO_VALUE |
+3 |
+
+
+public static final int |
+END_OF_SPEECH_VALUE |
+2 |
+
+
+public static final int |
+END_OF_UTTERANCE_VALUE |
+4 |
+
+
+public static final int |
+ENDPOINTER_EVENT_UNSPECIFIED_VALUE |
+0 |
+
+
+public static final int |
+START_OF_SPEECH_VALUE |
+1 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+AUDIO_FIELD_NUMBER |
+2 |
+
+
+public static final int |
+CONFIG_FIELD_NUMBER |
+1 |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+RESULTS_FIELD_NUMBER |
+2 |
+
| Method and Description | +
|---|
| com.google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType.valueOf(int) + + | +
| com.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding.valueOf(int)
+ Use
+RecognitionConfig.AudioEncoding.forNumber(int) instead. |
+
| com.google.cloud.speech.v1beta1.RecognitionAudio.AudioSourceCase.valueOf(int)
+ Use
+RecognitionAudio.AudioSourceCase.forNumber(int) instead. |
+
| com.google.cloud.speech.v1beta1.StreamingRecognizeRequest.StreamingRequestCase.valueOf(int) + + | +
Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+RecognitionAudio.AudioSourceCase.forNumber(int) instead.RecognitionConfig.AudioEncoding.forNumber(int) instead.int progressPercent_+
com.google.protobuf.Timestamp startTime_+
com.google.protobuf.Timestamp lastUpdateTime_+
byte memoizedIsInitialized+
RecognitionConfig config_+
RecognitionAudio audio_+
byte memoizedIsInitialized+
java.util.List<E> results_+
byte memoizedIsInitialized+
int audioSourceCase_+
java.lang.Object audioSource_+
byte memoizedIsInitialized+
int encoding_+
int sampleRate_+
java.lang.Object languageCode_+
int maxAlternatives_+
boolean profanityFilter_+
SpeechContext speechContext_+
byte memoizedIsInitialized+
com.google.protobuf.LazyStringList phrases_+
byte memoizedIsInitialized+
java.lang.Object transcript_+
float confidence_+
byte memoizedIsInitialized+
java.util.List<E> alternatives_+
byte memoizedIsInitialized+
RecognitionConfig config_+
boolean singleUtterance_+
boolean interimResults_+
byte memoizedIsInitialized+
int bitField0_+
java.util.List<E> alternatives_+
boolean isFinal_+
float stability_+
byte memoizedIsInitialized+
int streamingRequestCase_+
java.lang.Object streamingRequest_+
byte memoizedIsInitialized+
int bitField0_+
com.google.rpc.Status error_+
java.util.List<E> results_+
int resultIndex_+
int endpointerType_+
byte memoizedIsInitialized+
RecognitionConfig config_+
RecognitionAudio audio_+
byte memoizedIsInitialized+
java.util.List<E> results_+
byte memoizedIsInitialized+