Skip to main content

Class: UInt32Value

google.protobuf.UInt32Value

Represents a UInt32Value.

Implements#

Constructors#

constructor#

new UInt32Value(properties?)

Constructs a new UInt32Value.

Parameters#

NameType
properties?IUInt32Value

Properties#

value#

value: number

UInt32Value value.

Implementation of#

IUInt32Value.value

Methods#

toJSON#

toJSON(): Object

Converts this UInt32Value to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): UInt32Value

Decodes a UInt32Value message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

UInt32Value

UInt32Value


decodeDelimited#

Static decodeDelimited(reader): UInt32Value

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

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

UInt32Value

UInt32Value


encode#

Static encode(message, writer?): Writer

Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.

Parameters#

NameTypeDescription
messageIUInt32ValueUInt32Value message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

NameTypeDescription
messageIUInt32ValueUInt32Value message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


fromObject#

Static 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#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageUInt32ValueUInt32Value
options?IConversionOptions-

Returns#

Object

Plain object