Class RecognitionResponseMetadata.Builder (4.14.0)

public static final class RecognitionResponseMetadata.Builder extends GeneratedMessageV3.Builder<RecognitionResponseMetadata.Builder> implements RecognitionResponseMetadataOrBuilder

Metadata about the recognition request and response.

Protobuf type google.cloud.speech.v2.RecognitionResponseMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RecognitionResponseMetadata build()
Returns
TypeDescription
RecognitionResponseMetadata

buildPartial()

public RecognitionResponseMetadata buildPartial()
Returns
TypeDescription
RecognitionResponseMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalBilledDuration()

public RecognitionResponseMetadata.Builder clearTotalBilledDuration()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 6;

Returns
TypeDescription
RecognitionResponseMetadata.Builder

clone()

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

getDefaultInstanceForType()

public RecognitionResponseMetadata getDefaultInstanceForType()
Returns
TypeDescription
RecognitionResponseMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTotalBilledDuration()

public Duration getTotalBilledDuration()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 6;

Returns
TypeDescription
Duration

The totalBilledDuration.

getTotalBilledDurationBuilder()

public Duration.Builder getTotalBilledDurationBuilder()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 6;

Returns
TypeDescription
Builder

getTotalBilledDurationOrBuilder()

public DurationOrBuilder getTotalBilledDurationOrBuilder()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 6;

Returns
TypeDescription
DurationOrBuilder

hasTotalBilledDuration()

public boolean hasTotalBilledDuration()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 6;

Returns
TypeDescription
boolean

Whether the totalBilledDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RecognitionResponseMetadata other)

public RecognitionResponseMetadata.Builder mergeFrom(RecognitionResponseMetadata other)
Parameter
NameDescription
otherRecognitionResponseMetadata
Returns
TypeDescription
RecognitionResponseMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTotalBilledDuration(Duration value)

public RecognitionResponseMetadata.Builder mergeTotalBilledDuration(Duration value)

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 6;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
RecognitionResponseMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTotalBilledDuration(Duration value)

public RecognitionResponseMetadata.Builder setTotalBilledDuration(Duration value)

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 6;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
RecognitionResponseMetadata.Builder

setTotalBilledDuration(Duration.Builder builderForValue)

public RecognitionResponseMetadata.Builder setTotalBilledDuration(Duration.Builder builderForValue)

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
RecognitionResponseMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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