Class BatchRecognizeResults.Builder (4.12.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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
NameDescription
valuesIterable<? extends com.google.cloud.speech.v2.SpeechRecognitionResult>
Returns
TypeDescription
BatchRecognizeResults.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchRecognizeResults.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchRecognizeResults.Builder
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;

Parameter
NameDescription
valueSpeechRecognitionResult
Returns
TypeDescription
BatchRecognizeResults.Builder

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;

Parameter
NameDescription
builderForValueSpeechRecognitionResult.Builder
Returns
TypeDescription
BatchRecognizeResults.Builder

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;

Parameters
NameDescription
indexint
valueSpeechRecognitionResult
Returns
TypeDescription
BatchRecognizeResults.Builder

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;

Parameters
NameDescription
indexint
builderForValueSpeechRecognitionResult.Builder
Returns
TypeDescription
BatchRecognizeResults.Builder

addResultsBuilder()

public SpeechRecognitionResult.Builder addResultsBuilder()

Sequential list of transcription results corresponding to sequential portions of audio.

repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;

Returns
TypeDescription
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.v2.SpeechRecognitionResult results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
SpeechRecognitionResult.Builder

build()

public BatchRecognizeResults build()
Returns
TypeDescription
BatchRecognizeResults

buildPartial()

public BatchRecognizeResults buildPartial()
Returns
TypeDescription
BatchRecognizeResults

clear()

public BatchRecognizeResults.Builder clear()
Returns
TypeDescription
BatchRecognizeResults.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchRecognizeResults.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchRecognizeResults.Builder
Overrides

clearMetadata()

public BatchRecognizeResults.Builder clearMetadata()

Metadata about the recognition.

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;

Returns
TypeDescription
BatchRecognizeResults.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchRecognizeResults.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchRecognizeResults.Builder
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;

Returns
TypeDescription
BatchRecognizeResults.Builder

clone()

public BatchRecognizeResults.Builder clone()
Returns
TypeDescription
BatchRecognizeResults.Builder
Overrides

getDefaultInstanceForType()

public BatchRecognizeResults getDefaultInstanceForType()
Returns
TypeDescription
BatchRecognizeResults

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetadata()

public RecognitionResponseMetadata getMetadata()

Metadata about the recognition.

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;

Returns
TypeDescription
RecognitionResponseMetadata

The metadata.

getMetadataBuilder()

public RecognitionResponseMetadata.Builder getMetadataBuilder()

Metadata about the recognition.

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;

Returns
TypeDescription
RecognitionResponseMetadata.Builder

getMetadataOrBuilder()

public RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()

Metadata about the recognition.

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;

Returns
TypeDescription
RecognitionResponseMetadataOrBuilder

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
NameDescription
indexint
Returns
TypeDescription
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.v2.SpeechRecognitionResult results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
SpeechRecognitionResult.Builder

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;

Returns
TypeDescription
List<Builder>

getResultsCount()

public int getResultsCount()

Sequential list of transcription results corresponding to sequential portions of audio.

repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;

Returns
TypeDescription
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;

Returns
TypeDescription
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.v2.SpeechRecognitionResult results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
SpeechRecognitionResultOrBuilder

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
TypeDescription
List<? extends com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>

hasMetadata()

public boolean hasMetadata()

Metadata about the recognition.

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;

Returns
TypeDescription
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchRecognizeResults other)

public BatchRecognizeResults.Builder mergeFrom(BatchRecognizeResults other)
Parameter
NameDescription
otherBatchRecognizeResults
Returns
TypeDescription
BatchRecognizeResults.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchRecognizeResults.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeResults.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchRecognizeResults.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchRecognizeResults.Builder
Overrides

mergeMetadata(RecognitionResponseMetadata value)

public BatchRecognizeResults.Builder mergeMetadata(RecognitionResponseMetadata value)

Metadata about the recognition.

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;

Parameter
NameDescription
valueRecognitionResponseMetadata
Returns
TypeDescription
BatchRecognizeResults.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeResults.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchRecognizeResults.Builder
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
NameDescription
indexint
Returns
TypeDescription
BatchRecognizeResults.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchRecognizeResults.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchRecognizeResults.Builder
Overrides

setMetadata(RecognitionResponseMetadata value)

public BatchRecognizeResults.Builder setMetadata(RecognitionResponseMetadata value)

Metadata about the recognition.

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;

Parameter
NameDescription
valueRecognitionResponseMetadata
Returns
TypeDescription
BatchRecognizeResults.Builder

setMetadata(RecognitionResponseMetadata.Builder builderForValue)

public BatchRecognizeResults.Builder setMetadata(RecognitionResponseMetadata.Builder builderForValue)

Metadata about the recognition.

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;

Parameter
NameDescription
builderForValueRecognitionResponseMetadata.Builder
Returns
TypeDescription
BatchRecognizeResults.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BatchRecognizeResults.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchRecognizeResults.Builder
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;

Parameters
NameDescription
indexint
valueSpeechRecognitionResult
Returns
TypeDescription
BatchRecognizeResults.Builder

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;

Parameters
NameDescription
indexint
builderForValueSpeechRecognitionResult.Builder
Returns
TypeDescription
BatchRecognizeResults.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeResults.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchRecognizeResults.Builder
Overrides