Package com.google.cloud.speech.v1
Class LongRunningRecognizeResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LongRunningRecognizeResponse.Builder>
com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder
- All Implemented Interfaces:
LongRunningRecognizeResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LongRunningRecognizeResponse
public static final class LongRunningRecognizeResponse.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllResults(Iterable<? extends SpeechRecognitionResult> values) Sequential list of transcription results corresponding to sequential portions of audio.addResults(int index, SpeechRecognitionResult value) Sequential list of transcription results corresponding to sequential portions of audio.addResults(int index, SpeechRecognitionResult.Builder builderForValue) Sequential list of transcription results corresponding to sequential portions of audio.Sequential list of transcription results corresponding to sequential portions of audio.addResults(SpeechRecognitionResult.Builder builderForValue) Sequential list of transcription results corresponding to sequential portions of audio.Sequential list of transcription results corresponding to sequential portions of audio.addResultsBuilder(int index) Sequential list of transcription results corresponding to sequential portions of audio.build()clear()Original output config if present in the request.If the transcript output fails this field contains the relevant error.The ID associated with the request.Sequential list of transcription results corresponding to sequential portions of audio.Provides information on speech adaptation behavior in responseWhen available, billed audio seconds for the corresponding request.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOriginal output config if present in the request.Original output config if present in the request.Original output config if present in the request.If the transcript output fails this field contains the relevant error.If the transcript output fails this field contains the relevant error.If the transcript output fails this field contains the relevant error.longThe ID associated with the request.getResults(int index) Sequential list of transcription results corresponding to sequential portions of audio.getResultsBuilder(int index) Sequential list of transcription results corresponding to sequential portions of audio.Sequential list of transcription results corresponding to sequential portions of audio.intSequential list of transcription results corresponding to sequential portions of audio.Sequential list of transcription results corresponding to sequential portions of audio.getResultsOrBuilder(int index) Sequential list of transcription results corresponding to sequential portions of audio.List<? extends SpeechRecognitionResultOrBuilder>Sequential list of transcription results corresponding to sequential portions of audio.Provides information on speech adaptation behavior in responseProvides information on speech adaptation behavior in responseProvides information on speech adaptation behavior in responsecom.google.protobuf.DurationWhen available, billed audio seconds for the corresponding request.com.google.protobuf.Duration.BuilderWhen available, billed audio seconds for the corresponding request.com.google.protobuf.DurationOrBuilderWhen available, billed audio seconds for the corresponding request.booleanOriginal output config if present in the request.booleanIf the transcript output fails this field contains the relevant error.booleanProvides information on speech adaptation behavior in responsebooleanWhen available, billed audio seconds for the corresponding request.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Original output config if present in the request.mergeOutputError(Status value) If the transcript output fails this field contains the relevant error.Provides information on speech adaptation behavior in responsemergeTotalBilledTime(com.google.protobuf.Duration value) When available, billed audio seconds for the corresponding request.removeResults(int index) Sequential list of transcription results corresponding to sequential portions of audio.Original output config if present in the request.setOutputConfig(TranscriptOutputConfig.Builder builderForValue) Original output config if present in the request.setOutputError(Status value) If the transcript output fails this field contains the relevant error.setOutputError(Status.Builder builderForValue) If the transcript output fails this field contains the relevant error.setRequestId(long value) The ID associated with the request.setResults(int index, SpeechRecognitionResult value) Sequential list of transcription results corresponding to sequential portions of audio.setResults(int index, SpeechRecognitionResult.Builder builderForValue) Sequential list of transcription results corresponding to sequential portions of audio.Provides information on speech adaptation behavior in responsesetSpeechAdaptationInfo(SpeechAdaptationInfo.Builder builderForValue) Provides information on speech adaptation behavior in responsesetTotalBilledTime(com.google.protobuf.Duration value) When available, billed audio seconds for the corresponding request.setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) When available, billed audio seconds for the corresponding request.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LongRunningRecognizeResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LongRunningRecognizeResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LongRunningRecognizeResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LongRunningRecognizeResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LongRunningRecognizeResponse.Builder>
-
mergeFrom
public LongRunningRecognizeResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LongRunningRecognizeResponse.Builder>- Throws:
IOException
-
getResultsList
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;- Specified by:
getResultsListin interfaceLongRunningRecognizeResponseOrBuilder
-
getResultsCount
public int getResultsCount()Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;- Specified by:
getResultsCountin interfaceLongRunningRecognizeResponseOrBuilder
-
getResults
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;- Specified by:
getResultsin interfaceLongRunningRecognizeResponseOrBuilder
-
setResults
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2; -
setResults
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; -
addResults
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2; -
addResults
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2; -
addResults
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; -
addResults
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; -
addAllResults
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; -
clearResults
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2; -
removeResults
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2; -
getResultsBuilder
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2; -
getResultsOrBuilder
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;- Specified by:
getResultsOrBuilderin interfaceLongRunningRecognizeResponseOrBuilder
-
getResultsOrBuilderList
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;- Specified by:
getResultsOrBuilderListin interfaceLongRunningRecognizeResponseOrBuilder
-
addResultsBuilder
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2; -
addResultsBuilder
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2; -
getResultsBuilderList
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2; -
hasTotalBilledTime
public boolean hasTotalBilledTime()When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;- Specified by:
hasTotalBilledTimein interfaceLongRunningRecognizeResponseOrBuilder- Returns:
- Whether the totalBilledTime field is set.
-
getTotalBilledTime
public com.google.protobuf.Duration getTotalBilledTime()When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;- Specified by:
getTotalBilledTimein interfaceLongRunningRecognizeResponseOrBuilder- Returns:
- The totalBilledTime.
-
setTotalBilledTime
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3; -
setTotalBilledTime
public LongRunningRecognizeResponse.Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3; -
mergeTotalBilledTime
public LongRunningRecognizeResponse.Builder mergeTotalBilledTime(com.google.protobuf.Duration value) When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3; -
clearTotalBilledTime
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3; -
getTotalBilledTimeBuilder
public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder()When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3; -
getTotalBilledTimeOrBuilder
public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder()When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;- Specified by:
getTotalBilledTimeOrBuilderin interfaceLongRunningRecognizeResponseOrBuilder
-
hasOutputConfig
public boolean hasOutputConfig()Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;- Specified by:
hasOutputConfigin interfaceLongRunningRecognizeResponseOrBuilder- Returns:
- Whether the outputConfig field is set.
-
getOutputConfig
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;- Specified by:
getOutputConfigin interfaceLongRunningRecognizeResponseOrBuilder- Returns:
- The outputConfig.
-
setOutputConfig
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; -
setOutputConfig
public LongRunningRecognizeResponse.Builder setOutputConfig(TranscriptOutputConfig.Builder builderForValue) Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; -
mergeOutputConfig
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; -
clearOutputConfig
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; -
getOutputConfigBuilder
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; -
getOutputConfigOrBuilder
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;- Specified by:
getOutputConfigOrBuilderin interfaceLongRunningRecognizeResponseOrBuilder
-
hasOutputError
public boolean hasOutputError()If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7;- Specified by:
hasOutputErrorin interfaceLongRunningRecognizeResponseOrBuilder- Returns:
- Whether the outputError field is set.
-
getOutputError
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7;- Specified by:
getOutputErrorin interfaceLongRunningRecognizeResponseOrBuilder- Returns:
- The outputError.
-
setOutputError
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7; -
setOutputError
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7; -
mergeOutputError
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7; -
clearOutputError
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7; -
getOutputErrorBuilder
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7; -
getOutputErrorOrBuilder
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7;- Specified by:
getOutputErrorOrBuilderin interfaceLongRunningRecognizeResponseOrBuilder
-
hasSpeechAdaptationInfo
public boolean hasSpeechAdaptationInfo()Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8;- Specified by:
hasSpeechAdaptationInfoin interfaceLongRunningRecognizeResponseOrBuilder- Returns:
- Whether the speechAdaptationInfo field is set.
-
getSpeechAdaptationInfo
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8;- Specified by:
getSpeechAdaptationInfoin interfaceLongRunningRecognizeResponseOrBuilder- Returns:
- The speechAdaptationInfo.
-
setSpeechAdaptationInfo
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; -
setSpeechAdaptationInfo
public LongRunningRecognizeResponse.Builder setSpeechAdaptationInfo(SpeechAdaptationInfo.Builder builderForValue) Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; -
mergeSpeechAdaptationInfo
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; -
clearSpeechAdaptationInfo
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; -
getSpeechAdaptationInfoBuilder
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; -
getSpeechAdaptationInfoOrBuilder
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8;- Specified by:
getSpeechAdaptationInfoOrBuilderin interfaceLongRunningRecognizeResponseOrBuilder
-
getRequestId
public long getRequestId()The ID associated with the request. This is a unique ID specific only to the given request.
int64 request_id = 9;- Specified by:
getRequestIdin interfaceLongRunningRecognizeResponseOrBuilder- Returns:
- The requestId.
-
setRequestId
The ID associated with the request. This is a unique ID specific only to the given request.
int64 request_id = 9;- Parameters:
value- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
The ID associated with the request. This is a unique ID specific only to the given request.
int64 request_id = 9;- Returns:
- This builder for chaining.
-