Class LocalizedStringAdapter

java.lang.Object
com.inductiveautomation.historian.common.rpc.adapters.i18n.LocalizedStringAdapter
All Implemented Interfaces:
BinaryAdapter<LocalizedString>, BinaryDeserializer<LocalizedString>, BinarySerializer<LocalizedString>

public final class LocalizedStringAdapter extends Object implements BinaryAdapter<LocalizedString>
Protobuf binary adapter for LocalizedString, using the HistorianLocalizedStringProto.HistorianLocalizedStringPB schema.

Three forms round-trip: a raw string (no key; default_val carries the literal, decoded with LocalizedString.createRaw(String)), a key alone, and a key with params.

Param types are not preserved: each param is serialized with toString() and decoded as a String, so non-String params reach the format template as strings.