public final class WordInfo extends com.google.protobuf.GeneratedMessageV3 implements WordInfoOrBuilder
Word-specific information for recognized words.Protobuf type
google.cloud.speech.v1p1beta1.WordInfo| Modifier and Type | Class and Description |
|---|---|
static class |
WordInfo.Builder
Word-specific information for recognized words.
|
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 |
END_TIME_FIELD_NUMBER |
static int |
SPEAKER_TAG_FIELD_NUMBER |
static int |
START_TIME_FIELD_NUMBER |
static int |
WORD_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
float |
getConfidence()
Output only.
|
static WordInfo |
getDefaultInstance() |
WordInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Duration |
getEndTime()
Output only.
|
com.google.protobuf.DurationOrBuilder |
getEndTimeOrBuilder()
Output only.
|
com.google.protobuf.Parser<WordInfo> |
getParserForType() |
int |
getSerializedSize() |
int |
getSpeakerTag()
Output only.
|
com.google.protobuf.Duration |
getStartTime()
Output only.
|
com.google.protobuf.DurationOrBuilder |
getStartTimeOrBuilder()
Output only.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getWord()
Output only.
|
com.google.protobuf.ByteString |
getWordBytes()
Output only.
|
boolean |
hasEndTime()
Output only.
|
int |
hashCode() |
boolean |
hasStartTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static WordInfo.Builder |
newBuilder() |
static WordInfo.Builder |
newBuilder(WordInfo prototype) |
WordInfo.Builder |
newBuilderForType() |
protected WordInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static WordInfo |
parseDelimitedFrom(InputStream input) |
static WordInfo |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WordInfo |
parseFrom(byte[] data) |
static WordInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WordInfo |
parseFrom(ByteBuffer data) |
static WordInfo |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WordInfo |
parseFrom(com.google.protobuf.ByteString data) |
static WordInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WordInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static WordInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WordInfo |
parseFrom(InputStream input) |
static WordInfo |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<WordInfo> |
parser() |
WordInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int START_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
public static final int WORD_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
public static final int SPEAKER_TAG_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 hasStartTime()
Output only. Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word. This field is only set if `enable_word_time_offsets=true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_time = 1;hasStartTime in interface WordInfoOrBuilderpublic com.google.protobuf.Duration getStartTime()
Output only. Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word. This field is only set if `enable_word_time_offsets=true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_time = 1;getStartTime in interface WordInfoOrBuilderpublic com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder()
Output only. Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word. This field is only set if `enable_word_time_offsets=true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_time = 1;getStartTimeOrBuilder in interface WordInfoOrBuilderpublic boolean hasEndTime()
Output only. Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word. This field is only set if `enable_word_time_offsets=true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_time = 2;hasEndTime in interface WordInfoOrBuilderpublic com.google.protobuf.Duration getEndTime()
Output only. Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word. This field is only set if `enable_word_time_offsets=true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_time = 2;getEndTime in interface WordInfoOrBuilderpublic com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder()
Output only. Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word. This field is only set if `enable_word_time_offsets=true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_time = 2;getEndTimeOrBuilder in interface WordInfoOrBuilderpublic String getWord()
Output only. The word corresponding to this set of information.
string word = 3;getWord in interface WordInfoOrBuilderpublic com.google.protobuf.ByteString getWordBytes()
Output only. The word corresponding to this set of information.
string word = 3;getWordBytes in interface WordInfoOrBuilderpublic 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 set only for the top alternative of a non-streaming result or, of a streaming result where `is_final=true`. This field is not guaranteed to be accurate and users should not rely on it to be always provided. The default of 0.0 is a sentinel value indicating `confidence` was not set.
float confidence = 4;getConfidence in interface WordInfoOrBuilderpublic int getSpeakerTag()
Output only. A distinct integer value is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. Value ranges from '1' to diarization_speaker_count. speaker_tag is set if enable_speaker_diarization = 'true' and only in the top alternative.
int32 speaker_tag = 5;getSpeakerTag in interface WordInfoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(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 WordInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WordInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WordInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WordInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WordInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WordInfo parseFrom(InputStream input) throws IOException
IOExceptionpublic static WordInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static WordInfo parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static WordInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static WordInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static WordInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic WordInfo.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static WordInfo.Builder newBuilder()
public static WordInfo.Builder newBuilder(WordInfo prototype)
public WordInfo.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected WordInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static WordInfo getDefaultInstance()
public static com.google.protobuf.Parser<WordInfo> parser()
public com.google.protobuf.Parser<WordInfo> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public WordInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.