Class ProtoDefaultValueConverter
java.lang.Object
io.confluent.kafka.schemaregistry.type.logical.protobuf.ProtoDefaultValueConverter
Encodes/decodes default values for Protobuf as strings (stored in Meta params).
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjecttoJavaData(Schema type, String value) Decode a Meta.params default string back into a typed Java value.static StringtoProtoValue(Schema type, Object value) Encode a typed Java default value into a string for storage in Meta.params.
-
Method Details
-
toProtoValue
Encode a typed Java default value into a string for storage in Meta.params. -
toJavaData
Decode a Meta.params default string back into a typed Java value.
-