Enum Class SchemaKind
- All Implemented Interfaces:
Serializable, Comparable<SchemaKind>, Constable
Schema formats supported by the registry client.
The kind is sent as the Confluent schemaType field when registering or
looking up a schema. Avro is the registry default and is therefore transmitted
without an explicit type name.
Example
int id = client.register("orders-value", SchemaKind.JSON, orderJsonSchema, null).join();
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaKindReturns the enum constant of this class with the specified name.static SchemaKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AVRO
An Apache Avro schema, the registry default format. -
PROTOBUF
A Protocol Buffers file descriptor rendered as.prototext. -
JSON
A JSON Schema document.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-