- 4.48.0 (latest)
- 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 SpeechRecognitionAlternative.Builder extends GeneratedMessageV3.Builder<SpeechRecognitionAlternative.Builder> implements SpeechRecognitionAlternativeOrBuilder
Alternative hypotheses (a.k.a. n-best list).
Protobuf type google.cloud.speech.v1beta1.SpeechRecognitionAlternative
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SpeechRecognitionAlternative.BuilderImplements
SpeechRecognitionAlternativeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpeechRecognitionAlternative.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
build()
public SpeechRecognitionAlternative build()
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative |
buildPartial()
public SpeechRecognitionAlternative buildPartial()
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative |
clear()
public SpeechRecognitionAlternative.Builder clear()
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
clearConfidence()
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;
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
clearField(Descriptors.FieldDescriptor field)
public SpeechRecognitionAlternative.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public SpeechRecognitionAlternative.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
clearTranscript()
public SpeechRecognitionAlternative.Builder clearTranscript()
Output-only Transcript text representing the words that the user spoke.
string transcript = 1;
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
clone()
public SpeechRecognitionAlternative.Builder clone()
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
getConfidence()
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;
Returns | |
---|---|
Type | Description |
float |
getDefaultInstanceForType()
public SpeechRecognitionAlternative getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getTranscript()
public String getTranscript()
Output-only Transcript text representing the words that the user spoke.
string transcript = 1;
Returns | |
---|---|
Type | Description |
String |
getTranscriptBytes()
public ByteString getTranscriptBytes()
Output-only Transcript text representing the words that the user spoke.
string transcript = 1;
Returns | |
---|---|
Type | Description |
ByteString |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(SpeechRecognitionAlternative other)
public SpeechRecognitionAlternative.Builder mergeFrom(SpeechRecognitionAlternative other)
Parameter | |
---|---|
Name | Description |
other |
SpeechRecognitionAlternative |
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SpeechRecognitionAlternative.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public SpeechRecognitionAlternative.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpeechRecognitionAlternative.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
setConfidence(float value)
public 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;
Parameter | |
---|---|
Name | Description |
value |
float |
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public SpeechRecognitionAlternative.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpeechRecognitionAlternative.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
setTranscript(String value)
public SpeechRecognitionAlternative.Builder setTranscript(String value)
Output-only Transcript text representing the words that the user spoke.
string transcript = 1;
Parameter | |
---|---|
Name | Description |
value |
String |
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
setTranscriptBytes(ByteString value)
public SpeechRecognitionAlternative.Builder setTranscriptBytes(ByteString value)
Output-only Transcript text representing the words that the user spoke.
string transcript = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString |
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final SpeechRecognitionAlternative.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SpeechRecognitionAlternative.Builder |