Skip to main content

Class: ListValue

google.protobuf.ListValue

Represents a ListValue.

Properties

values

values: $Properties[]

ListValue values.

Methods

toJSON

toJSON(): Object

Converts this ListValue to JSON.

Returns

Object

JSON object


create

create(properties?): ListValue & $Shape

Creates a new ListValue instance using the specified properties.

Parameters

NameTypeDescription
properties?$ShapeProperties to set

Returns

ListValue & $Shape

ListValue instance

create(properties?): ListValue

Parameters

NameType
properties?$Properties

Returns

ListValue


decode

decode(reader, length?): ListValue & $Shape

Decodes a ListValue message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

ListValue & $Shape

ListValue

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): ListValue & $Shape

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

ListValue & $Shape

ListValue

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode

encode(message, writer?): Writer

Encodes the specified ListValue message. Does not implicitly google.protobuf.ListValue.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesListValue message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified ListValue message, length delimited. Does not implicitly google.protobuf.ListValue.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesListValue message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): ListValue

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

ListValue

ListValue


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageListValueListValue
options?IConversionOptionsConversion options

Returns

Object

Plain object