confluent-kafka-dotnet
Show / Hide Table of Contents

Class ProtobufSerializerConfig.PropertyNames

Configuration property names specific to ProtobufSerializer<T>.

Inheritance
object
ProtobufSerializerConfig.PropertyNames
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.SchemaRegistry.Serdes
Assembly: Confluent.SchemaRegistry.Serdes.Protobuf.dll
Syntax
public static class ProtobufSerializerConfig.PropertyNames

Fields

AutoRegisterSchemas

Specifies whether or not the Protobuf serializer should attempt to auto-register unrecognized schemas with Confluent Schema Registry.

default: true

Declaration
public const string AutoRegisterSchemas = "protobuf.serializer.auto.register.schemas"
Field Value
Type Description
string

BufferBytes

Specifies the initial size (in bytes) of the buffer used for Protobuf message serialization. Use a value high enough to avoid resizing the buffer, but small enough to avoid excessive memory use. Inspect the size of the byte array returned by the Serialize method to estimate an appropriate value. Note: each call to serialize creates a new buffer.

default: 1024

Declaration
public const string BufferBytes = "protobuf.serializer.buffer.bytes"
Field Value
Type Description
string

NormalizeSchemas

Specifies whether to normalize schemas, which will transform schemas to have a consistent format, including ordering properties and references.

default: false

Declaration
public const string NormalizeSchemas = "protobuf.serializer.normalize.schemas"
Field Value
Type Description
string

ReferenceSubjectNameStrategy

The subject name strategy to use for registration / lookup of referenced schemas Possible values: ReferenceSubjectNameStrategy

Declaration
public const string ReferenceSubjectNameStrategy = "protobuf.serializer.reference.subject.name.strategy"
Field Value
Type Description
string

SkipKnownTypes

Specifies whether or not the Protobuf serializer should skip known types when resolving dependencies.

default: false

Declaration
public const string SkipKnownTypes = "protobuf.serializer.skip.known.types"
Field Value
Type Description
string

SubjectNameStrategy

The subject name strategy to use for schema registration / lookup. Possible values: SubjectNameStrategy

Declaration
public const string SubjectNameStrategy = "protobuf.serializer.subject.name.strategy"
Field Value
Type Description
string

UseDeprecatedFormat

Specifies whether the Protobuf serializer should serialize message indexes without zig-zag encoding.

default: false

Declaration
public const string UseDeprecatedFormat = "protobuf.serializer.use.deprecated.format"
Field Value
Type Description
string

UseLatestVersion

Specifies whether or not the Protobuf serializer should use the latest subject version for serialization. WARNING: There is no check that the latest schema is backwards compatible with the schema of the object being serialized.

default: false

Declaration
public const string UseLatestVersion = "protobuf.serializer.use.latest.version"
Field Value
Type Description
string

UseLatestWithMetadata

Specifies whether or not the Protobuf serializer should use the latest subject version for serialization. WARNING: There is no check that the latest schema is backwards compatible with the schema of the object being serialized.

Declaration
public const string UseLatestWithMetadata = "protobuf.serializer.use.latest.with.metadata"
Field Value
Type Description
string
In this article