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 messagegoogle.cloud.managedkafka.schemaregistry.v1.SchemaConfig
Namespace
Google \ Cloud \ ManagedKafka \ SchemaRegistry \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
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.
Returns
Type
Description
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.
Parameter
Name
Description
var
int
Returns
Type
Description
$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.
Returns
Type
Description
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.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getAlias
Optional. The subject to which this subject is an alias of. Only applicable
for subject config.
Returns
Type
Description
string
setAlias
Optional. The subject to which this subject is an alias of. Only applicable
for subject config.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Managed Kafka Schema Registry V1 Client - Class SchemaConfig (0.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.1 (latest)](/php/docs/reference/cloud-managedkafka-schemaregistry/latest/V1.SchemaConfig)\n- [0.1.0](/php/docs/reference/cloud-managedkafka-schemaregistry/0.1.0/V1.SchemaConfig) \nReference documentation and code samples for the Google Cloud Managed Kafka Schema Registry V1 Client class SchemaConfig.\n\nSchemaConfig represents configuration for a schema registry or a specific\nsubject.\n\nGenerated from protobuf message `google.cloud.managedkafka.schemaregistry.v1.SchemaConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ManagedKafka \\\\ SchemaRegistry \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCompatibility\n\nRequired. The compatibility type of the schema.\n\nThe default value is BACKWARD.\nIf unset in a SchemaSubject-level SchemaConfig, defaults to the global\nvalue. If unset in a SchemaRegistry-level SchemaConfig, reverts to the\ndefault value.\n\n### hasCompatibility\n\n### clearCompatibility\n\n### setCompatibility\n\nRequired. The compatibility type of the schema.\n\nThe default value is BACKWARD.\nIf unset in a SchemaSubject-level SchemaConfig, defaults to the global\nvalue. If unset in a SchemaRegistry-level SchemaConfig, reverts to the\ndefault value.\n\n### getNormalize\n\nOptional. If true, the schema will be normalized before being stored or\nlooked up. The default is false. If unset in a SchemaSubject-level\nSchemaConfig, the global value will be used. If unset in a\nSchemaRegistry-level SchemaConfig, reverts to the default value.\n\n### hasNormalize\n\n### clearNormalize\n\n### setNormalize\n\nOptional. If true, the schema will be normalized before being stored or\nlooked up. The default is false. If unset in a SchemaSubject-level\nSchemaConfig, the global value will be used. If unset in a\nSchemaRegistry-level SchemaConfig, reverts to the default value.\n\n### getAlias\n\nOptional. The subject to which this subject is an alias of. Only applicable\nfor subject config.\n\n### setAlias\n\nOptional. The subject to which this subject is an alias of. Only applicable\nfor subject config."]]