AirbyteValueProtobufEncoder
Type-based encoder for protobuf values. Sources use this to encode values based on the AirbyteSchemaType from field discovery.
You can provide an existing AirbyteValueProtobuf.Builder to avoid repeated allocations. When provided, the builder is cleared before use.
Functions
Link copied to clipboard
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.