Record Class KrabkaSchemaRegistryClient.FetchedSchema
java.lang.Object
java.lang.Record
io.krabka.streams.schema.KrabkaSchemaRegistryClient.FetchedSchema
- Record Components:
schema- the schema textmessageType- the Protobuf message full name, or null for other formatsreferences- the schemas this schema refers to, by name and subject version
- Enclosing class:
KrabkaSchemaRegistryClient
public static record KrabkaSchemaRegistryClient.FetchedSchema(String schema, String messageType, List<KrabkaSchemaRegistryClient.SchemaReference> references)
extends Record
A schema fetched by ID, with unresolved references.
-
Constructor Summary
ConstructorsConstructorDescriptionFetchedSchema(String schema, String messageType) Creates a fetched schema without references.FetchedSchema(String schema, String messageType, List<KrabkaSchemaRegistryClient.SchemaReference> references) Copies the reference list so the record is immutable. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageTyperecord component.Returns the value of thereferencesrecord component.schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FetchedSchema
public FetchedSchema(String schema, String messageType, List<KrabkaSchemaRegistryClient.SchemaReference> references) Copies the reference list so the record is immutable.- Parameters:
schema- the schema textmessageType- the Protobuf message full name, or null for other formatsreferences- the schemas this schema refers to
-
FetchedSchema
-
-
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). -
schema
-
messageType
Returns the value of themessageTyperecord component.- Returns:
- the value of the
messageTyperecord component
-
references
Returns the value of thereferencesrecord component.- Returns:
- the value of the
referencesrecord component
-