public static final class BatchRecognizeResults.Builder extends GeneratedMessageV3.Builder<BatchRecognizeResults.Builder> implements BatchRecognizeResultsOrBuilder
Output type for Cloud Storage of BatchRecognize transcripts. Though this
proto isn't returned in this API anywhere, the Cloud Storage transcripts will
be this proto serialized and should be parsed as such.
Protobuf type google.cloud.speech.v2.BatchRecognizeResults
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 BatchRecognizeResults.Builder addAllResults(Iterable<? extends SpeechRecognitionResult> values)
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.speech.v2.SpeechRecognitionResult>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchRecognizeResults.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addResults(SpeechRecognitionResult value)
public BatchRecognizeResults.Builder addResults(SpeechRecognitionResult value)
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
addResults(SpeechRecognitionResult.Builder builderForValue)
public BatchRecognizeResults.Builder addResults(SpeechRecognitionResult.Builder builderForValue)
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
addResults(int index, SpeechRecognitionResult value)
public BatchRecognizeResults.Builder addResults(int index, SpeechRecognitionResult value)
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
addResults(int index, SpeechRecognitionResult.Builder builderForValue)
public BatchRecognizeResults.Builder addResults(int index, SpeechRecognitionResult.Builder builderForValue)
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
addResultsBuilder()
public SpeechRecognitionResult.Builder addResultsBuilder()
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
addResultsBuilder(int index)
public SpeechRecognitionResult.Builder addResultsBuilder(int index)
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
Parameter |
---|
Name | Description |
index | int
|
build()
public BatchRecognizeResults build()
buildPartial()
public BatchRecognizeResults buildPartial()
clear()
public BatchRecognizeResults.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public BatchRecognizeResults.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public BatchRecognizeResults.Builder clearMetadata()
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchRecognizeResults.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearResults()
public BatchRecognizeResults.Builder clearResults()
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
clone()
public BatchRecognizeResults.Builder clone()
Overrides
getDefaultInstanceForType()
public BatchRecognizeResults getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public RecognitionResponseMetadata getMetadata()
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
public RecognitionResponseMetadata.Builder getMetadataBuilder()
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
public RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
getResults(int index)
public SpeechRecognitionResult getResults(int index)
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
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.v2.SpeechRecognitionResult results = 1;
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.v2.SpeechRecognitionResult results = 1;
getResultsCount()
public int getResultsCount()
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
Returns |
---|
Type | Description |
int | |
getResultsList()
public List<SpeechRecognitionResult> getResultsList()
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
getResultsOrBuilder(int index)
public SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
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.v2.SpeechRecognitionResult results = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder> | |
public boolean hasMetadata()
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
Returns |
---|
Type | Description |
boolean | Whether the metadata field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(BatchRecognizeResults other)
public BatchRecognizeResults.Builder mergeFrom(BatchRecognizeResults other)
public BatchRecognizeResults.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BatchRecognizeResults.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public BatchRecognizeResults.Builder mergeMetadata(RecognitionResponseMetadata value)
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchRecognizeResults.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeResults(int index)
public BatchRecognizeResults.Builder removeResults(int index)
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public BatchRecognizeResults.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public BatchRecognizeResults.Builder setMetadata(RecognitionResponseMetadata value)
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
public BatchRecognizeResults.Builder setMetadata(RecognitionResponseMetadata.Builder builderForValue)
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchRecognizeResults.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setResults(int index, SpeechRecognitionResult value)
public BatchRecognizeResults.Builder setResults(int index, SpeechRecognitionResult value)
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
setResults(int index, SpeechRecognitionResult.Builder builderForValue)
public BatchRecognizeResults.Builder setResults(int index, SpeechRecognitionResult.Builder builderForValue)
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchRecognizeResults.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides