Class AutoDetectDecodingConfig.Builder (4.42.0)

public static final class AutoDetectDecodingConfig.Builder extends GeneratedMessageV3.Builder<AutoDetectDecodingConfig.Builder> implements AutoDetectDecodingConfigOrBuilder

Automatically detected decoding parameters. Supported for the following encodings:

  • WAV_LINEAR16: 16-bit signed little-endian PCM samples in a WAV container.

  • WAV_MULAW: 8-bit companded mulaw samples in a WAV container.

  • WAV_ALAW: 8-bit companded alaw samples in a WAV container.

  • RFC4867_5_AMR: AMR frames with an rfc4867.5 header.

  • RFC4867_5_AMRWB: AMR-WB frames with an rfc4867.5 header.

  • FLAC: FLAC frames in the "native FLAC" container format.

  • MP3: MPEG audio frames with optional (ignored) ID3 metadata.

  • OGG_OPUS: Opus audio frames in an Ogg container.

  • WEBM_OPUS: Opus audio frames in a WebM container.

  • MP4_AAC: AAC audio frames in an MP4 container.

  • M4A_AAC: AAC audio frames in an M4A container.

  • MOV_AAC: AAC audio frames in an MOV container.

Protobuf type google.cloud.speech.v2.AutoDetectDecodingConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutoDetectDecodingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutoDetectDecodingConfig.Builder
Overrides

build()

public AutoDetectDecodingConfig build()
Returns
Type Description
AutoDetectDecodingConfig

buildPartial()

public AutoDetectDecodingConfig buildPartial()
Returns
Type Description
AutoDetectDecodingConfig

clear()

public AutoDetectDecodingConfig.Builder clear()
Returns
Type Description
AutoDetectDecodingConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AutoDetectDecodingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AutoDetectDecodingConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AutoDetectDecodingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AutoDetectDecodingConfig.Builder
Overrides

clone()

public AutoDetectDecodingConfig.Builder clone()
Returns
Type Description
AutoDetectDecodingConfig.Builder
Overrides

getDefaultInstanceForType()

public AutoDetectDecodingConfig getDefaultInstanceForType()
Returns
Type Description
AutoDetectDecodingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AutoDetectDecodingConfig other)

public AutoDetectDecodingConfig.Builder mergeFrom(AutoDetectDecodingConfig other)
Parameter
Name Description
other AutoDetectDecodingConfig
Returns
Type Description
AutoDetectDecodingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutoDetectDecodingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoDetectDecodingConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AutoDetectDecodingConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AutoDetectDecodingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutoDetectDecodingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutoDetectDecodingConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AutoDetectDecodingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutoDetectDecodingConfig.Builder
Overrides

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

public AutoDetectDecodingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AutoDetectDecodingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AutoDetectDecodingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutoDetectDecodingConfig.Builder
Overrides