Package com.google.cloud.speech.v2
Class BatchRecognizeResults.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResults.Builder>
com.google.cloud.speech.v2.BatchRecognizeResults.Builder
- All Implemented Interfaces:
BatchRecognizeResultsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchRecognizeResults
public static final class BatchRecognizeResults.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResults.Builder>
implements BatchRecognizeResultsOrBuilder
Output type for Cloud Storage of BatchRecognize transcripts. Though this proto isn't returned in this API anywhere, the Cloud Storage transcripts will be this proto serialized and should be parsed as such.Protobuf type
google.cloud.speech.v2.BatchRecognizeResults-
Method Summary
Modifier and TypeMethodDescriptionaddAllResults(Iterable<? extends SpeechRecognitionResult> values) Sequential list of transcription results corresponding to sequential portions of audio.addResults(int index, SpeechRecognitionResult value) Sequential list of transcription results corresponding to sequential portions of audio.addResults(int index, SpeechRecognitionResult.Builder builderForValue) Sequential list of transcription results corresponding to sequential portions of audio.Sequential list of transcription results corresponding to sequential portions of audio.addResults(SpeechRecognitionResult.Builder builderForValue) Sequential list of transcription results corresponding to sequential portions of audio.Sequential list of transcription results corresponding to sequential portions of audio.addResultsBuilder(int index) Sequential list of transcription results corresponding to sequential portions of audio.build()clear()Metadata about the recognition.Sequential list of transcription results corresponding to sequential portions of audio.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorMetadata about the recognition.Metadata about the recognition.Metadata about the recognition.getResults(int index) Sequential list of transcription results corresponding to sequential portions of audio.getResultsBuilder(int index) Sequential list of transcription results corresponding to sequential portions of audio.Sequential list of transcription results corresponding to sequential portions of audio.intSequential list of transcription results corresponding to sequential portions of audio.Sequential list of transcription results corresponding to sequential portions of audio.getResultsOrBuilder(int index) Sequential list of transcription results corresponding to sequential portions of audio.List<? extends SpeechRecognitionResultOrBuilder>Sequential list of transcription results corresponding to sequential portions of audio.booleanMetadata about the recognition.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(BatchRecognizeResults other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Metadata about the recognition.removeResults(int index) Sequential list of transcription results corresponding to sequential portions of audio.Metadata about the recognition.setMetadata(RecognitionResponseMetadata.Builder builderForValue) Metadata about the recognition.setResults(int index, SpeechRecognitionResult value) Sequential list of transcription results corresponding to sequential portions of audio.setResults(int index, SpeechRecognitionResult.Builder builderForValue) Sequential list of transcription results corresponding to sequential portions of audio.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResults.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResults.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.GeneratedMessage.Builder<BatchRecognizeResults.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchRecognizeResults.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResults.Builder>
-
mergeFrom
public BatchRecognizeResults.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<BatchRecognizeResults.Builder>- Throws:
IOException
-
getResultsList
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;- Specified by:
getResultsListin interfaceBatchRecognizeResultsOrBuilder
-
getResultsCount
public int getResultsCount()Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;- Specified by:
getResultsCountin interfaceBatchRecognizeResultsOrBuilder
-
getResults
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;- Specified by:
getResultsin interfaceBatchRecognizeResultsOrBuilder
-
setResults
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1; -
setResults
public BatchRecognizeResults.Builder setResults(int index, SpeechRecognitionResult.Builder builderForValue) Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1; -
addResults
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1; -
addResults
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1; -
addResults
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1; -
addResults
public BatchRecognizeResults.Builder addResults(int index, SpeechRecognitionResult.Builder builderForValue) Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1; -
addAllResults
public BatchRecognizeResults.Builder addAllResults(Iterable<? extends SpeechRecognitionResult> values) Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1; -
clearResults
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1; -
removeResults
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1; -
getResultsBuilder
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1; -
getResultsOrBuilder
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;- Specified by:
getResultsOrBuilderin interfaceBatchRecognizeResultsOrBuilder
-
getResultsOrBuilderList
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;- Specified by:
getResultsOrBuilderListin interfaceBatchRecognizeResultsOrBuilder
-
addResultsBuilder
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1; -
addResultsBuilder
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1; -
getResultsBuilderList
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1; -
hasMetadata
public boolean hasMetadata()Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;- Specified by:
hasMetadatain interfaceBatchRecognizeResultsOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;- Specified by:
getMetadatain interfaceBatchRecognizeResultsOrBuilder- Returns:
- The metadata.
-
setMetadata
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; -
setMetadata
public BatchRecognizeResults.Builder setMetadata(RecognitionResponseMetadata.Builder builderForValue) Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; -
mergeMetadata
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; -
clearMetadata
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; -
getMetadataBuilder
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; -
getMetadataOrBuilder
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;- Specified by:
getMetadataOrBuilderin interfaceBatchRecognizeResultsOrBuilder
-