public static final class SyncRecognizeResponse.Builder extends GeneratedMessageV3.Builder<SyncRecognizeResponse.Builder> implements SyncRecognizeResponseOrBuilder
The only message returned to the client by SyncRecognize
. method. It
contains the result as zero or more sequential SpeechRecognitionResult
messages.
Protobuf type google.cloud.speech.v1beta1.SyncRecognizeResponse
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 SyncRecognizeResponse.Builder addAllResults(Iterable<? extends SpeechRecognitionResult> values)
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.speech.v1beta1.SpeechRecognitionResult>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SyncRecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addResults(SpeechRecognitionResult value)
public SyncRecognizeResponse.Builder addResults(SpeechRecognitionResult value)
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
addResults(SpeechRecognitionResult.Builder builderForValue)
public SyncRecognizeResponse.Builder addResults(SpeechRecognitionResult.Builder builderForValue)
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
addResults(int index, SpeechRecognitionResult value)
public SyncRecognizeResponse.Builder addResults(int index, SpeechRecognitionResult value)
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
addResults(int index, SpeechRecognitionResult.Builder builderForValue)
public SyncRecognizeResponse.Builder addResults(int index, SpeechRecognitionResult.Builder builderForValue)
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
addResultsBuilder()
public SpeechRecognitionResult.Builder addResultsBuilder()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
addResultsBuilder(int index)
public SpeechRecognitionResult.Builder addResultsBuilder(int index)
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter |
---|
Name | Description |
index | int
|
build()
public SyncRecognizeResponse build()
buildPartial()
public SyncRecognizeResponse buildPartial()
clear()
public SyncRecognizeResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SyncRecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SyncRecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearResults()
public SyncRecognizeResponse.Builder clearResults()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
clone()
public SyncRecognizeResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public SyncRecognizeResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getResults(int index)
public SpeechRecognitionResult getResults(int index)
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter |
---|
Name | Description |
index | int
|
getResultsBuilder(int index)
public SpeechRecognitionResult.Builder getResultsBuilder(int index)
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter |
---|
Name | Description |
index | int
|
getResultsBuilderList()
public List<SpeechRecognitionResult.Builder> getResultsBuilderList()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
getResultsCount()
public int getResultsCount()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Returns |
---|
Type | Description |
int | |
getResultsList()
public List<SpeechRecognitionResult> getResultsList()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
getResultsOrBuilder(int index)
public SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter |
---|
Name | Description |
index | int
|
getResultsOrBuilderList()
public List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.speech.v1beta1.SpeechRecognitionResultOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SyncRecognizeResponse other)
public SyncRecognizeResponse.Builder mergeFrom(SyncRecognizeResponse other)
public SyncRecognizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SyncRecognizeResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SyncRecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeResults(int index)
public SyncRecognizeResponse.Builder removeResults(int index)
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public SyncRecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SyncRecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setResults(int index, SpeechRecognitionResult value)
public SyncRecognizeResponse.Builder setResults(int index, SpeechRecognitionResult value)
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
setResults(int index, SpeechRecognitionResult.Builder builderForValue)
public SyncRecognizeResponse.Builder setResults(int index, SpeechRecognitionResult.Builder builderForValue)
Output-only Sequential list of transcription results corresponding to
sequential portions of audio.
repeated .google.cloud.speech.v1beta1.SpeechRecognitionResult results = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final SyncRecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides