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.v1p1beta1.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.v1p1beta1.SpeechTranscription
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 value)
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(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`).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
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()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SpeechTranscription.Builder
mergeFrom(SpeechTranscription other)
SpeechTranscription.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SpeechTranscription.Builder
mergeFrom(com.google.protobuf.Message 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 value)
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
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SpeechTranscription.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SpeechTranscription.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
clear
public SpeechTranscription.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
getDefaultInstanceForType
public SpeechTranscription getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SpeechTranscription build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SpeechTranscription buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SpeechTranscription.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
setField
public SpeechTranscription.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
clearField
public SpeechTranscription.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
clearOneof
public SpeechTranscription.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
setRepeatedField
public SpeechTranscription.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
addRepeatedField
public SpeechTranscription.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
mergeFrom
public SpeechTranscription.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SpeechTranscription.Builder>
-
mergeFrom
public SpeechTranscription.Builder mergeFrom(SpeechTranscription other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
- Specified by:
getAlternativesList
in 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.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
- Specified by:
getAlternativesCount
in 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.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
- Specified by:
getAlternatives
in 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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
- Specified by:
getAlternativesOrBuilder
in 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.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
- Specified by:
getAlternativesOrBuilderList
in 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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
-
setUnknownFields
public final SpeechTranscription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
mergeUnknownFields
public final SpeechTranscription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechTranscription.Builder>
-
-