Class BatchRecognizeResults (4.27.0)

public final class BatchRecognizeResults extends GeneratedMessageV3 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 Fields

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

RESULTS_FIELD_NUMBER

public static final int RESULTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BatchRecognizeResults getDefaultInstance()
Returns
TypeDescription
BatchRecognizeResults

getDescriptor()

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

newBuilder()

public static BatchRecognizeResults.Builder newBuilder()
Returns
TypeDescription
BatchRecognizeResults.Builder

newBuilder(BatchRecognizeResults prototype)

public static BatchRecognizeResults.Builder newBuilder(BatchRecognizeResults prototype)
Parameter
NameDescription
prototypeBatchRecognizeResults
Returns
TypeDescription
BatchRecognizeResults.Builder

parseDelimitedFrom(InputStream input)

public static BatchRecognizeResults parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchRecognizeResults
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResults parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeResults
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BatchRecognizeResults parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BatchRecognizeResults
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResults parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeResults
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchRecognizeResults parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BatchRecognizeResults
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResults parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeResults
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchRecognizeResults parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BatchRecognizeResults
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResults parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeResults
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BatchRecognizeResults parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchRecognizeResults
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResults parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeResults
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BatchRecognizeResults parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BatchRecognizeResults
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResults parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeResults
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BatchRecognizeResults> parser()
Returns
TypeDescription
Parser<BatchRecognizeResults>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public BatchRecognizeResults getDefaultInstanceForType()
Returns
TypeDescription
BatchRecognizeResults

getMetadata()

public RecognitionResponseMetadata getMetadata()

Metadata about the recognition.

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

Returns
TypeDescription
RecognitionResponseMetadata

The metadata.

getMetadataOrBuilder()

public RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()

Metadata about the recognition.

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

Returns
TypeDescription
RecognitionResponseMetadataOrBuilder

getParserForType()

public Parser<BatchRecognizeResults> getParserForType()
Returns
TypeDescription
Parser<BatchRecognizeResults>
Overrides

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasMetadata()

public boolean hasMetadata()

Metadata about the recognition.

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

Returns
TypeDescription
boolean

Whether the metadata field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BatchRecognizeResults.Builder newBuilderForType()
Returns
TypeDescription
BatchRecognizeResults.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchRecognizeResults.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BatchRecognizeResults.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BatchRecognizeResults.Builder toBuilder()
Returns
TypeDescription
BatchRecognizeResults.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException