Package com.google.cloud.speech.v1beta1
Class SpeechRecognitionResult.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.Builder>
-
- com.google.cloud.speech.v1beta1.SpeechRecognitionResult.Builder
-
- All Implemented Interfaces:
SpeechRecognitionResultOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SpeechRecognitionResult
public static final class SpeechRecognitionResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.Builder> implements SpeechRecognitionResultOrBuilder
A speech recognition result corresponding to a portion of the audio.
Protobuf typegoogle.cloud.speech.v1beta1.SpeechRecognitionResult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SpeechRecognitionResult.Builder
addAllAlternatives(Iterable<? extends SpeechRecognitionAlternative> values)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionResult.Builder
addAlternatives(int index, SpeechRecognitionAlternative value)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionResult.Builder
addAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionResult.Builder
addAlternatives(SpeechRecognitionAlternative value)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionResult.Builder
addAlternatives(SpeechRecognitionAlternative.Builder builderForValue)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionAlternative.Builder
addAlternativesBuilder()
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionAlternative.Builder
addAlternativesBuilder(int index)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionResult.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SpeechRecognitionResult
build()
SpeechRecognitionResult
buildPartial()
SpeechRecognitionResult.Builder
clear()
SpeechRecognitionResult.Builder
clearAlternatives()
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionResult.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SpeechRecognitionResult.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SpeechRecognitionResult.Builder
clone()
SpeechRecognitionAlternative
getAlternatives(int index)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionAlternative.Builder
getAlternativesBuilder(int index)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).List<SpeechRecognitionAlternative.Builder>
getAlternativesBuilderList()
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).int
getAlternativesCount()
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).List<SpeechRecognitionAlternative>
getAlternativesList()
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionAlternativeOrBuilder
getAlternativesOrBuilder(int index)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).List<? extends SpeechRecognitionAlternativeOrBuilder>
getAlternativesOrBuilderList()
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionResult
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SpeechRecognitionResult.Builder
mergeFrom(SpeechRecognitionResult other)
SpeechRecognitionResult.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SpeechRecognitionResult.Builder
mergeFrom(com.google.protobuf.Message other)
SpeechRecognitionResult.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SpeechRecognitionResult.Builder
removeAlternatives(int index)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionResult.Builder
setAlternatives(int index, SpeechRecognitionAlternative value)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionResult.Builder
setAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).SpeechRecognitionResult.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SpeechRecognitionResult.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>
-
clear
public SpeechRecognitionResult.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<SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>
-
getDefaultInstanceForType
public SpeechRecognitionResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SpeechRecognitionResult build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SpeechRecognitionResult buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>
-
setField
public SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>
-
clearField
public SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>
-
clearOneof
public SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>
-
setRepeatedField
public SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>
-
addRepeatedField
public SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>
-
mergeFrom
public SpeechRecognitionResult.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SpeechRecognitionResult.Builder>
-
mergeFrom
public SpeechRecognitionResult.Builder mergeFrom(SpeechRecognitionResult other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.Builder>
-
mergeFrom
public SpeechRecognitionResult.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<SpeechRecognitionResult.Builder>
- Throws:
IOException
-
getAlternativesList
public List<SpeechRecognitionAlternative> getAlternativesList()
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
- Specified by:
getAlternativesList
in interfaceSpeechRecognitionResultOrBuilder
-
getAlternativesCount
public int getAlternativesCount()
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
- Specified by:
getAlternativesCount
in interfaceSpeechRecognitionResultOrBuilder
-
getAlternatives
public SpeechRecognitionAlternative getAlternatives(int index)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
- Specified by:
getAlternatives
in interfaceSpeechRecognitionResultOrBuilder
-
setAlternatives
public SpeechRecognitionResult.Builder setAlternatives(int index, SpeechRecognitionAlternative value)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
-
setAlternatives
public SpeechRecognitionResult.Builder setAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
-
addAlternatives
public SpeechRecognitionResult.Builder addAlternatives(SpeechRecognitionAlternative value)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
-
addAlternatives
public SpeechRecognitionResult.Builder addAlternatives(int index, SpeechRecognitionAlternative value)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
-
addAlternatives
public SpeechRecognitionResult.Builder addAlternatives(SpeechRecognitionAlternative.Builder builderForValue)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
-
addAlternatives
public SpeechRecognitionResult.Builder addAlternatives(int index, SpeechRecognitionAlternative.Builder builderForValue)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
-
addAllAlternatives
public SpeechRecognitionResult.Builder addAllAlternatives(Iterable<? extends SpeechRecognitionAlternative> values)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
-
clearAlternatives
public SpeechRecognitionResult.Builder clearAlternatives()
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
-
removeAlternatives
public SpeechRecognitionResult.Builder removeAlternatives(int index)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
-
getAlternativesBuilder
public SpeechRecognitionAlternative.Builder getAlternativesBuilder(int index)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
-
getAlternativesOrBuilder
public SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(int index)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
- Specified by:
getAlternativesOrBuilder
in interfaceSpeechRecognitionResultOrBuilder
-
getAlternativesOrBuilderList
public List<? extends SpeechRecognitionAlternativeOrBuilder> getAlternativesOrBuilderList()
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
- Specified by:
getAlternativesOrBuilderList
in interfaceSpeechRecognitionResultOrBuilder
-
addAlternativesBuilder
public SpeechRecognitionAlternative.Builder addAlternativesBuilder()
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
-
addAlternativesBuilder
public SpeechRecognitionAlternative.Builder addAlternativesBuilder(int index)
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
-
getAlternativesBuilderList
public List<SpeechRecognitionAlternative.Builder> getAlternativesBuilderList()
*Output-only* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`).
repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;
-
setUnknownFields
public final SpeechRecognitionResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.Builder>
-
mergeUnknownFields
public final SpeechRecognitionResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechRecognitionResult.Builder>
-
-