- 4.49.0 (latest)
- 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 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()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpeechRecognitionAlternative.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SpeechRecognitionAlternative.Builder |
build()
public SpeechRecognitionAlternative build()
Type | Description |
SpeechRecognitionAlternative |
buildPartial()
public SpeechRecognitionAlternative buildPartial()
Type | Description |
SpeechRecognitionAlternative |
clear()
public SpeechRecognitionAlternative.Builder clear()
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;
Type | Description |
SpeechRecognitionAlternative.Builder |
clearField(Descriptors.FieldDescriptor field)
public SpeechRecognitionAlternative.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
SpeechRecognitionAlternative.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public SpeechRecognitionAlternative.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
SpeechRecognitionAlternative.Builder |
clearTranscript()
public SpeechRecognitionAlternative.Builder clearTranscript()
Output-only Transcript text representing the words that the user spoke.
string transcript = 1;
Type | Description |
SpeechRecognitionAlternative.Builder |
clone()
public SpeechRecognitionAlternative.Builder clone()
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;
Type | Description |
float |
getDefaultInstanceForType()
public SpeechRecognitionAlternative getDefaultInstanceForType()
Type | Description |
SpeechRecognitionAlternative |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getTranscript()
public String getTranscript()
Output-only Transcript text representing the words that the user spoke.
string transcript = 1;
Type | Description |
String |
getTranscriptBytes()
public ByteString getTranscriptBytes()
Output-only Transcript text representing the words that the user spoke.
string transcript = 1;
Type | Description |
ByteString |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(SpeechRecognitionAlternative other)
public SpeechRecognitionAlternative.Builder mergeFrom(SpeechRecognitionAlternative other)
Name | Description |
other | SpeechRecognitionAlternative |
Type | Description |
SpeechRecognitionAlternative.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SpeechRecognitionAlternative.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SpeechRecognitionAlternative.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public SpeechRecognitionAlternative.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
SpeechRecognitionAlternative.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpeechRecognitionAlternative.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
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;
Name | Description |
value | float |
Type | Description |
SpeechRecognitionAlternative.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public SpeechRecognitionAlternative.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SpeechRecognitionAlternative.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpeechRecognitionAlternative.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
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;
Name | Description |
value | String |
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;
Name | Description |
value | ByteString |
Type | Description |
SpeechRecognitionAlternative.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final SpeechRecognitionAlternative.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SpeechRecognitionAlternative.Builder |