Skip to main content

Class: AutoDownloadSettings

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

Represents an AutoDownloadSettings.

Implements

Constructors

new AutoDownloadSettings()

new AutoDownloadSettings(properties?): AutoDownloadSettings

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

Constructs a new AutoDownloadSettings.

Parameters

properties?

IAutoDownloadSettings

Properties to set

Returns

AutoDownloadSettings

Properties

downloadAudio?

optional downloadAudio: null | boolean

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

AutoDownloadSettings downloadAudio.

Implementation of

IAutoDownloadSettings.downloadAudio


downloadDocuments?

optional downloadDocuments: null | boolean

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

AutoDownloadSettings downloadDocuments.

Implementation of

IAutoDownloadSettings.downloadDocuments


downloadImages?

optional downloadImages: null | boolean

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

AutoDownloadSettings downloadImages.

Implementation of

IAutoDownloadSettings.downloadImages


downloadVideo?

optional downloadVideo: null | boolean

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

AutoDownloadSettings downloadVideo.

Implementation of

IAutoDownloadSettings.downloadVideo

Methods

toJSON()

toJSON(): object

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

Converts this AutoDownloadSettings to JSON.

Returns

object

JSON object


create()

static create(properties?): AutoDownloadSettings

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

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:3075

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:3084

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:3057

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:3065

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:3098

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:3119

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:3106

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:3091

Verifies an AutoDownloadSettings message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not