Class RecognitionResponseMetadata (4.50.0)

public final class RecognitionResponseMetadata extends GeneratedMessageV3 implements RecognitionResponseMetadataOrBuilder

Metadata about the recognition request and response.

Protobuf type google.cloud.speech.v2.RecognitionResponseMetadata

Static Fields

REQUEST_ID_FIELD_NUMBER

public static final int REQUEST_ID_FIELD_NUMBER
Field Value
Type Description
int

TOTAL_BILLED_DURATION_FIELD_NUMBER

public static final int TOTAL_BILLED_DURATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RecognitionResponseMetadata getDefaultInstance()
Returns
Type Description
RecognitionResponseMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RecognitionResponseMetadata.Builder newBuilder()
Returns
Type Description
RecognitionResponseMetadata.Builder

newBuilder(RecognitionResponseMetadata prototype)

public static RecognitionResponseMetadata.Builder newBuilder(RecognitionResponseMetadata prototype)
Parameter
Name Description
prototype RecognitionResponseMetadata
Returns
Type Description
RecognitionResponseMetadata.Builder

parseDelimitedFrom(InputStream input)

public static RecognitionResponseMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RecognitionResponseMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RecognitionResponseMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecognitionResponseMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RecognitionResponseMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RecognitionResponseMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RecognitionResponseMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecognitionResponseMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RecognitionResponseMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RecognitionResponseMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RecognitionResponseMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecognitionResponseMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RecognitionResponseMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RecognitionResponseMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RecognitionResponseMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecognitionResponseMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RecognitionResponseMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RecognitionResponseMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RecognitionResponseMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecognitionResponseMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RecognitionResponseMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RecognitionResponseMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RecognitionResponseMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecognitionResponseMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RecognitionResponseMetadata> parser()
Returns
Type Description
Parser<RecognitionResponseMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RecognitionResponseMetadata getDefaultInstanceForType()
Returns
Type Description
RecognitionResponseMetadata

getParserForType()

public Parser<RecognitionResponseMetadata> getParserForType()
Returns
Type Description
Parser<RecognitionResponseMetadata>
Overrides

getRequestId()

public String getRequestId()

Global request identifier auto-generated by the API.

string request_id = 9 [(.google.api.field_info) = { ... }

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Global request identifier auto-generated by the API.

string request_id = 9 [(.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for requestId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTotalBilledDuration()

public Duration getTotalBilledDuration()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 6;

Returns
Type Description
Duration

The totalBilledDuration.

getTotalBilledDurationOrBuilder()

public DurationOrBuilder getTotalBilledDurationOrBuilder()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 6;

Returns
Type Description
DurationOrBuilder

hasTotalBilledDuration()

public boolean hasTotalBilledDuration()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 6;

Returns
Type Description
boolean

Whether the totalBilledDuration field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RecognitionResponseMetadata.Builder newBuilderForType()
Returns
Type Description
RecognitionResponseMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RecognitionResponseMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RecognitionResponseMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RecognitionResponseMetadata.Builder toBuilder()
Returns
Type Description
RecognitionResponseMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException