encode

fun encode(value: Any?, airbyteSchemaType: AirbyteSchemaType, builder: AirbyteRecordMessage.AirbyteValueProtobuf.Builder? = null): AirbyteRecordMessage.AirbyteValueProtobuf.Builder

Encodes a value into protobuf format based on its AirbyteSchemaType. Returns a protobuf representing a null value if value is null.

Parameters

builder

Optional builder to reuse. If provided, it will be cleared at the start.