Class: ProtobufBinaryPayloadConverter
protobufs.ProtobufBinaryPayloadConverter
Converts between protobufjs Message instances and serialized Protobuf Payload
Hierarchy
-
ProtobufPayloadConverter↳
ProtobufBinaryPayloadConverter
Constructors
constructor
• new ProtobufBinaryPayloadConverter(root?): ProtobufBinaryPayloadConverter
Parameters
| Name | Type | Description |
|---|---|---|
root? | unknown | The 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
| Name | Type |
|---|---|
content | IPayload |
Returns
T
Overrides
ProtobufPayloadConverter.fromPayload
toPayload
▸ toPayload(value): undefined | IPayload
Parameters
| Name | Type |
|---|---|
value | unknown |
Returns
undefined | IPayload
Overrides
ProtobufPayloadConverter.toPayload