- 4.48.0 (latest)
- 4.47.0
- 4.46.0
- 4.44.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.32.0
- 4.31.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.16.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.7.0
- 4.6.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.0.0
- 2.6.1
- 2.5.9
- 2.4.0
- 2.3.0
- 2.2.15
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LongRunningRecognizeResponse.BuilderImplements
LongRunningRecognizeResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
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;
Name | Description |
values | Iterable<? extends com.google.cloud.speech.v1.SpeechRecognitionResult> |
Type | Description |
LongRunningRecognizeResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LongRunningRecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
value | SpeechRecognitionResult |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
builderForValue | SpeechRecognitionResult.Builder |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
index | int |
value | SpeechRecognitionResult |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
index | int |
builderForValue | SpeechRecognitionResult.Builder |
Type | Description |
LongRunningRecognizeResponse.Builder |
addResultsBuilder()
public SpeechRecognitionResult.Builder addResultsBuilder()
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Type | Description |
SpeechRecognitionResult.Builder |
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;
Name | Description |
index | int |
Type | Description |
SpeechRecognitionResult.Builder |
build()
public LongRunningRecognizeResponse build()
Type | Description |
LongRunningRecognizeResponse |
buildPartial()
public LongRunningRecognizeResponse buildPartial()
Type | Description |
LongRunningRecognizeResponse |
clear()
public LongRunningRecognizeResponse.Builder clear()
Type | Description |
LongRunningRecognizeResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public LongRunningRecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
LongRunningRecognizeResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public LongRunningRecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
LongRunningRecognizeResponse.Builder |
clearOutputConfig()
public LongRunningRecognizeResponse.Builder clearOutputConfig()
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Type | Description |
LongRunningRecognizeResponse.Builder |
clearOutputError()
public LongRunningRecognizeResponse.Builder clearOutputError()
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7;
Type | Description |
LongRunningRecognizeResponse.Builder |
clearRequestId()
public LongRunningRecognizeResponse.Builder clearRequestId()
The ID associated with the request. This is a unique ID specific only to the given request.
int64 request_id = 9;
Type | Description |
LongRunningRecognizeResponse.Builder | This builder for chaining. |
clearResults()
public LongRunningRecognizeResponse.Builder clearResults()
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Type | Description |
LongRunningRecognizeResponse.Builder |
clearSpeechAdaptationInfo()
public LongRunningRecognizeResponse.Builder clearSpeechAdaptationInfo()
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8;
Type | Description |
LongRunningRecognizeResponse.Builder |
clearTotalBilledTime()
public LongRunningRecognizeResponse.Builder clearTotalBilledTime()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
Type | Description |
LongRunningRecognizeResponse.Builder |
clone()
public LongRunningRecognizeResponse.Builder clone()
Type | Description |
LongRunningRecognizeResponse.Builder |
getDefaultInstanceForType()
public LongRunningRecognizeResponse getDefaultInstanceForType()
Type | Description |
LongRunningRecognizeResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getOutputConfig()
public TranscriptOutputConfig getOutputConfig()
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Type | Description |
TranscriptOutputConfig | The outputConfig. |
getOutputConfigBuilder()
public TranscriptOutputConfig.Builder getOutputConfigBuilder()
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Type | Description |
TranscriptOutputConfig.Builder |
getOutputConfigOrBuilder()
public TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder()
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Type | Description |
TranscriptOutputConfigOrBuilder |
getOutputError()
public Status getOutputError()
If the transcript output fails this field contains the relevant error.
.google.rpc.Status output_error = 7;
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;
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;
Type | Description |
com.google.rpc.StatusOrBuilder |
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;
Type | Description |
long | The requestId. |
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;
Name | Description |
index | int |
Type | Description |
SpeechRecognitionResult |
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;
Name | Description |
index | int |
Type | Description |
SpeechRecognitionResult.Builder |
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;
Type | Description |
List<Builder> |
getResultsCount()
public int getResultsCount()
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Type | Description |
int |
getResultsList()
public List<SpeechRecognitionResult> getResultsList()
Sequential list of transcription results corresponding to sequential portions of audio.
repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Type | Description |
List<SpeechRecognitionResult> |
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;
Name | Description |
index | int |
Type | Description |
SpeechRecognitionResultOrBuilder |
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;
Type | Description |
List<? extends com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> |
getSpeechAdaptationInfo()
public SpeechAdaptationInfo getSpeechAdaptationInfo()
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8;
Type | Description |
SpeechAdaptationInfo | The speechAdaptationInfo. |
getSpeechAdaptationInfoBuilder()
public SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder()
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8;
Type | Description |
SpeechAdaptationInfo.Builder |
getSpeechAdaptationInfoOrBuilder()
public SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder()
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8;
Type | Description |
SpeechAdaptationInfoOrBuilder |
getTotalBilledTime()
public Duration getTotalBilledTime()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
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;
Type | Description |
Builder |
getTotalBilledTimeOrBuilder()
public DurationOrBuilder getTotalBilledTimeOrBuilder()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
Type | Description |
DurationOrBuilder |
hasOutputConfig()
public boolean hasOutputConfig()
Original output config if present in the request.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
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;
Type | Description |
boolean | Whether the outputError field is set. |
hasSpeechAdaptationInfo()
public boolean hasSpeechAdaptationInfo()
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8;
Type | Description |
boolean | Whether the speechAdaptationInfo field is set. |
hasTotalBilledTime()
public boolean hasTotalBilledTime()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
Type | Description |
boolean | Whether the totalBilledTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(LongRunningRecognizeResponse other)
public LongRunningRecognizeResponse.Builder mergeFrom(LongRunningRecognizeResponse other)
Name | Description |
other | LongRunningRecognizeResponse |
Type | Description |
LongRunningRecognizeResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LongRunningRecognizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LongRunningRecognizeResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public LongRunningRecognizeResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
value | TranscriptOutputConfig |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
value | com.google.rpc.Status |
Type | Description |
LongRunningRecognizeResponse.Builder |
mergeSpeechAdaptationInfo(SpeechAdaptationInfo value)
public LongRunningRecognizeResponse.Builder mergeSpeechAdaptationInfo(SpeechAdaptationInfo value)
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8;
Name | Description |
value | SpeechAdaptationInfo |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
value | Duration |
Type | Description |
LongRunningRecognizeResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LongRunningRecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
index | int |
Type | Description |
LongRunningRecognizeResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public LongRunningRecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
value | TranscriptOutputConfig |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
builderForValue | TranscriptOutputConfig.Builder |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
value | com.google.rpc.Status |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
builderForValue | com.google.rpc.Status.Builder |
Type | Description |
LongRunningRecognizeResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LongRunningRecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
LongRunningRecognizeResponse.Builder |
setRequestId(long value)
public LongRunningRecognizeResponse.Builder setRequestId(long value)
The ID associated with the request. This is a unique ID specific only to the given request.
int64 request_id = 9;
Name | Description |
value | long The requestId to set. |
Type | Description |
LongRunningRecognizeResponse.Builder | This builder for chaining. |
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;
Name | Description |
index | int |
value | SpeechRecognitionResult |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
index | int |
builderForValue | SpeechRecognitionResult.Builder |
Type | Description |
LongRunningRecognizeResponse.Builder |
setSpeechAdaptationInfo(SpeechAdaptationInfo value)
public LongRunningRecognizeResponse.Builder setSpeechAdaptationInfo(SpeechAdaptationInfo value)
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8;
Name | Description |
value | SpeechAdaptationInfo |
Type | Description |
LongRunningRecognizeResponse.Builder |
setSpeechAdaptationInfo(SpeechAdaptationInfo.Builder builderForValue)
public LongRunningRecognizeResponse.Builder setSpeechAdaptationInfo(SpeechAdaptationInfo.Builder builderForValue)
Provides information on speech adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8;
Name | Description |
builderForValue | SpeechAdaptationInfo.Builder |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
value | Duration |
Type | Description |
LongRunningRecognizeResponse.Builder |
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;
Name | Description |
builderForValue | Builder |
Type | Description |
LongRunningRecognizeResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final LongRunningRecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LongRunningRecognizeResponse.Builder |