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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AsyncRecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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;
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;
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;
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 |
---|
Name | Description |
index | int
|
build()
public AsyncRecognizeResponse build()
buildPartial()
public AsyncRecognizeResponse buildPartial()
clear()
public AsyncRecognizeResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AsyncRecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AsyncRecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public AsyncRecognizeResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public AsyncRecognizeResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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;
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 |
---|
Type | Description |
int | |
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;
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 |
---|
Name | Description |
index | int
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AsyncRecognizeResponse other)
public AsyncRecognizeResponse.Builder mergeFrom(AsyncRecognizeResponse other)
public AsyncRecognizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AsyncRecognizeResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AsyncRecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public AsyncRecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AsyncRecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final AsyncRecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides