Skip to main content

Class: UInt32Value

google.protobuf.UInt32Value

Represents a UInt32Value.

Implements

Constructors

constructor

new UInt32Value(properties?): UInt32Value

Constructs a new UInt32Value.

Parameters

NameTypeDescription
properties?IUInt32ValueProperties to set

Returns

UInt32Value

Properties

value

value: number

UInt32Value value.

Implementation of

IUInt32Value.value

Methods

toJSON

toJSON(): Object

Converts this UInt32Value to JSON.

Returns

Object

JSON object


create

create(properties?): UInt32Value

Creates a new UInt32Value instance using the specified properties.

Parameters

NameTypeDescription
properties?IUInt32ValueProperties to set

Returns

UInt32Value

UInt32Value instance


decode

decode(reader, length?): UInt32Value

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

UInt32Value

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): UInt32Value

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

UInt32Value

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
messageIUInt32ValueUInt32Value 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
messageIUInt32ValueUInt32Value 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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for UInt32Value

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


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