Reference documentation and code samples for the Google Cloud Managed Kafka Schema Registry V1 Client class SchemaConfig.
SchemaConfig represents configuration for a schema registry or a specific subject.
Generated from protobuf message google.cloud.managedkafka.schemaregistry.v1.SchemaConfig
Namespace
Google \ Cloud \ ManagedKafka \ SchemaRegistry \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ compatibility
int
Required. The compatibility type of the schema. The default value is BACKWARD. If unset in a SchemaSubject-level SchemaConfig, defaults to the global value. If unset in a SchemaRegistry-level SchemaConfig, reverts to the default value.
↳ normalize
bool
Optional. If true, the schema will be normalized before being stored or looked up. The default is false. If unset in a SchemaSubject-level SchemaConfig, the global value will be used. If unset in a SchemaRegistry-level SchemaConfig, reverts to the default value.
↳ alias
string
Optional. The subject to which this subject is an alias of. Only applicable for subject config.
getCompatibility
Required. The compatibility type of the schema.
The default value is BACKWARD. If unset in a SchemaSubject-level SchemaConfig, defaults to the global value. If unset in a SchemaRegistry-level SchemaConfig, reverts to the default value.
int
hasCompatibility
clearCompatibility
setCompatibility
Required. The compatibility type of the schema.
The default value is BACKWARD. If unset in a SchemaSubject-level SchemaConfig, defaults to the global value. If unset in a SchemaRegistry-level SchemaConfig, reverts to the default value.
var
int
$this
getNormalize
Optional. If true, the schema will be normalized before being stored or looked up. The default is false. If unset in a SchemaSubject-level SchemaConfig, the global value will be used. If unset in a SchemaRegistry-level SchemaConfig, reverts to the default value.
bool
hasNormalize
clearNormalize
setNormalize
Optional. If true, the schema will be normalized before being stored or looked up. The default is false. If unset in a SchemaSubject-level SchemaConfig, the global value will be used. If unset in a SchemaRegistry-level SchemaConfig, reverts to the default value.
var
bool
$this
getAlias
Optional. The subject to which this subject is an alias of. Only applicable for subject config.
string
setAlias
Optional. The subject to which this subject is an alias of. Only applicable for subject config.
var
string
$this