public static final class SpeechTranscription.Builder extends GeneratedMessage.Builder<SpeechTranscription.Builder> implements SpeechTranscriptionOrBuilder
A speech recognition result corresponding to a portion of the audio.
Protobuf type google.cloud.videointelligence.v1p1beta1.SpeechTranscription
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllAlternatives(Iterable<? extends SpeechRecognitionAlternative> values)
public SpeechTranscription.Builder addAllAlternatives(Iterable<? extends SpeechRecognitionAlternative> values)
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative>
|
addAlternatives(SpeechRecognitionAlternative value)
public SpeechTranscription.Builder addAlternatives(SpeechRecognitionAlternative value)
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
addAlternatives(SpeechRecognitionAlternative.Builder builderForValue)
public SpeechTranscription.Builder addAlternatives(SpeechRecognitionAlternative.Builder builderForValue)
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
addAlternatives(int index, SpeechRecognitionAlternative value)
public SpeechTranscription.Builder addAlternatives(int index, SpeechRecognitionAlternative value)
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
addAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)
public SpeechTranscription.Builder addAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
addAlternativesBuilder()
public SpeechRecognitionAlternative.Builder addAlternativesBuilder()
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
addAlternativesBuilder(int index)
public SpeechRecognitionAlternative.Builder addAlternativesBuilder(int index)
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
| Parameter |
| Name |
Description |
index |
int
|
build()
public SpeechTranscription build()
buildPartial()
public SpeechTranscription buildPartial()
clear()
public SpeechTranscription.Builder clear()
Overrides
clearAlternatives()
public SpeechTranscription.Builder clearAlternatives()
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
getAlternatives(int index)
public SpeechRecognitionAlternative getAlternatives(int index)
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
| Parameter |
| Name |
Description |
index |
int
|
getAlternativesBuilder(int index)
public SpeechRecognitionAlternative.Builder getAlternativesBuilder(int index)
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
| Parameter |
| Name |
Description |
index |
int
|
getAlternativesBuilderList()
public List<SpeechRecognitionAlternative.Builder> getAlternativesBuilderList()
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
getAlternativesCount()
public int getAlternativesCount()
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
| Returns |
| Type |
Description |
int |
|
getAlternativesList()
public List<SpeechRecognitionAlternative> getAlternativesList()
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
getAlternativesOrBuilder(int index)
public SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(int index)
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
| Parameter |
| Name |
Description |
index |
int
|
getAlternativesOrBuilderList()
public List<? extends SpeechRecognitionAlternativeOrBuilder> getAlternativesOrBuilderList()
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> |
|
getDefaultInstanceForType()
public SpeechTranscription getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SpeechTranscription other)
public SpeechTranscription.Builder mergeFrom(SpeechTranscription other)
public SpeechTranscription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SpeechTranscription.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
removeAlternatives(int index)
public SpeechTranscription.Builder removeAlternatives(int index)
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
| Parameter |
| Name |
Description |
index |
int
|
setAlternatives(int index, SpeechRecognitionAlternative value)
public SpeechTranscription.Builder setAlternatives(int index, SpeechRecognitionAlternative value)
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
setAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)
public SpeechTranscription.Builder setAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;