public static final class AsyncRecognizeResponse.Builder extends GeneratedMessageV3.Builder<AsyncRecognizeResponse.Builder> implements AsyncRecognizeResponseOrBuilder
The only message returned to the client by AsyncRecognize
. It contains the
result as zero or more sequential SpeechRecognitionResult
messages. It is
included in the result.response
field of the Operation
returned by the
GetOperation
call of the google::longrunning::Operations
service.
Protobuf type google.cloud.speech.v1beta1.AsyncRecognizeResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllResults(Iterable<? extends SpeechRecognitionResult> values)
public AsyncRecognizeResponse.Builder addAllResults(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;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.speech.v1beta1.SpeechRecognitionResult>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AsyncRecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addResults(SpeechRecognitionResult value)
public AsyncRecognizeResponse.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;
Parameter
Returns
addResults(SpeechRecognitionResult.Builder builderForValue)
public AsyncRecognizeResponse.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;
Parameter
Returns
addResults(int index, SpeechRecognitionResult value)
public AsyncRecognizeResponse.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;
Parameters
Returns
addResults(int index, SpeechRecognitionResult.Builder builderForValue)
public AsyncRecognizeResponse.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;
Parameters
Returns
addResultsBuilder()
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;
Returns
addResultsBuilder(int index)
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;
Parameter
Returns
build()
public AsyncRecognizeResponse build()
Returns
buildPartial()
public AsyncRecognizeResponse buildPartial()
Returns
clear()
public AsyncRecognizeResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public AsyncRecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AsyncRecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearResults()
public AsyncRecognizeResponse.Builder clearResults()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Returns
clone()
public AsyncRecognizeResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public AsyncRecognizeResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getResults(int index)
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;
Parameter
Returns
getResultsBuilder(int index)
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;
Parameter
Returns
getResultsBuilderList()
public 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;
Returns
getResultsCount()
public int getResultsCount()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Returns
getResultsList()
public List<SpeechRecognitionResult> getResultsList()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Returns
getResultsOrBuilder(int index)
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;
Parameter
Returns
getResultsOrBuilderList()
public 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;
Returns
Type | Description |
List<? extends com.google.cloud.speech.v1beta1.SpeechRecognitionResultOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AsyncRecognizeResponse other)
public AsyncRecognizeResponse.Builder mergeFrom(AsyncRecognizeResponse other)
Parameter
Returns
public AsyncRecognizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AsyncRecognizeResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AsyncRecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeResults(int index)
public AsyncRecognizeResponse.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;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AsyncRecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AsyncRecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setResults(int index, SpeechRecognitionResult value)
public AsyncRecognizeResponse.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;
Parameters
Returns
setResults(int index, SpeechRecognitionResult.Builder builderForValue)
public AsyncRecognizeResponse.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;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final AsyncRecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides