Table of Contents

Class ArtifactReference

Namespace
Solace.SchemaRegistry.Serdes.Core.Resolver.Strategy
Assembly
Solace.SchemaRegistry.Serdes.Core.dll

Represents a reference to an artifact in a schema registry.

public class ArtifactReference : IArtifactReference
Inheritance
ArtifactReference
Implements
Inherited Members

Constructors

ArtifactReference(string, string, string, long?, long?, string)

Initializes a new instance of the ArtifactReference class.

public ArtifactReference(string groupId = null, string artifactId = null, string version = null, long? globalId = null, long? contentId = null, string name = null)

Parameters

groupId string

The group ID.

artifactId string

The artifact ID.

version string

The artifact version.

globalId long?

The global ID of the artifact.

contentId long?

The content ID of the artifact.

name string

The artifact reference name.

Properties

ArtifactId

Gets the artifactId as a string.

public string ArtifactId { get; }

Property Value

string

ContentId

Gets the contentId.

public long? ContentId { get; }

Property Value

long?

GlobalId

Gets the globalId.

public long? GlobalId { get; }

Property Value

long?

GroupId

Gets the groupId as a string.

public string GroupId { get; }

Property Value

string

Name

Gets the artifact reference name as a string.

public string Name { get; }

Property Value

string

Version

Gets the version as a string.

public string Version { get; }

Property Value

string

Methods

Equals(object)

Determines whether the specified object is equal to the current ArtifactReference. Two artifact references are equal if all their properties match.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current artifact reference.

Returns

bool

true if the specified object is equal to the current artifact reference; otherwise, false.

GetHashCode()

Serves as the default hash function for the ArtifactReference type.

public override int GetHashCode()

Returns

int

A hash code for the current artifact reference.

ToString()

Returns a string representation of this ArtifactReference.

public override string ToString()

Returns

string

A formatted string containing the object's key properties.