Send feedback
Class BatchRecognizeFileResult (4.50.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.50.0 keyboard_arrow_down
public final class BatchRecognizeFileResult extends GeneratedMessageV3 implements BatchRecognizeFileResultOrBuilder
Final results for a single file.
Protobuf type google.cloud.speech.v2.BatchRecognizeFileResult
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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
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 ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static BatchRecognizeFileResult . Builder newBuilder ()
newBuilder(BatchRecognizeFileResult prototype)
public static BatchRecognizeFileResult . Builder newBuilder ( BatchRecognizeFileResult prototype )
public static BatchRecognizeFileResult parseDelimitedFrom ( InputStream input )
public static BatchRecognizeFileResult parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static BatchRecognizeFileResult parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BatchRecognizeFileResult parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static BatchRecognizeFileResult parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BatchRecognizeFileResult parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static BatchRecognizeFileResult parseFrom ( CodedInputStream input )
public static BatchRecognizeFileResult parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static BatchRecognizeFileResult parseFrom ( InputStream input )
public static BatchRecognizeFileResult parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static BatchRecognizeFileResult parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BatchRecognizeFileResult parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<BatchRecognizeFileResult> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
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;
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;
getDefaultInstanceForType()
public BatchRecognizeFileResult getDefaultInstanceForType ()
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;
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;
public RecognitionResponseMetadata getMetadata ()
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
public RecognitionResponseMetadataOrBuilder getMetadataOrBuilder ()
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
getParserForType()
public Parser<BatchRecognizeFileResult> getParserForType ()
Overrides
getResultCase()
public BatchRecognizeFileResult . ResultCase getResultCase ()
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];
getTranscriptOrBuilder() (deprecated)
public BatchRecognizeResultsOrBuilder getTranscriptOrBuilder ()
Deprecated. Use inline_result.transcript
instead.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];
getUri() (deprecated)
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.
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()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public BatchRecognizeFileResult . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BatchRecognizeFileResult . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public BatchRecognizeFileResult . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]