public static final class SpeechTranscription.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder> implements SpeechTranscriptionOrBuilder
A speech recognition result corresponding to a portion of the audio.Protobuf type
google.cloud.videointelligence.v1p3beta1.SpeechTranscription| Modifier and Type | Method and Description |
|---|---|
SpeechTranscription.Builder |
addAllAlternatives(Iterable<? extends SpeechRecognitionAlternative> values)
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechTranscription.Builder |
addAlternatives(int index,
SpeechRecognitionAlternative.Builder builderForValue)
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechTranscription.Builder |
addAlternatives(int index,
SpeechRecognitionAlternative value)
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechTranscription.Builder |
addAlternatives(SpeechRecognitionAlternative.Builder builderForValue)
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechTranscription.Builder |
addAlternatives(SpeechRecognitionAlternative value)
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechRecognitionAlternative.Builder |
addAlternativesBuilder()
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechRecognitionAlternative.Builder |
addAlternativesBuilder(int index)
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechTranscription.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SpeechTranscription |
build() |
SpeechTranscription |
buildPartial() |
SpeechTranscription.Builder |
clear() |
SpeechTranscription.Builder |
clearAlternatives()
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechTranscription.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SpeechTranscription.Builder |
clearLanguageCode()
Output only.
|
SpeechTranscription.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SpeechTranscription.Builder |
clone() |
SpeechRecognitionAlternative |
getAlternatives(int index)
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechRecognitionAlternative.Builder |
getAlternativesBuilder(int index)
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
List<SpeechRecognitionAlternative.Builder> |
getAlternativesBuilderList()
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
int |
getAlternativesCount()
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
List<SpeechRecognitionAlternative> |
getAlternativesList()
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechRecognitionAlternativeOrBuilder |
getAlternativesOrBuilder(int index)
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
List<? extends SpeechRecognitionAlternativeOrBuilder> |
getAlternativesOrBuilderList()
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechTranscription |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getLanguageCode()
Output only.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SpeechTranscription.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SpeechTranscription.Builder |
mergeFrom(com.google.protobuf.Message other) |
SpeechTranscription.Builder |
mergeFrom(SpeechTranscription other) |
SpeechTranscription.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SpeechTranscription.Builder |
removeAlternatives(int index)
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechTranscription.Builder |
setAlternatives(int index,
SpeechRecognitionAlternative.Builder builderForValue)
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechTranscription.Builder |
setAlternatives(int index,
SpeechRecognitionAlternative value)
May contain one or more recognition hypotheses (up to the maximum specified
in `max_alternatives`).
|
SpeechTranscription.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SpeechTranscription.Builder |
setLanguageCode(String value)
Output only.
|
SpeechTranscription.Builder |
setLanguageCodeBytes(com.google.protobuf.ByteString value)
Output only.
|
SpeechTranscription.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SpeechTranscription.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>public SpeechTranscription.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>public SpeechTranscription getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SpeechTranscription build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SpeechTranscription buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SpeechTranscription.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>public SpeechTranscription.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>public SpeechTranscription.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>public SpeechTranscription.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>public SpeechTranscription.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>public SpeechTranscription.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>public SpeechTranscription.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpeechTranscription.Builder>public SpeechTranscription.Builder mergeFrom(SpeechTranscription other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>public SpeechTranscription.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpeechTranscription.Builder>IOExceptionpublic 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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
getAlternativesList in interface SpeechTranscriptionOrBuilderpublic 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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
getAlternativesCount in interface SpeechTranscriptionOrBuilderpublic 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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
getAlternatives in interface SpeechTranscriptionOrBuilderpublic 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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
getAlternativesOrBuilder in interface SpeechTranscriptionOrBuilderpublic 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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
getAlternativesOrBuilderList in interface SpeechTranscriptionOrBuilderpublic 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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
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.v1p3beta1.SpeechRecognitionAlternative alternatives = 1;
public String getLanguageCode()
Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getLanguageCode in interface SpeechTranscriptionOrBuilderpublic com.google.protobuf.ByteString getLanguageCodeBytes()
Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getLanguageCodeBytes in interface SpeechTranscriptionOrBuilderpublic SpeechTranscription.Builder setLanguageCode(String value)
Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The languageCode to set.public SpeechTranscription.Builder clearLanguageCode()
Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];public SpeechTranscription.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for languageCode to set.public final SpeechTranscription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>public final SpeechTranscription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>Copyright © 2024 Google LLC. All rights reserved.