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.v1p1beta1.RecognizeResponse
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()
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.v1p1beta1.SpeechRecognitionResult results = 2;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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.v1p1beta1.SpeechRecognitionResult results = 2;
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.v1p1beta1.SpeechRecognitionResult results = 2;
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.v1p1beta1.SpeechRecognitionResult results = 2;
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.v1p1beta1.SpeechRecognitionResult results = 2;
addResultsBuilder()
public SpeechRecognitionResult.Builder addResultsBuilder()
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
addResultsBuilder(int index)
public SpeechRecognitionResult.Builder addResultsBuilder(int index)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
Parameter |
---|
Name | Description |
index | int
|
build()
public RecognizeResponse build()
buildPartial()
public RecognizeResponse buildPartial()
clear()
public RecognizeResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public RecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRequestId()
public RecognizeResponse.Builder clearRequestId()
The ID associated with the request. This is a unique ID specific only to
the given request.
int64 request_id = 8;
clearResults()
public RecognizeResponse.Builder clearResults()
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
clearSpeechAdaptationInfo()
public RecognizeResponse.Builder clearSpeechAdaptationInfo()
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7;
clearTotalBilledTime()
public RecognizeResponse.Builder clearTotalBilledTime()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
clone()
public RecognizeResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public RecognizeResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getRequestId()
public long getRequestId()
The ID associated with the request. This is a unique ID specific only to
the given request.
int64 request_id = 8;
Returns |
---|
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.v1p1beta1.SpeechRecognitionResult results = 2;
Parameter |
---|
Name | Description |
index | int
|
getResultsBuilder(int index)
public SpeechRecognitionResult.Builder getResultsBuilder(int index)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
Parameter |
---|
Name | Description |
index | int
|
getResultsBuilderList()
public List<SpeechRecognitionResult.Builder> getResultsBuilderList()
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
getResultsCount()
public int getResultsCount()
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
Returns |
---|
Type | Description |
int | |
getResultsList()
public List<SpeechRecognitionResult> getResultsList()
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
getResultsOrBuilder(int index)
public SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
Parameter |
---|
Name | Description |
index | int
|
getResultsOrBuilderList()
public List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()
Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> | |
getSpeechAdaptationInfo()
public SpeechAdaptationInfo getSpeechAdaptationInfo()
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7;
getSpeechAdaptationInfoBuilder()
public SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder()
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7;
getSpeechAdaptationInfoOrBuilder()
public SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder()
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7;
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;
getTotalBilledTimeOrBuilder()
public DurationOrBuilder getTotalBilledTimeOrBuilder()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_time = 3;
hasSpeechAdaptationInfo()
public boolean hasSpeechAdaptationInfo()
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7;
Returns |
---|
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;
Returns |
---|
Type | Description |
boolean | Whether the totalBilledTime field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(RecognizeResponse other)
public RecognizeResponse.Builder mergeFrom(RecognizeResponse other)
public RecognizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RecognizeResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeSpeechAdaptationInfo(SpeechAdaptationInfo value)
public RecognizeResponse.Builder mergeSpeechAdaptationInfo(SpeechAdaptationInfo value)
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7;
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.v1p1beta1.SpeechRecognitionResult results = 2;
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public RecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRequestId(long value)
public RecognizeResponse.Builder setRequestId(long value)
The ID associated with the request. This is a unique ID specific only to
the given request.
int64 request_id = 8;
Parameter |
---|
Name | Description |
value | long
The requestId to set.
|
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.v1p1beta1.SpeechRecognitionResult results = 2;
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.v1p1beta1.SpeechRecognitionResult results = 2;
setSpeechAdaptationInfo(SpeechAdaptationInfo value)
public RecognizeResponse.Builder setSpeechAdaptationInfo(SpeechAdaptationInfo value)
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7;
setSpeechAdaptationInfo(SpeechAdaptationInfo.Builder builderForValue)
public RecognizeResponse.Builder setSpeechAdaptationInfo(SpeechAdaptationInfo.Builder builderForValue)
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7;
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;
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
|
setUnknownFields(UnknownFieldSet unknownFields)
public final RecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides