Class AutoDetectDecodingConfig.Builder (4.15.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.

Protobuf type google.cloud.speech.v2.AutoDetectDecodingConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutoDetectDecodingConfig build()
Returns
TypeDescription
AutoDetectDecodingConfig

buildPartial()

public AutoDetectDecodingConfig buildPartial()
Returns
TypeDescription
AutoDetectDecodingConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public AutoDetectDecodingConfig getDefaultInstanceForType()
Returns
TypeDescription
AutoDetectDecodingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AutoDetectDecodingConfig other)

public AutoDetectDecodingConfig.Builder mergeFrom(AutoDetectDecodingConfig other)
Parameter
NameDescription
otherAutoDetectDecodingConfig
Returns
TypeDescription
AutoDetectDecodingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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