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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchRecognizeFileResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BatchRecognizeFileResult build()
buildPartial()
public BatchRecognizeFileResult buildPartial()
clear()
public BatchRecognizeFileResult.Builder clear()
Overrides
clearError()
public BatchRecognizeFileResult.Builder clearError()
Error if one was encountered.
.google.rpc.Status error = 2;
clearField(Descriptors.FieldDescriptor field)
public BatchRecognizeFileResult.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public BatchRecognizeFileResult.Builder clearMetadata()
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchRecognizeFileResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTranscript()
public BatchRecognizeFileResult.Builder clearTranscript()
The transcript for the audio file. This is populated only when
InlineOutputConfig is set in
the
RecognitionOutputConfig.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;
clearUri()
public BatchRecognizeFileResult.Builder clearUri()
The Cloud Storage URI to which recognition results were written.
string uri = 1;
clone()
public BatchRecognizeFileResult.Builder clone()
Overrides
getDefaultInstanceForType()
public BatchRecognizeFileResult getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 | |
public RecognitionResponseMetadata getMetadata()
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
public RecognitionResponseMetadata.Builder getMetadataBuilder()
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
public RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
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;
getTranscriptBuilder()
public BatchRecognizeResults.Builder getTranscriptBuilder()
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;
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
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
|
mergeFrom(BatchRecognizeFileResult other)
public BatchRecognizeFileResult.Builder mergeFrom(BatchRecognizeFileResult other)
public BatchRecognizeFileResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BatchRecognizeFileResult.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public BatchRecognizeFileResult.Builder mergeMetadata(RecognitionResponseMetadata value)
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
mergeTranscript(BatchRecognizeResults value)
public BatchRecognizeFileResult.Builder mergeTranscript(BatchRecognizeResults value)
The transcript for the audio file. This is populated only when
InlineOutputConfig is set in
the
RecognitionOutputConfig.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchRecognizeFileResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public BatchRecognizeFileResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public BatchRecognizeFileResult.Builder setMetadata(RecognitionResponseMetadata value)
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
public BatchRecognizeFileResult.Builder setMetadata(RecognitionResponseMetadata.Builder builderForValue)
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchRecognizeFileResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTranscript(BatchRecognizeResults value)
public BatchRecognizeFileResult.Builder setTranscript(BatchRecognizeResults value)
The transcript for the audio file. This is populated only when
InlineOutputConfig is set in
the
RecognitionOutputConfig.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;
setTranscript(BatchRecognizeResults.Builder builderForValue)
public BatchRecognizeFileResult.Builder setTranscript(BatchRecognizeResults.Builder builderForValue)
The transcript for the audio file. This is populated only when
InlineOutputConfig is set in
the
RecognitionOutputConfig.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchRecognizeFileResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setUri(String value)
public BatchRecognizeFileResult.Builder setUri(String value)
The Cloud Storage URI to which recognition results were written.
string uri = 1;
Parameter |
---|
Name | Description |
value | String
The uri to set.
|
setUriBytes(ByteString value)
public BatchRecognizeFileResult.Builder setUriBytes(ByteString value)
The Cloud Storage URI to which recognition results were written.
string uri = 1;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for uri to set.
|