public static final class LongRunningRecognizeResponse.Builder extends GeneratedMessageV3.Builder<LongRunningRecognizeResponse.Builder> implements LongRunningRecognizeResponseOrBuilder
The only message returned to the client by the LongRunningRecognize
method.
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.v1.LongRunningRecognizeResponse
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 LongRunningRecognizeResponse.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 LongRunningRecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addResults(SpeechRecognitionResult value)
public LongRunningRecognizeResponse.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 LongRunningRecognizeResponse.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 LongRunningRecognizeResponse.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 LongRunningRecognizeResponse.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 LongRunningRecognizeResponse build()
Returns
buildPartial()
public LongRunningRecognizeResponse buildPartial()
Returns
clear()
public LongRunningRecognizeResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public LongRunningRecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LongRunningRecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearOutputConfig()
public LongRunningRecognizeResponse.Builder clearOutputConfig()
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Returns
clearOutputError()
public LongRunningRecognizeResponse.Builder clearOutputError()
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7;
Returns
clearResults()
public LongRunningRecognizeResponse.Builder clearResults()
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Returns
clearTotalBilledTime()
public LongRunningRecognizeResponse.Builder clearTotalBilledTime()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
Returns
clone()
public LongRunningRecognizeResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public LongRunningRecognizeResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getOutputConfig()
public TranscriptOutputConfig getOutputConfig()
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Returns
getOutputConfigBuilder()
public TranscriptOutputConfig.Builder getOutputConfigBuilder()
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Returns
getOutputConfigOrBuilder()
public TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder()
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Returns
getOutputError()
public Status getOutputError()
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7;
Returns
Type | Description |
com.google.rpc.Status | The outputError.
|
getOutputErrorBuilder()
public Status.Builder getOutputErrorBuilder()
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7;
Returns
Type | Description |
com.google.rpc.Status.Builder | |
getOutputErrorOrBuilder()
public StatusOrBuilder getOutputErrorOrBuilder()
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7;
Returns
Type | Description |
com.google.rpc.StatusOrBuilder | |
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
hasOutputConfig()
public boolean hasOutputConfig()
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Returns
Type | Description |
boolean | Whether the outputConfig field is set.
|
hasOutputError()
public boolean hasOutputError()
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7;
Returns
Type | Description |
boolean | Whether the outputError field is set.
|
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(LongRunningRecognizeResponse other)
public LongRunningRecognizeResponse.Builder mergeFrom(LongRunningRecognizeResponse other)
Parameter
Returns
public LongRunningRecognizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LongRunningRecognizeResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeOutputConfig(TranscriptOutputConfig value)
public LongRunningRecognizeResponse.Builder mergeOutputConfig(TranscriptOutputConfig value)
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Parameter
Returns
mergeOutputError(Status value)
public LongRunningRecognizeResponse.Builder mergeOutputError(Status value)
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7;
Parameter
Name | Description |
value | com.google.rpc.Status
|
Returns
mergeTotalBilledTime(Duration value)
public LongRunningRecognizeResponse.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 LongRunningRecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeResults(int index)
public LongRunningRecognizeResponse.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 LongRunningRecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setOutputConfig(TranscriptOutputConfig value)
public LongRunningRecognizeResponse.Builder setOutputConfig(TranscriptOutputConfig value)
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Parameter
Returns
setOutputConfig(TranscriptOutputConfig.Builder builderForValue)
public LongRunningRecognizeResponse.Builder setOutputConfig(TranscriptOutputConfig.Builder builderForValue)
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Parameter
Returns
setOutputError(Status value)
public LongRunningRecognizeResponse.Builder setOutputError(Status value)
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7;
Parameter
Name | Description |
value | com.google.rpc.Status
|
Returns
setOutputError(Status.Builder builderForValue)
public LongRunningRecognizeResponse.Builder setOutputError(Status.Builder builderForValue)
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7;
Parameter
Name | Description |
builderForValue | com.google.rpc.Status.Builder
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LongRunningRecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setResults(int index, SpeechRecognitionResult value)
public LongRunningRecognizeResponse.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 LongRunningRecognizeResponse.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 LongRunningRecognizeResponse.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 LongRunningRecognizeResponse.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 LongRunningRecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides