- 4.49.0 (latest)
- 4.48.0
- 4.47.0
- 4.46.0
- 4.44.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.32.0
- 4.31.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.16.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.7.0
- 4.6.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.0.0
- 2.6.1
- 2.5.9
- 2.4.0
- 2.3.0
- 2.2.15
public static final class BatchRecognizeFileResult.Builder extends GeneratedMessageV3.Builder<BatchRecognizeFileResult.Builder> implements BatchRecognizeFileResultOrBuilder
Final results for a single file.
Protobuf type google.cloud.speech.v2.BatchRecognizeFileResult
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BatchRecognizeFileResult.BuilderImplements
BatchRecognizeFileResultOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchRecognizeFileResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
build()
public BatchRecognizeFileResult build()
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult |
buildPartial()
public BatchRecognizeFileResult buildPartial()
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult |
clear()
public BatchRecognizeFileResult.Builder clear()
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
clearCloudStorageResult()
public BatchRecognizeFileResult.Builder clearCloudStorageResult()
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 |
BatchRecognizeFileResult.Builder |
clearError()
public BatchRecognizeFileResult.Builder clearError()
Error if one was encountered.
.google.rpc.Status error = 2;
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
clearField(Descriptors.FieldDescriptor field)
public BatchRecognizeFileResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
clearInlineResult()
public BatchRecognizeFileResult.Builder clearInlineResult()
Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.
.google.cloud.speech.v2.InlineResult inline_result = 6;
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
clearMetadata()
public BatchRecognizeFileResult.Builder clearMetadata()
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchRecognizeFileResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
clearResult()
public BatchRecognizeFileResult.Builder clearResult()
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
clearTranscript() (deprecated)
public BatchRecognizeFileResult.Builder clearTranscript()
Deprecated. Use inline_result.transcript
instead.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
clearUri() (deprecated)
public BatchRecognizeFileResult.Builder clearUri()
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 |
BatchRecognizeFileResult.Builder |
This builder for chaining. |
clone()
public BatchRecognizeFileResult.Builder clone()
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
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. |
getCloudStorageResultBuilder()
public CloudStorageResult.Builder getCloudStorageResultBuilder()
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.Builder |
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 |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getError()
public Status getError()
Error if one was encountered.
.google.rpc.Status error = 2;
Returns | |
---|---|
Type | Description |
com.google.rpc.Status |
The error. |
getErrorBuilder()
public Status.Builder getErrorBuilder()
Error if one was encountered.
.google.rpc.Status error = 2;
Returns | |
---|---|
Type | Description |
com.google.rpc.Status.Builder |
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. |
getInlineResultBuilder()
public InlineResult.Builder getInlineResultBuilder()
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.Builder |
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. |
getMetadataBuilder()
public RecognitionResponseMetadata.Builder getMetadataBuilder()
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
Returns | |
---|---|
Type | Description |
RecognitionResponseMetadata.Builder |
getMetadataOrBuilder()
public RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
Returns | |
---|---|
Type | Description |
RecognitionResponseMetadataOrBuilder |
getResultCase()
public BatchRecognizeFileResult.ResultCase getResultCase()
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.ResultCase |
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. |
getTranscriptBuilder() (deprecated)
public BatchRecognizeResults.Builder getTranscriptBuilder()
Deprecated. Use inline_result.transcript
instead.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];
Returns | |
---|---|
Type | Description |
BatchRecognizeResults.Builder |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCloudStorageResult(CloudStorageResult value)
public BatchRecognizeFileResult.Builder mergeCloudStorageResult(CloudStorageResult value)
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;
Parameter | |
---|---|
Name | Description |
value |
CloudStorageResult |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
mergeError(Status value)
public BatchRecognizeFileResult.Builder mergeError(Status value)
Error if one was encountered.
.google.rpc.Status error = 2;
Parameter | |
---|---|
Name | Description |
value |
com.google.rpc.Status |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
mergeFrom(BatchRecognizeFileResult other)
public BatchRecognizeFileResult.Builder mergeFrom(BatchRecognizeFileResult other)
Parameter | |
---|---|
Name | Description |
other |
BatchRecognizeFileResult |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BatchRecognizeFileResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public BatchRecognizeFileResult.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
mergeInlineResult(InlineResult value)
public BatchRecognizeFileResult.Builder mergeInlineResult(InlineResult value)
Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.
.google.cloud.speech.v2.InlineResult inline_result = 6;
Parameter | |
---|---|
Name | Description |
value |
InlineResult |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
mergeMetadata(RecognitionResponseMetadata value)
public BatchRecognizeFileResult.Builder mergeMetadata(RecognitionResponseMetadata value)
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
Parameter | |
---|---|
Name | Description |
value |
RecognitionResponseMetadata |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
mergeTranscript(BatchRecognizeResults value) (deprecated)
public BatchRecognizeFileResult.Builder mergeTranscript(BatchRecognizeResults value)
Deprecated. Use inline_result.transcript
instead.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];
Parameter | |
---|---|
Name | Description |
value |
BatchRecognizeResults |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchRecognizeFileResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setCloudStorageResult(CloudStorageResult value)
public BatchRecognizeFileResult.Builder setCloudStorageResult(CloudStorageResult value)
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;
Parameter | |
---|---|
Name | Description |
value |
CloudStorageResult |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setCloudStorageResult(CloudStorageResult.Builder builderForValue)
public BatchRecognizeFileResult.Builder setCloudStorageResult(CloudStorageResult.Builder builderForValue)
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;
Parameter | |
---|---|
Name | Description |
builderForValue |
CloudStorageResult.Builder |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setError(Status value)
public BatchRecognizeFileResult.Builder setError(Status value)
Error if one was encountered.
.google.rpc.Status error = 2;
Parameter | |
---|---|
Name | Description |
value |
com.google.rpc.Status |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setError(Status.Builder builderForValue)
public BatchRecognizeFileResult.Builder setError(Status.Builder builderForValue)
Error if one was encountered.
.google.rpc.Status error = 2;
Parameter | |
---|---|
Name | Description |
builderForValue |
com.google.rpc.Status.Builder |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public BatchRecognizeFileResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setInlineResult(InlineResult value)
public BatchRecognizeFileResult.Builder setInlineResult(InlineResult value)
Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.
.google.cloud.speech.v2.InlineResult inline_result = 6;
Parameter | |
---|---|
Name | Description |
value |
InlineResult |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setInlineResult(InlineResult.Builder builderForValue)
public BatchRecognizeFileResult.Builder setInlineResult(InlineResult.Builder builderForValue)
Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.
.google.cloud.speech.v2.InlineResult inline_result = 6;
Parameter | |
---|---|
Name | Description |
builderForValue |
InlineResult.Builder |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setMetadata(RecognitionResponseMetadata value)
public BatchRecognizeFileResult.Builder setMetadata(RecognitionResponseMetadata value)
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
Parameter | |
---|---|
Name | Description |
value |
RecognitionResponseMetadata |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setMetadata(RecognitionResponseMetadata.Builder builderForValue)
public BatchRecognizeFileResult.Builder setMetadata(RecognitionResponseMetadata.Builder builderForValue)
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
Parameter | |
---|---|
Name | Description |
builderForValue |
RecognitionResponseMetadata.Builder |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchRecognizeFileResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setTranscript(BatchRecognizeResults value) (deprecated)
public BatchRecognizeFileResult.Builder setTranscript(BatchRecognizeResults value)
Deprecated. Use inline_result.transcript
instead.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];
Parameter | |
---|---|
Name | Description |
value |
BatchRecognizeResults |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setTranscript(BatchRecognizeResults.Builder builderForValue) (deprecated)
public BatchRecognizeFileResult.Builder setTranscript(BatchRecognizeResults.Builder builderForValue)
Deprecated. Use inline_result.transcript
instead.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];
Parameter | |
---|---|
Name | Description |
builderForValue |
BatchRecognizeResults.Builder |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchRecognizeFileResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
setUri(String value) (deprecated)
public BatchRecognizeFileResult.Builder setUri(String value)
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];
Parameter | |
---|---|
Name | Description |
value |
String The uri to set. |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
This builder for chaining. |
setUriBytes(ByteString value) (deprecated)
public BatchRecognizeFileResult.Builder setUriBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for uri to set. |
Returns | |
---|---|
Type | Description |
BatchRecognizeFileResult.Builder |
This builder for chaining. |