public static final class RecognizeResponse.Builder extends GeneratedMessageV3.Builder<RecognizeResponse.Builder> implements RecognizeResponseOrBuilder
The only message returned to the client by the Recognize
method. It
contains the result as zero or more sequential SpeechRecognitionResult
messages.
Protobuf type google.cloud.speech.v1.RecognizeResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllResults(Iterable<? extends SpeechRecognitionResult> values)
public RecognizeResponse.Builder addAllResults(Iterable<? extends SpeechRecognitionResult> values)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.speech.v1.SpeechRecognitionResult>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addResults(SpeechRecognitionResult value)
public RecognizeResponse.Builder addResults(SpeechRecognitionResult value)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Parameter
Returns
addResults(SpeechRecognitionResult.Builder builderForValue)
public RecognizeResponse.Builder addResults(SpeechRecognitionResult.Builder builderForValue)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Parameter
Returns
addResults(int index, SpeechRecognitionResult value)
public RecognizeResponse.Builder addResults(int index, SpeechRecognitionResult value)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Parameters
Returns
addResults(int index, SpeechRecognitionResult.Builder builderForValue)
public RecognizeResponse.Builder addResults(int index, SpeechRecognitionResult.Builder builderForValue)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Parameters
Returns
addResultsBuilder()
public SpeechRecognitionResult.Builder addResultsBuilder()
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Returns
addResultsBuilder(int index)
public SpeechRecognitionResult.Builder addResultsBuilder(int index)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Parameter
Returns
build()
public RecognizeResponse build()
Returns
buildPartial()
public RecognizeResponse buildPartial()
Returns
clear()
public RecognizeResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public RecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearResults()
public RecognizeResponse.Builder clearResults()
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Returns
clearTotalBilledTime()
public RecognizeResponse.Builder clearTotalBilledTime()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
Returns
clone()
public RecognizeResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public RecognizeResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getResults(int index)
public SpeechRecognitionResult getResults(int index)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Parameter
Returns
getResultsBuilder(int index)
public SpeechRecognitionResult.Builder getResultsBuilder(int index)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Parameter
Returns
getResultsBuilderList()
public List<SpeechRecognitionResult.Builder> getResultsBuilderList()
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Returns
getResultsCount()
public int getResultsCount()
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Returns
getResultsList()
public List<SpeechRecognitionResult> getResultsList()
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Returns
getResultsOrBuilder(int index)
public SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Parameter
Returns
getResultsOrBuilderList()
public List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Returns
Type | Description |
List<? extends com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> | |
getTotalBilledTime()
public Duration getTotalBilledTime()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
Returns
Type | Description |
Duration | The totalBilledTime.
|
getTotalBilledTimeBuilder()
public Duration.Builder getTotalBilledTimeBuilder()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
Returns
getTotalBilledTimeOrBuilder()
public DurationOrBuilder getTotalBilledTimeOrBuilder()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
Returns
hasTotalBilledTime()
public boolean hasTotalBilledTime()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
Returns
Type | Description |
boolean | Whether the totalBilledTime field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(RecognizeResponse other)
public RecognizeResponse.Builder mergeFrom(RecognizeResponse other)
Parameter
Returns
public RecognizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public RecognizeResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeTotalBilledTime(Duration value)
public RecognizeResponse.Builder mergeTotalBilledTime(Duration value)
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeResults(int index)
public RecognizeResponse.Builder removeResults(int index)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public RecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setResults(int index, SpeechRecognitionResult value)
public RecognizeResponse.Builder setResults(int index, SpeechRecognitionResult value)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Parameters
Returns
setResults(int index, SpeechRecognitionResult.Builder builderForValue)
public RecognizeResponse.Builder setResults(int index, SpeechRecognitionResult.Builder builderForValue)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Parameters
Returns
setTotalBilledTime(Duration value)
public RecognizeResponse.Builder setTotalBilledTime(Duration value)
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
Parameter
Returns
setTotalBilledTime(Duration.Builder builderForValue)
public RecognizeResponse.Builder setTotalBilledTime(Duration.Builder builderForValue)
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final RecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides