Skip to main content

Class: UInt32Value

google.protobuf.UInt32Value

Represents a UInt32Value.

Properties​

value​

• value: number

UInt32Value value.

Methods​

toJSON​

▸ toJSON(): Object

Converts this UInt32Value to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): UInt32Value & $Properties

Creates a new UInt32Value instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

UInt32Value & $Properties

UInt32Value instance

▸ create(properties?): UInt32Value

Parameters​

NameType
properties?$Properties

Returns​

UInt32Value


decode​

▸ decode(reader, length?): UInt32Value & $Properties

Decodes a UInt32Value message from the specified reader or buffer.

Parameters​

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

Returns​

UInt32Value & $Properties

UInt32Value

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): UInt32Value & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

UInt32Value & $Properties

UInt32Value

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 UInt32Value message. Does not implicitly google.protobuf.UInt32Value.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): UInt32Value

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

UInt32Value

UInt32Value


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageUInt32ValueUInt32Value
options?IConversionOptionsConversion options

Returns​

Object

Plain object