Class BatchRecognizeFileResult.Builder (4.6.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchRecognizeFileResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides

build()

public BatchRecognizeFileResult build()
Returns
TypeDescription
BatchRecognizeFileResult

buildPartial()

public BatchRecognizeFileResult buildPartial()
Returns
TypeDescription
BatchRecognizeFileResult

clear()

public BatchRecognizeFileResult.Builder clear()
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides

clearError()

public BatchRecognizeFileResult.Builder clearError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
TypeDescription
BatchRecognizeFileResult.Builder

clearField(Descriptors.FieldDescriptor field)

public BatchRecognizeFileResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchRecognizeFileResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides

clearUri()

public BatchRecognizeFileResult.Builder clearUri()

The GCS URI to which recognition results were written.

string uri = 1;

Returns
TypeDescription
BatchRecognizeFileResult.Builder

This builder for chaining.

clone()

public BatchRecognizeFileResult.Builder clone()
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides

getDefaultInstanceForType()

public BatchRecognizeFileResult getDefaultInstanceForType()
Returns
TypeDescription
BatchRecognizeFileResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getError()

public Status getError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
TypeDescription
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getUri()

public String getUri()

The GCS URI to which recognition results were written.

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The GCS URI to which recognition results were written.

string uri = 1;

Returns
TypeDescription
ByteString

The bytes for uri.

hasError()

public boolean hasError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
TypeDescription
boolean

Whether the error field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeError(Status value)

public BatchRecognizeFileResult.Builder mergeError(Status value)

Error if one was encountered.

.google.rpc.Status error = 2;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
BatchRecognizeFileResult.Builder

mergeFrom(BatchRecognizeFileResult other)

public BatchRecognizeFileResult.Builder mergeFrom(BatchRecognizeFileResult other)
Parameter
NameDescription
otherBatchRecognizeFileResult
Returns
TypeDescription
BatchRecognizeFileResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchRecognizeFileResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchRecognizeFileResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeFileResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides

setError(Status value)

public BatchRecognizeFileResult.Builder setError(Status value)

Error if one was encountered.

.google.rpc.Status error = 2;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
BatchRecognizeFileResult.Builder

setError(Status.Builder builderForValue)

public BatchRecognizeFileResult.Builder setError(Status.Builder builderForValue)

Error if one was encountered.

.google.rpc.Status error = 2;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
BatchRecognizeFileResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchRecognizeFileResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BatchRecognizeFileResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeFileResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides

setUri(String value)

public BatchRecognizeFileResult.Builder setUri(String value)

The GCS URI to which recognition results were written.

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
BatchRecognizeFileResult.Builder

This builder for chaining.

setUriBytes(ByteString value)

public BatchRecognizeFileResult.Builder setUriBytes(ByteString value)

The GCS URI to which recognition results were written.

string uri = 1;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
BatchRecognizeFileResult.Builder

This builder for chaining.