confluent-kafka-dotnet
Show / Hide Table of Contents

Struct SchemaId

Represents a schema ID or GUID.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: Confluent.SchemaRegistry
Assembly: Confluent.SchemaRegistry.dll
Syntax
public struct SchemaId

Constructors

SchemaId(SchemaType)

Declaration
public SchemaId(SchemaType schemaType)
Parameters
Type Name Description
SchemaType schemaType

SchemaId(SchemaType, int, Guid)

Declaration
public SchemaId(SchemaType schemaType, int id, Guid guid)
Parameters
Type Name Description
SchemaType schemaType
int id
Guid guid

SchemaId(SchemaType, int, string)

Declaration
public SchemaId(SchemaType schemaType, int id, string guid)
Parameters
Type Name Description
SchemaType schemaType
int id
string guid

Fields

KEY_SCHEMA_ID_HEADER

Declaration
public const string KEY_SCHEMA_ID_HEADER = "__key_schema_id"
Field Value
Type Description
string

MAGIC_BYTE_V0

Declaration
public const byte MAGIC_BYTE_V0 = 0
Field Value
Type Description
byte

MAGIC_BYTE_V1

Declaration
public const byte MAGIC_BYTE_V1 = 1
Field Value
Type Description
byte

VALUE_SCHEMA_ID_HEADER

Declaration
public const string VALUE_SCHEMA_ID_HEADER = "__value_schema_id"
Field Value
Type Description
string

Properties

Guid

The schema GUID.

Declaration
public Guid? Guid { readonly get; set; }
Property Value
Type Description
Guid?

Id

The schema ID.

Declaration
public int? Id { readonly get; set; }
Property Value
Type Description
int?

MessageIndexes

The schema GUID.

Declaration
public IReadOnlyList<int> MessageIndexes { readonly get; set; }
Property Value
Type Description
IReadOnlyList<int>

SchemaType

The schema type.

Declaration
public readonly SchemaType SchemaType { get; }
Property Value
Type Description
SchemaType

Methods

CalculateGuidSize()

Declaration
public int CalculateGuidSize()
Returns
Type Description
int

CalculateIdSize()

Declaration
public int CalculateIdSize()
Returns
Type Description
int

FromBytes(ReadOnlyMemory<byte>)

Declaration
public ReadOnlyMemory<byte> FromBytes(ReadOnlyMemory<byte> payload)
Parameters
Type Name Description
ReadOnlyMemory<byte> payload
Returns
Type Description
ReadOnlyMemory<byte>

WriteGuidToBytes(Span<byte>)

Declaration
public void WriteGuidToBytes(Span<byte> destination)
Parameters
Type Name Description
Span<byte> destination

WriteIdToBytes(Span<byte>)

Declaration
public void WriteIdToBytes(Span<byte> destination)
Parameters
Type Name Description
Span<byte> destination
In this article