Skip to main content

Class: AutoDownloadSettings

Defined in: WAProto/index.d.ts:2776

Represents an AutoDownloadSettings.

Implements

Constructors

new AutoDownloadSettings()

new AutoDownloadSettings(properties?): AutoDownloadSettings

Defined in: WAProto/index.d.ts:2782

Constructs a new AutoDownloadSettings.

Parameters

properties?

IAutoDownloadSettings

Properties to set

Returns

AutoDownloadSettings

Properties

downloadAudio?

optional downloadAudio: null | boolean

Defined in: WAProto/index.d.ts:2788

AutoDownloadSettings downloadAudio.

Implementation of

IAutoDownloadSettings.downloadAudio


downloadDocuments?

optional downloadDocuments: null | boolean

Defined in: WAProto/index.d.ts:2794

AutoDownloadSettings downloadDocuments.

Implementation of

IAutoDownloadSettings.downloadDocuments


downloadImages?

optional downloadImages: null | boolean

Defined in: WAProto/index.d.ts:2785

AutoDownloadSettings downloadImages.

Implementation of

IAutoDownloadSettings.downloadImages


downloadVideo?

optional downloadVideo: null | boolean

Defined in: WAProto/index.d.ts:2791

AutoDownloadSettings downloadVideo.

Implementation of

IAutoDownloadSettings.downloadVideo

Methods

toJSON()

toJSON(): object

Defined in: WAProto/index.d.ts:2864

Converts this AutoDownloadSettings to JSON.

Returns

object

JSON object


create()

static create(properties?): AutoDownloadSettings

Defined in: WAProto/index.d.ts:2801

Creates a new AutoDownloadSettings instance using the specified properties.

Parameters

properties?

IAutoDownloadSettings

Properties to set

Returns

AutoDownloadSettings

AutoDownloadSettings instance


decode()

static decode(reader, length?): AutoDownloadSettings

Defined in: WAProto/index.d.ts:2827

Decodes an AutoDownloadSettings message from the specified reader or buffer.

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

length?

number

Message length if known beforehand

Returns

AutoDownloadSettings

AutoDownloadSettings

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): AutoDownloadSettings

Defined in: WAProto/index.d.ts:2836

Decodes an AutoDownloadSettings message from the specified reader or buffer, length delimited.

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

AutoDownloadSettings

AutoDownloadSettings

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode()

static encode(message, writer?): Writer

Defined in: WAProto/index.d.ts:2809

Encodes the specified AutoDownloadSettings message. Does not implicitly verify messages.

Parameters

message

IAutoDownloadSettings

AutoDownloadSettings message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


encodeDelimited()

static encodeDelimited(message, writer?): Writer

Defined in: WAProto/index.d.ts:2817

Encodes the specified AutoDownloadSettings message, length delimited. Does not implicitly verify messages.

Parameters

message

IAutoDownloadSettings

AutoDownloadSettings message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): AutoDownloadSettings

Defined in: WAProto/index.d.ts:2850

Creates an AutoDownloadSettings message from a plain object. Also converts values to their respective internal types.

Parameters

object

Plain object

Returns

AutoDownloadSettings

AutoDownloadSettings


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

Defined in: WAProto/index.d.ts:2871

Gets the default type url for AutoDownloadSettings

Parameters

typeUrlPrefix?

string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject()

static toObject(message, options?): object

Defined in: WAProto/index.d.ts:2858

Creates a plain object from an AutoDownloadSettings message. Also converts values to other types if specified.

Parameters

message

AutoDownloadSettings

AutoDownloadSettings

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

Defined in: WAProto/index.d.ts:2843

Verifies an AutoDownloadSettings message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not