Skip to main content

Class: ProtobufBinaryPayloadConverter

protobufs.ProtobufBinaryPayloadConverter

Converts between protobufjs Message instances and serialized Protobuf Payload

Hierarchy

  • ProtobufPayloadConverter

    ProtobufBinaryPayloadConverter

Constructors

constructor

new ProtobufBinaryPayloadConverter(root?): ProtobufBinaryPayloadConverter

Parameters

NameTypeDescription
root?unknownThe value returned from patchProtobufRoot

Returns

ProtobufBinaryPayloadConverter

Overrides

ProtobufPayloadConverter.constructor

Properties

encodingType

encodingType: "binary/protobuf"

Overrides

ProtobufPayloadConverter.encodingType

Methods

fromPayload

fromPayload<T>(content): T

Type parameters

Name
T

Parameters

NameType
contentIPayload

Returns

T

Overrides

ProtobufPayloadConverter.fromPayload


toPayload

toPayload(value): undefined | IPayload

Parameters

NameType
valueunknown

Returns

undefined | IPayload

Overrides

ProtobufPayloadConverter.toPayload