Record Class CardDigest
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.CardDigest
@Generated("copilot-sdk-codegen")
public record CardDigest(CardDigestAlgorithm algorithm, String value)
extends Record
Semantic digest of a strictly parsed and schema-validated JSON MCP card. Both URL-backed and embedded cards are canonicalised with RFC 8785 JSON Canonicalization Scheme, encoded as UTF-8, and hashed with SHA-256.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCardDigest(CardDigestAlgorithm algorithm, String value) Creates an instance of aCardDigestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
CardDigest
Creates an instance of aCardDigestrecord class.- Parameters:
algorithm- the value for thealgorithmrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
algorithm
Returns the value of thealgorithmrecord component.- Returns:
- the value of the
algorithmrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-