public static final class SyncRecognizeResponse.Builder extends GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder> implements SyncRecognizeResponseOrBuilder
The only message returned to the client by `SyncRecognize`. method. It contains the result as zero or more sequential `SpeechRecognitionResult` messages.Protobuf type
google.cloud.speech.v1beta1.SyncRecognizeResponse
Modifier and Type | Method and Description |
---|---|
SyncRecognizeResponse.Builder |
addAllResults(java.lang.Iterable<? extends SpeechRecognitionResult> values)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SyncRecognizeResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
SyncRecognizeResponse.Builder |
addResults(int index,
SpeechRecognitionResult.Builder builderForValue)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SyncRecognizeResponse.Builder |
addResults(int index,
SpeechRecognitionResult value)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SyncRecognizeResponse.Builder |
addResults(SpeechRecognitionResult.Builder builderForValue)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SyncRecognizeResponse.Builder |
addResults(SpeechRecognitionResult value)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SpeechRecognitionResult.Builder |
addResultsBuilder()
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SpeechRecognitionResult.Builder |
addResultsBuilder(int index)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SyncRecognizeResponse |
build() |
SyncRecognizeResponse |
buildPartial() |
SyncRecognizeResponse.Builder |
clear() |
SyncRecognizeResponse.Builder |
clearField(Descriptors.FieldDescriptor field) |
SyncRecognizeResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
SyncRecognizeResponse.Builder |
clearResults()
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SyncRecognizeResponse.Builder |
clone() |
SyncRecognizeResponse |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
SpeechRecognitionResult |
getResults(int index)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SpeechRecognitionResult.Builder |
getResultsBuilder(int index)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
java.util.List<SpeechRecognitionResult.Builder> |
getResultsBuilderList()
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
int |
getResultsCount()
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
java.util.List<SpeechRecognitionResult> |
getResultsList()
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SpeechRecognitionResultOrBuilder |
getResultsOrBuilder(int index)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
java.util.List<? extends SpeechRecognitionResultOrBuilder> |
getResultsOrBuilderList()
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SyncRecognizeResponse.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
SyncRecognizeResponse.Builder |
mergeFrom(Message other) |
SyncRecognizeResponse.Builder |
mergeFrom(SyncRecognizeResponse other) |
SyncRecognizeResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
SyncRecognizeResponse.Builder |
removeResults(int index)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SyncRecognizeResponse.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
SyncRecognizeResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
SyncRecognizeResponse.Builder |
setResults(int index,
SpeechRecognitionResult.Builder builderForValue)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SyncRecognizeResponse.Builder |
setResults(int index,
SpeechRecognitionResult value)
*Output-only* Sequential list of transcription results corresponding to
sequential portions of audio.
|
SyncRecognizeResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>
public SyncRecognizeResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>
public SyncRecognizeResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SyncRecognizeResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SyncRecognizeResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SyncRecognizeResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>
public SyncRecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>
public SyncRecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>
public SyncRecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>
public SyncRecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>
public SyncRecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>
public SyncRecognizeResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SyncRecognizeResponse.Builder>
public SyncRecognizeResponse.Builder mergeFrom(SyncRecognizeResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>
public SyncRecognizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SyncRecognizeResponse.Builder>
java.io.IOException
public java.util.List<SpeechRecognitionResult> getResultsList()
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
getResultsList
in interface SyncRecognizeResponseOrBuilder
public int getResultsCount()
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
getResultsCount
in interface SyncRecognizeResponseOrBuilder
public SpeechRecognitionResult getResults(int index)
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
getResults
in interface SyncRecognizeResponseOrBuilder
public SyncRecognizeResponse.Builder setResults(int index, SpeechRecognitionResult value)
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
public SyncRecognizeResponse.Builder setResults(int index, SpeechRecognitionResult.Builder builderForValue)
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
public SyncRecognizeResponse.Builder addResults(SpeechRecognitionResult value)
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
public SyncRecognizeResponse.Builder addResults(int index, SpeechRecognitionResult value)
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
public SyncRecognizeResponse.Builder addResults(SpeechRecognitionResult.Builder builderForValue)
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
public SyncRecognizeResponse.Builder addResults(int index, SpeechRecognitionResult.Builder builderForValue)
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
public SyncRecognizeResponse.Builder addAllResults(java.lang.Iterable<? extends SpeechRecognitionResult> values)
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
public SyncRecognizeResponse.Builder clearResults()
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
public SyncRecognizeResponse.Builder removeResults(int index)
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
public SpeechRecognitionResult.Builder getResultsBuilder(int index)
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
public SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
getResultsOrBuilder
in interface SyncRecognizeResponseOrBuilder
public java.util.List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
getResultsOrBuilderList
in interface SyncRecognizeResponseOrBuilder
public SpeechRecognitionResult.Builder addResultsBuilder()
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
public SpeechRecognitionResult.Builder addResultsBuilder(int index)
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
public java.util.List<SpeechRecognitionResult.Builder> getResultsBuilderList()
*Output-only* Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
public final SyncRecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>
public final SyncRecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder>