public final class WordInfo extends GeneratedMessageV3 implements WordInfoOrBuilder
Word-specific information for recognized words. Word information is only included in the response when certain request parameters are set, such as `enable_word_time_offsets`.Protobuf type
google.cloud.speech.v1.WordInfo
Modifier and Type | Class and Description |
---|---|
static class |
WordInfo.Builder
Word-specific information for recognized words.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
END_TIME_FIELD_NUMBER |
static int |
START_TIME_FIELD_NUMBER |
static int |
WORD_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static WordInfo |
getDefaultInstance() |
WordInfo |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Duration |
getEndTime()
*Output-only* Time offset relative to the beginning of the audio,
and corresponding to the end of the spoken word.
|
DurationOrBuilder |
getEndTimeOrBuilder()
*Output-only* Time offset relative to the beginning of the audio,
and corresponding to the end of the spoken word.
|
Parser<WordInfo> |
getParserForType() |
int |
getSerializedSize() |
Duration |
getStartTime()
*Output-only* Time offset relative to the beginning of the audio,
and corresponding to the start of the spoken word.
|
DurationOrBuilder |
getStartTimeOrBuilder()
*Output-only* Time offset relative to the beginning of the audio,
and corresponding to the start of the spoken word.
|
UnknownFieldSet |
getUnknownFields() |
java.lang.String |
getWord()
*Output-only* The word corresponding to this set of information.
|
ByteString |
getWordBytes()
*Output-only* The word corresponding to this set of information.
|
boolean |
hasEndTime()
*Output-only* Time offset relative to the beginning of the audio,
and corresponding to the end of the spoken word.
|
int |
hashCode() |
boolean |
hasStartTime()
*Output-only* Time offset relative to the beginning of the audio,
and corresponding to the start of the spoken word.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static WordInfo.Builder |
newBuilder() |
static WordInfo.Builder |
newBuilder(WordInfo prototype) |
WordInfo.Builder |
newBuilderForType() |
protected WordInfo.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static WordInfo |
parseDelimitedFrom(java.io.InputStream input) |
static WordInfo |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static WordInfo |
parseFrom(byte[] data) |
static WordInfo |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static WordInfo |
parseFrom(java.nio.ByteBuffer data) |
static WordInfo |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static WordInfo |
parseFrom(ByteString data) |
static WordInfo |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static WordInfo |
parseFrom(CodedInputStream input) |
static WordInfo |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static WordInfo |
parseFrom(java.io.InputStream input) |
static WordInfo |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<WordInfo> |
parser() |
WordInfo.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int START_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
public static final int WORD_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public boolean 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 WordInfoOrBuilder
public 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 WordInfoOrBuilder
public 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 WordInfoOrBuilder
public 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 WordInfoOrBuilder
public 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 WordInfoOrBuilder
public 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 WordInfoOrBuilder
public java.lang.String getWord()
*Output-only* The word corresponding to this set of information.
string word = 3;
getWord
in interface WordInfoOrBuilder
public ByteString getWordBytes()
*Output-only* The word corresponding to this set of information.
string word = 3;
getWordBytes
in interface WordInfoOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static WordInfo parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WordInfo parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WordInfo parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WordInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WordInfo parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WordInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WordInfo parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static WordInfo parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static WordInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static WordInfo parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static WordInfo parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static WordInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public WordInfo.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static WordInfo.Builder newBuilder()
public static WordInfo.Builder newBuilder(WordInfo prototype)
public WordInfo.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected WordInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static WordInfo getDefaultInstance()
public Parser<WordInfo> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public WordInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder