Class SpeechTranscription.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
- com.google.cloud.videointelligence.v1.SpeechTranscription.Builder
-
- All Implemented Interfaces:
SpeechTranscriptionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SpeechTranscription
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 typegoogle.cloud.videointelligence.v1.SpeechTranscription
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SpeechTranscription.BuilderaddAllAlternatives(Iterable<? extends SpeechRecognitionAlternative> values)May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechTranscription.BuilderaddAlternatives(int index, SpeechRecognitionAlternative value)May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechTranscription.BuilderaddAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechTranscription.BuilderaddAlternatives(SpeechRecognitionAlternative value)May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechTranscription.BuilderaddAlternatives(SpeechRecognitionAlternative.Builder builderForValue)May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionAlternative.BuilderaddAlternativesBuilder()May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionAlternative.BuilderaddAlternativesBuilder(int index)May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechTranscription.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SpeechTranscriptionbuild()SpeechTranscriptionbuildPartial()SpeechTranscription.Builderclear()SpeechTranscription.BuilderclearAlternatives()May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechTranscription.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SpeechTranscription.BuilderclearLanguageCode()Output only.SpeechTranscription.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SpeechTranscription.Builderclone()SpeechRecognitionAlternativegetAlternatives(int index)May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionAlternative.BuildergetAlternativesBuilder(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`).intgetAlternativesCount()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`).SpeechRecognitionAlternativeOrBuildergetAlternativesOrBuilder(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`).SpeechTranscriptiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetLanguageCode()Output only.com.google.protobuf.ByteStringgetLanguageCodeBytes()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SpeechTranscription.BuildermergeFrom(SpeechTranscription other)SpeechTranscription.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SpeechTranscription.BuildermergeFrom(com.google.protobuf.Message other)SpeechTranscription.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SpeechTranscription.BuilderremoveAlternatives(int index)May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechTranscription.BuildersetAlternatives(int index, SpeechRecognitionAlternative value)May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechTranscription.BuildersetAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechTranscription.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SpeechTranscription.BuildersetLanguageCode(String value)Output only.SpeechTranscription.BuildersetLanguageCodeBytes(com.google.protobuf.ByteString value)Output only.SpeechTranscription.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SpeechTranscription.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
clear
public SpeechTranscription.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
getDefaultInstanceForType
public SpeechTranscription getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SpeechTranscription build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SpeechTranscription buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SpeechTranscription.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
setField
public SpeechTranscription.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
clearField
public SpeechTranscription.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
clearOneof
public SpeechTranscription.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
setRepeatedField
public SpeechTranscription.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
addRepeatedField
public SpeechTranscription.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
mergeFrom
public SpeechTranscription.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SpeechTranscription.Builder>
-
mergeFrom
public SpeechTranscription.Builder mergeFrom(SpeechTranscription other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
mergeFrom
public SpeechTranscription.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SpeechTranscription.Builder>- Throws:
IOException
-
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.v1.SpeechRecognitionAlternative alternatives = 1;- Specified by:
getAlternativesListin interfaceSpeechTranscriptionOrBuilder
-
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.v1.SpeechRecognitionAlternative alternatives = 1;- Specified by:
getAlternativesCountin interfaceSpeechTranscriptionOrBuilder
-
getAlternatives
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.v1.SpeechRecognitionAlternative alternatives = 1;- Specified by:
getAlternativesin interfaceSpeechTranscriptionOrBuilder
-
setAlternatives
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.v1.SpeechRecognitionAlternative alternatives = 1;
-
setAlternatives
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.v1.SpeechRecognitionAlternative alternatives = 1;
-
addAlternatives
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.v1.SpeechRecognitionAlternative alternatives = 1;
-
addAlternatives
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.v1.SpeechRecognitionAlternative alternatives = 1;
-
addAlternatives
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.v1.SpeechRecognitionAlternative alternatives = 1;
-
addAlternatives
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.v1.SpeechRecognitionAlternative alternatives = 1;
-
addAllAlternatives
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.v1.SpeechRecognitionAlternative alternatives = 1;
-
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.v1.SpeechRecognitionAlternative alternatives = 1;
-
removeAlternatives
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.v1.SpeechRecognitionAlternative alternatives = 1;
-
getAlternativesBuilder
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.v1.SpeechRecognitionAlternative alternatives = 1;
-
getAlternativesOrBuilder
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.v1.SpeechRecognitionAlternative alternatives = 1;- Specified by:
getAlternativesOrBuilderin interfaceSpeechTranscriptionOrBuilder
-
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.v1.SpeechRecognitionAlternative alternatives = 1;- Specified by:
getAlternativesOrBuilderListin interfaceSpeechTranscriptionOrBuilder
-
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.v1.SpeechRecognitionAlternative alternatives = 1;
-
addAlternativesBuilder
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.v1.SpeechRecognitionAlternative alternatives = 1;
-
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.v1.SpeechRecognitionAlternative alternatives = 1;
-
getLanguageCode
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];- Specified by:
getLanguageCodein interfaceSpeechTranscriptionOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public 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];- Specified by:
getLanguageCodeBytesin interfaceSpeechTranscriptionOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
public 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];- Parameters:
value- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
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];- Returns:
- This builder for chaining.
-
setLanguageCodeBytes
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];- Parameters:
value- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SpeechTranscription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
mergeUnknownFields
public final SpeechTranscription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
-