public final class BatchRecognizeFileResult extends GeneratedMessageV3 implements BatchRecognizeFileResultOrBuilder
Final results for a single file.
Protobuf type google.cloud.speech.v2.BatchRecognizeFileResult
Static Fields
ERROR_FIELD_NUMBER
public static final int ERROR_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
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 | |
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
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getTranscript()
public BatchRecognizeResults getTranscript()
The transcript for the audio file. This is populated only when
InlineOutputConfig is set in
the
RecognitionOutputConfig.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;
getTranscriptOrBuilder()
public BatchRecognizeResultsOrBuilder getTranscriptOrBuilder()
The transcript for the audio file. This is populated only when
InlineOutputConfig is set in
the
RecognitionOutputConfig.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
getUri()
The Cloud Storage URI to which recognition results were written.
string uri = 1;
Returns |
---|
Type | Description |
String | The uri.
|
getUriBytes()
public ByteString getUriBytes()
The Cloud Storage URI to which recognition results were written.
string uri = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for uri.
|
hasError()
public boolean hasError()
Error if one was encountered.
.google.rpc.Status error = 2;
Returns |
---|
Type | Description |
boolean | Whether the error field is set.
|
public boolean hasMetadata()
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
Returns |
---|
Type | Description |
boolean | Whether the metadata field is set.
|
hasTranscript()
public boolean hasTranscript()
The transcript for the audio file. This is populated only when
InlineOutputConfig is set in
the
RecognitionOutputConfig.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;
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)
Overrides
toBuilder()
public BatchRecognizeFileResult.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides