Class BatchRecognizeMetadata (4.32.0)

public final class BatchRecognizeMetadata extends GeneratedMessageV3 implements BatchRecognizeMetadataOrBuilder

Operation metadata for BatchRecognize.

Protobuf type google.cloud.speech.v2.BatchRecognizeMetadata

Static Fields

TRANSCRIPTION_METADATA_FIELD_NUMBER

public static final int TRANSCRIPTION_METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BatchRecognizeMetadata getDefaultInstance()
Returns
TypeDescription
BatchRecognizeMetadata

getDescriptor()

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

newBuilder()

public static BatchRecognizeMetadata.Builder newBuilder()
Returns
TypeDescription
BatchRecognizeMetadata.Builder

newBuilder(BatchRecognizeMetadata prototype)

public static BatchRecognizeMetadata.Builder newBuilder(BatchRecognizeMetadata prototype)
Parameter
NameDescription
prototypeBatchRecognizeMetadata
Returns
TypeDescription
BatchRecognizeMetadata.Builder

parseDelimitedFrom(InputStream input)

public static BatchRecognizeMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchRecognizeMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BatchRecognizeMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BatchRecognizeMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchRecognizeMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BatchRecognizeMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchRecognizeMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BatchRecognizeMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BatchRecognizeMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchRecognizeMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BatchRecognizeMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BatchRecognizeMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BatchRecognizeMetadata> parser()
Returns
TypeDescription
Parser<BatchRecognizeMetadata>

Methods

containsTranscriptionMetadata(String key)

public boolean containsTranscriptionMetadata(String key)

Map from provided filename to the transcription metadata for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public BatchRecognizeMetadata getDefaultInstanceForType()
Returns
TypeDescription
BatchRecognizeMetadata

getParserForType()

public Parser<BatchRecognizeMetadata> getParserForType()
Returns
TypeDescription
Parser<BatchRecognizeMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTranscriptionMetadata() (deprecated)

public Map<String,BatchRecognizeTranscriptionMetadata> getTranscriptionMetadata()
Returns
TypeDescription
Map<String,BatchRecognizeTranscriptionMetadata>

getTranscriptionMetadataCount()

public int getTranscriptionMetadataCount()

Map from provided filename to the transcription metadata for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;

Returns
TypeDescription
int

getTranscriptionMetadataMap()

public Map<String,BatchRecognizeTranscriptionMetadata> getTranscriptionMetadataMap()

Map from provided filename to the transcription metadata for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;

Returns
TypeDescription
Map<String,BatchRecognizeTranscriptionMetadata>

getTranscriptionMetadataOrDefault(String key, BatchRecognizeTranscriptionMetadata defaultValue)

public BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault(String key, BatchRecognizeTranscriptionMetadata defaultValue)

Map from provided filename to the transcription metadata for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;

Parameters
NameDescription
keyString
defaultValueBatchRecognizeTranscriptionMetadata
Returns
TypeDescription
BatchRecognizeTranscriptionMetadata

getTranscriptionMetadataOrThrow(String key)

public BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow(String key)

Map from provided filename to the transcription metadata for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
BatchRecognizeTranscriptionMetadata

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BatchRecognizeMetadata.Builder newBuilderForType()
Returns
TypeDescription
BatchRecognizeMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchRecognizeMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BatchRecognizeMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BatchRecognizeMetadata.Builder toBuilder()
Returns
TypeDescription
BatchRecognizeMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException