public abstract class AbstractKafkaProtobufDeserializer<T extends com.google.protobuf.Message> extends AbstractKafkaSchemaSerDe
AbstractKafkaSchemaSerDe.ExtendedSchema, AbstractKafkaSchemaSerDe.Migration, AbstractKafkaSchemaSerDe.SubjectSchema| Modifier and Type | Field and Description |
|---|---|
protected boolean |
deriveType |
protected Method |
parseMethod |
protected Class<T> |
specificProtobufClass |
config, configOriginals, contextNameStrategy, enableRuleServiceLoader, idSize, isKey, keySubjectNameStrategy, latestVersions, latestWithMetadata, MAGIC_BYTE, metadata, ruleActions, ruleExecutors, schemaRegistry, ticker, useLatestVersion, useSchemaReflection, valueSubjectNameStrategy| Constructor and Description |
|---|
AbstractKafkaProtobufDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(KafkaProtobufDeserializerConfig config,
Class<T> type)
Sets properties for this deserializer without overriding the schema registry client itself.
|
protected Object |
deserialize(boolean includeSchemaAndVersion,
String topic,
Boolean isKey,
byte[] payload) |
protected Object |
deserialize(boolean includeSchemaAndVersion,
String topic,
Boolean isKey,
org.apache.kafka.common.header.Headers headers,
byte[] payload) |
protected T |
deserialize(byte[] payload)
Deserializes the payload without including schema information for primitive types, maps, and
arrays.
|
protected KafkaProtobufDeserializerConfig |
deserializerConfig(Map<String,?> props) |
protected KafkaProtobufDeserializerConfig |
deserializerConfig(Properties props) |
protected ProtobufSchemaAndValue |
deserializeWithSchemaAndVersion(String topic,
boolean isKey,
org.apache.kafka.common.header.Headers headers,
byte[] payload) |
clearKey, close, configureClientProperties, executeMigrations, executeRules, executeRules, getById, getBySubjectAndId, getByteBuffer, getContextName, getContextName, getLatestWithMetadata, getMigrations, getOldSubjectName, getRuleActions, getRuleExecutors, getSchemaById, getSchemaBySubjectAndId, getSchemaRegistryClient, getSubjectName, isDeprecatedSubjectNameStrategy, isKey, key, latestVersionsCache, latestWithMetadataCache, lookupLatestVersion, lookupLatestVersion, lookupSchemaBySubjectAndId, postOp, register, register, register, registerWithResponse, setKey, strategyUsesSchema, ticker, toKafkaExceptionprotected Method parseMethod
protected boolean deriveType
protected void configure(KafkaProtobufDeserializerConfig config, Class<T> type)
protected KafkaProtobufDeserializerConfig deserializerConfig(Map<String,?> props)
protected KafkaProtobufDeserializerConfig deserializerConfig(Properties props)
protected T deserialize(byte[] payload) throws org.apache.kafka.common.errors.SerializationException, org.apache.kafka.common.errors.InvalidConfigurationException
This behavior is the norm for Decoders/Deserializers.
payload - serialized dataorg.apache.kafka.common.errors.SerializationExceptionorg.apache.kafka.common.errors.InvalidConfigurationExceptionprotected Object deserialize(boolean includeSchemaAndVersion, String topic, Boolean isKey, byte[] payload) throws org.apache.kafka.common.errors.SerializationException, org.apache.kafka.common.errors.InvalidConfigurationException
org.apache.kafka.common.errors.SerializationExceptionorg.apache.kafka.common.errors.InvalidConfigurationExceptionprotected Object deserialize(boolean includeSchemaAndVersion, String topic, Boolean isKey, org.apache.kafka.common.header.Headers headers, byte[] payload) throws org.apache.kafka.common.errors.SerializationException, org.apache.kafka.common.errors.InvalidConfigurationException
org.apache.kafka.common.errors.SerializationExceptionorg.apache.kafka.common.errors.InvalidConfigurationExceptionprotected ProtobufSchemaAndValue deserializeWithSchemaAndVersion(String topic, boolean isKey, org.apache.kafka.common.header.Headers headers, byte[] payload) throws org.apache.kafka.common.errors.SerializationException
org.apache.kafka.common.errors.SerializationExceptionCopyright © 2026 Confluent, Inc.. All rights reserved.