public final class SpeechTranscription extends GeneratedMessageV3 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.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ALTERNATIVES_FIELD_NUMBER
public static final int ALTERNATIVES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SpeechTranscription getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SpeechTranscription.Builder newBuilder()
newBuilder(SpeechTranscription prototype)
public static SpeechTranscription.Builder newBuilder(SpeechTranscription prototype)
public static SpeechTranscription parseDelimitedFrom(InputStream input)
public static SpeechTranscription parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SpeechTranscription parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SpeechTranscription parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SpeechTranscription parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SpeechTranscription parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SpeechTranscription parseFrom(CodedInputStream input)
public static SpeechTranscription parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SpeechTranscription parseFrom(InputStream input)
public static SpeechTranscription parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SpeechTranscription parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SpeechTranscription parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SpeechTranscription> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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
|
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()
getParserForType()
public Parser<SpeechTranscription> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SpeechTranscription.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SpeechTranscription.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SpeechTranscription.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides