Class ArtifactReference
- 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
groupIdstringThe group ID.
artifactIdstringThe artifact ID.
versionstringThe artifact version.
globalIdlong?The global ID of the artifact.
contentIdlong?The content ID of the artifact.
namestringThe artifact reference name.
Properties
ArtifactId
Gets the artifactId as a string.
public string ArtifactId { get; }
Property Value
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
Name
Gets the artifact reference name as a string.
public string Name { get; }
Property Value
Version
Gets the version as a string.
public string Version { get; }
Property Value
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
objobjectThe object to compare with the current artifact reference.
Returns
- bool
trueif 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.