- 4.50.0 (latest)
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.44.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.32.0
- 4.31.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.16.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.7.0
- 4.6.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.0.0
- 2.6.1
- 2.5.9
- 2.4.0
- 2.3.0
- 2.2.15
public static final class WordInfo.Builder extends GeneratedMessageV3.Builder<WordInfo.Builder> implements WordInfoOrBuilder
Word-specific information for recognized words.
Protobuf type google.cloud.speech.v2.WordInfo
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WordInfo.BuilderImplements
WordInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WordInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
build()
public WordInfo build()
Returns | |
---|---|
Type | Description |
WordInfo |
buildPartial()
public WordInfo buildPartial()
Returns | |
---|---|
Type | Description |
WordInfo |
clear()
public WordInfo.Builder clear()
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
clearConfidence()
public WordInfo.Builder clearConfidence()
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 is
set to 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;
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
This builder for chaining. |
clearEndOffset()
public WordInfo.Builder clearEndOffset()
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
is 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_offset = 2;
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
clearField(Descriptors.FieldDescriptor field)
public WordInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public WordInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
clearSpeakerLabel()
public WordInfo.Builder clearSpeakerLabel()
A distinct label is assigned for every speaker within the audio. This field
specifies which one of those speakers was detected to have spoken this
word. speaker_label
is set if
SpeakerDiarizationConfig
is given and only in the top alternative.
string speaker_label = 6;
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
This builder for chaining. |
clearStartOffset()
public WordInfo.Builder clearStartOffset()
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
is 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_offset = 1;
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
clearWord()
public WordInfo.Builder clearWord()
The word corresponding to this set of information.
string word = 3;
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
This builder for chaining. |
clone()
public WordInfo.Builder clone()
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
getConfidence()
public float getConfidence()
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 is
set to 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;
Returns | |
---|---|
Type | Description |
float |
The confidence. |
getDefaultInstanceForType()
public WordInfo getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
WordInfo |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEndOffset()
public Duration getEndOffset()
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
is 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_offset = 2;
Returns | |
---|---|
Type | Description |
Duration |
The endOffset. |
getEndOffsetBuilder()
public Duration.Builder getEndOffsetBuilder()
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
is 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_offset = 2;
Returns | |
---|---|
Type | Description |
Builder |
getEndOffsetOrBuilder()
public DurationOrBuilder getEndOffsetOrBuilder()
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
is 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_offset = 2;
Returns | |
---|---|
Type | Description |
DurationOrBuilder |
getSpeakerLabel()
public String getSpeakerLabel()
A distinct label is assigned for every speaker within the audio. This field
specifies which one of those speakers was detected to have spoken this
word. speaker_label
is set if
SpeakerDiarizationConfig
is given and only in the top alternative.
string speaker_label = 6;
Returns | |
---|---|
Type | Description |
String |
The speakerLabel. |
getSpeakerLabelBytes()
public ByteString getSpeakerLabelBytes()
A distinct label is assigned for every speaker within the audio. This field
specifies which one of those speakers was detected to have spoken this
word. speaker_label
is set if
SpeakerDiarizationConfig
is given and only in the top alternative.
string speaker_label = 6;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for speakerLabel. |
getStartOffset()
public Duration getStartOffset()
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
is 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_offset = 1;
Returns | |
---|---|
Type | Description |
Duration |
The startOffset. |
getStartOffsetBuilder()
public Duration.Builder getStartOffsetBuilder()
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
is 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_offset = 1;
Returns | |
---|---|
Type | Description |
Builder |
getStartOffsetOrBuilder()
public DurationOrBuilder getStartOffsetOrBuilder()
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
is 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_offset = 1;
Returns | |
---|---|
Type | Description |
DurationOrBuilder |
getWord()
public String getWord()
The word corresponding to this set of information.
string word = 3;
Returns | |
---|---|
Type | Description |
String |
The word. |
getWordBytes()
public ByteString getWordBytes()
The word corresponding to this set of information.
string word = 3;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for word. |
hasEndOffset()
public boolean hasEndOffset()
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
is 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_offset = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the endOffset field is set. |
hasStartOffset()
public boolean hasStartOffset()
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
is 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_offset = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the startOffset field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeEndOffset(Duration value)
public WordInfo.Builder mergeEndOffset(Duration value)
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
is 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_offset = 2;
Parameter | |
---|---|
Name | Description |
value |
Duration |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
mergeFrom(WordInfo other)
public WordInfo.Builder mergeFrom(WordInfo other)
Parameter | |
---|---|
Name | Description |
other |
WordInfo |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WordInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public WordInfo.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
mergeStartOffset(Duration value)
public WordInfo.Builder mergeStartOffset(Duration value)
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
is 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_offset = 1;
Parameter | |
---|---|
Name | Description |
value |
Duration |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WordInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
setConfidence(float value)
public WordInfo.Builder setConfidence(float value)
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 is
set to 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;
Parameter | |
---|---|
Name | Description |
value |
float The confidence to set. |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
This builder for chaining. |
setEndOffset(Duration value)
public WordInfo.Builder setEndOffset(Duration value)
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
is 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_offset = 2;
Parameter | |
---|---|
Name | Description |
value |
Duration |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
setEndOffset(Duration.Builder builderForValue)
public WordInfo.Builder setEndOffset(Duration.Builder builderForValue)
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
is 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_offset = 2;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public WordInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WordInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
setSpeakerLabel(String value)
public WordInfo.Builder setSpeakerLabel(String value)
A distinct label is assigned for every speaker within the audio. This field
specifies which one of those speakers was detected to have spoken this
word. speaker_label
is set if
SpeakerDiarizationConfig
is given and only in the top alternative.
string speaker_label = 6;
Parameter | |
---|---|
Name | Description |
value |
String The speakerLabel to set. |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
This builder for chaining. |
setSpeakerLabelBytes(ByteString value)
public WordInfo.Builder setSpeakerLabelBytes(ByteString value)
A distinct label is assigned for every speaker within the audio. This field
specifies which one of those speakers was detected to have spoken this
word. speaker_label
is set if
SpeakerDiarizationConfig
is given and only in the top alternative.
string speaker_label = 6;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for speakerLabel to set. |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
This builder for chaining. |
setStartOffset(Duration value)
public WordInfo.Builder setStartOffset(Duration value)
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
is 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_offset = 1;
Parameter | |
---|---|
Name | Description |
value |
Duration |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
setStartOffset(Duration.Builder builderForValue)
public WordInfo.Builder setStartOffset(Duration.Builder builderForValue)
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
is 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_offset = 1;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final WordInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
setWord(String value)
public WordInfo.Builder setWord(String value)
The word corresponding to this set of information.
string word = 3;
Parameter | |
---|---|
Name | Description |
value |
String The word to set. |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
This builder for chaining. |
setWordBytes(ByteString value)
public WordInfo.Builder setWordBytes(ByteString value)
The word corresponding to this set of information.
string word = 3;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for word to set. |
Returns | |
---|---|
Type | Description |
WordInfo.Builder |
This builder for chaining. |