Table of Contents

Class KafkaProtobufDeserializerConfiguration

Namespace
Silverback.Messaging.Configuration.Kafka.SchemaRegistry
Assembly
Silverback.Integration.Kafka.SchemaRegistry.dll

Wraps the Confluent.SchemaRegistry.Serdes.ProtobufDeserializerConfig.

public sealed record KafkaProtobufDeserializerConfiguration : IEquatable<KafkaProtobufDeserializerConfiguration>
Inheritance
KafkaProtobufDeserializerConfiguration
Implements
Inherited Members

Constructors

KafkaProtobufDeserializerConfiguration()

public KafkaProtobufDeserializerConfiguration()

Properties

SchemaIdStrategy

Gets the schema ID strategy. The default is Confluent.SchemaRegistry.SchemaIdDeserializerStrategy.Dual.

public SchemaIdDeserializerStrategy? SchemaIdStrategy { get; init; }

Property Value

SchemaIdDeserializerStrategy?

SubjectNameStrategy

Gets the subject name strategy. The default is Confluent.SchemaRegistry.SubjectNameStrategy.Associated.

public SubjectNameStrategy? SubjectNameStrategy { get; init; }

Property Value

SubjectNameStrategy?

UseDeprecatedFormat

Gets a value indicating whether the deserializer should deserialize the message indexes without zig-zag encoding.

public bool? UseDeprecatedFormat { get; init; }

Property Value

bool?

UseLatestVersion

Gets a value indicating whether the deserializer should use the latest subject version for deserialization. Note that there is no check that the latest schema is backwards compatible with the schema of the message being deserialized.

public bool? UseLatestVersion { get; init; }

Property Value

bool?

UseLatestWithMetadata

Gets the metadata to be used to select the latest subject version to be used for deserialization. Note that there is no check that the latest schema is backwards compatible with the schema of the message being deserialized.

public IReadOnlyDictionary<string, string>? UseLatestWithMetadata { get; init; }

Property Value

IReadOnlyDictionary<string, string>

ValidationRulesExecution

Gets a value specifying when the inline validation rules run, relative to the domain rule transformations. The default is Confluent.SchemaRegistry.ValidationRulesExecution.Disabled.

public ValidationRulesExecution? ValidationRulesExecution { get; init; }

Property Value

ValidationRulesExecution?

ValidationRulesFailFast

Gets a value indicating whether the validation stops at the first failed rule and reports only that violation.

public bool? ValidationRulesFailFast { get; init; }

Property Value

bool?

Methods

Equals(KafkaProtobufDeserializerConfiguration?)

public bool Equals(KafkaProtobufDeserializerConfiguration? other)

Parameters

other KafkaProtobufDeserializerConfiguration

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(KafkaProtobufDeserializerConfiguration?, KafkaProtobufDeserializerConfiguration?)

public static bool operator ==(KafkaProtobufDeserializerConfiguration? left, KafkaProtobufDeserializerConfiguration? right)

Parameters

left KafkaProtobufDeserializerConfiguration
right KafkaProtobufDeserializerConfiguration

Returns

bool

operator !=(KafkaProtobufDeserializerConfiguration?, KafkaProtobufDeserializerConfiguration?)

public static bool operator !=(KafkaProtobufDeserializerConfiguration? left, KafkaProtobufDeserializerConfiguration? right)

Parameters

left KafkaProtobufDeserializerConfiguration
right KafkaProtobufDeserializerConfiguration

Returns

bool