Skip to main content

Class: ChatRowOpaqueData

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

Represents a ChatRowOpaqueData.

Implements

Constructors

new ChatRowOpaqueData()

new ChatRowOpaqueData(properties?): ChatRowOpaqueData

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

Constructs a new ChatRowOpaqueData.

Parameters

properties?

IChatRowOpaqueData

Properties to set

Returns

ChatRowOpaqueData

Properties

draftMessage?

optional draftMessage: null | IDraftMessage

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

ChatRowOpaqueData draftMessage.

Implementation of

IChatRowOpaqueData.draftMessage

Methods

toJSON()

toJSON(): object

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

Converts this ChatRowOpaqueData to JSON.

Returns

object

JSON object


create()

static create(properties?): ChatRowOpaqueData

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

Creates a new ChatRowOpaqueData instance using the specified properties.

Parameters

properties?

IChatRowOpaqueData

Properties to set

Returns

ChatRowOpaqueData

ChatRowOpaqueData instance


decode()

static decode(reader, length?): ChatRowOpaqueData

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

Decodes a ChatRowOpaqueData 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

ChatRowOpaqueData

ChatRowOpaqueData

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): ChatRowOpaqueData

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

Decodes a ChatRowOpaqueData message from the specified reader or buffer, length delimited.

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

ChatRowOpaqueData

ChatRowOpaqueData

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

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

Parameters

message

IChatRowOpaqueData

ChatRowOpaqueData 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:6954

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

Parameters

message

IChatRowOpaqueData

ChatRowOpaqueData message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): ChatRowOpaqueData

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

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

Parameters

object

Plain object

Returns

ChatRowOpaqueData

ChatRowOpaqueData


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for ChatRowOpaqueData

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

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

Parameters

message

ChatRowOpaqueData

ChatRowOpaqueData

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a ChatRowOpaqueData message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not