Class BatchRecognizeFileResult (4.50.0)

public final class BatchRecognizeFileResult extends GeneratedMessageV3 implements BatchRecognizeFileResultOrBuilder

Final results for a single file.

Protobuf type google.cloud.speech.v2.BatchRecognizeFileResult

Static Fields

CLOUD_STORAGE_RESULT_FIELD_NUMBER

public static final int CLOUD_STORAGE_RESULT_FIELD_NUMBER
Field Value
Type Description
int

ERROR_FIELD_NUMBER

public static final int ERROR_FIELD_NUMBER
Field Value
Type Description
int

INLINE_RESULT_FIELD_NUMBER

public static final int INLINE_RESULT_FIELD_NUMBER
Field Value
Type Description
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
Type Description
int

TRANSCRIPT_FIELD_NUMBER

public static final int TRANSCRIPT_FIELD_NUMBER
Field Value
Type Description
int

URI_FIELD_NUMBER

public static final int URI_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BatchRecognizeFileResult getDefaultInstance()
Returns
Type Description
BatchRecognizeFileResult

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BatchRecognizeFileResult.Builder newBuilder()
Returns
Type Description
BatchRecognizeFileResult.Builder

newBuilder(BatchRecognizeFileResult prototype)

public static BatchRecognizeFileResult.Builder newBuilder(BatchRecognizeFileResult prototype)
Parameter
Name Description
prototype BatchRecognizeFileResult
Returns
Type Description
BatchRecognizeFileResult.Builder

parseDelimitedFrom(InputStream input)

public static BatchRecognizeFileResult parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchRecognizeFileResult
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeFileResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeFileResult
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BatchRecognizeFileResult parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BatchRecognizeFileResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeFileResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeFileResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchRecognizeFileResult parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BatchRecognizeFileResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeFileResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeFileResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchRecognizeFileResult parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BatchRecognizeFileResult
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeFileResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeFileResult
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BatchRecognizeFileResult parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchRecognizeFileResult
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeFileResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeFileResult
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BatchRecognizeFileResult parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BatchRecognizeFileResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeFileResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeFileResult
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BatchRecognizeFileResult> parser()
Returns
Type Description
Parser<BatchRecognizeFileResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCloudStorageResult()

public CloudStorageResult getCloudStorageResult()

Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;

Returns
Type Description
CloudStorageResult

The cloudStorageResult.

getCloudStorageResultOrBuilder()

public CloudStorageResultOrBuilder getCloudStorageResultOrBuilder()

Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;

Returns
Type Description
CloudStorageResultOrBuilder

getDefaultInstanceForType()

public BatchRecognizeFileResult getDefaultInstanceForType()
Returns
Type Description
BatchRecognizeFileResult

getError()

public Status getError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
Type Description
com.google.rpc.Status

The error.

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getInlineResult()

public InlineResult getInlineResult()

Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.InlineResult inline_result = 6;

Returns
Type Description
InlineResult

The inlineResult.

getInlineResultOrBuilder()

public InlineResultOrBuilder getInlineResultOrBuilder()

Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.InlineResult inline_result = 6;

Returns
Type Description
InlineResultOrBuilder

getMetadata()

public RecognitionResponseMetadata getMetadata()

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

Returns
Type Description
RecognitionResponseMetadata

The metadata.

getMetadataOrBuilder()

public RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()

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

Returns
Type Description
RecognitionResponseMetadataOrBuilder

getParserForType()

public Parser<BatchRecognizeFileResult> getParserForType()
Returns
Type Description
Parser<BatchRecognizeFileResult>
Overrides

getResultCase()

public BatchRecognizeFileResult.ResultCase getResultCase()
Returns
Type Description
BatchRecognizeFileResult.ResultCase

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTranscript() (deprecated)

public BatchRecognizeResults getTranscript()

Deprecated. google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1429

Deprecated. Use inline_result.transcript instead.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];

Returns
Type Description
BatchRecognizeResults

The transcript.

getTranscriptOrBuilder() (deprecated)

public BatchRecognizeResultsOrBuilder getTranscriptOrBuilder()

Deprecated. Use inline_result.transcript instead.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];

Returns
Type Description
BatchRecognizeResultsOrBuilder

getUri() (deprecated)

public String getUri()

Deprecated. google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1426

Deprecated. Use cloud_storage_result.native_format_uri instead.

string uri = 1 [deprecated = true];

Returns
Type Description
String

The uri.

getUriBytes() (deprecated)

public ByteString getUriBytes()

Deprecated. google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1426

Deprecated. Use cloud_storage_result.native_format_uri instead.

string uri = 1 [deprecated = true];

Returns
Type Description
ByteString

The bytes for uri.

hasCloudStorageResult()

public boolean hasCloudStorageResult()

Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;

Returns
Type Description
boolean

Whether the cloudStorageResult field is set.

hasError()

public boolean hasError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
Type Description
boolean

Whether the error field is set.

hasInlineResult()

public boolean hasInlineResult()

Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.InlineResult inline_result = 6;

Returns
Type Description
boolean

Whether the inlineResult field is set.

hasMetadata()

public boolean hasMetadata()

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

Returns
Type Description
boolean

Whether the metadata field is set.

hasTranscript() (deprecated)

public boolean hasTranscript()

Deprecated. google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1429

Deprecated. Use inline_result.transcript instead.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];

Returns
Type Description
boolean

Whether the transcript field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BatchRecognizeFileResult.Builder newBuilderForType()
Returns
Type Description
BatchRecognizeFileResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchRecognizeFileResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BatchRecognizeFileResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BatchRecognizeFileResult.Builder toBuilder()
Returns
Type Description
BatchRecognizeFileResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException