Reference documentation and code samples for the Google Cloud Managed Kafka Schema Registry V1 Client class SchemaMode.
SchemaMode represents the mode of a schema registry or a specific subject.
Four modes are supported:
NONE: deprecated. This was the default mode for a subject, but now the
default is unset (which means use the global schema registry setting)
READONLY: The schema registry is in read-only mode.
READWRITE: The schema registry is in read-write mode, which allows limited
write operations on the schema.
IMPORT: The schema registry is in import mode, which allows more editing
operations on the schema for data importing purposes.
Generated from protobuf messagegoogle.cloud.managedkafka.schemaregistry.v1.SchemaMode
Namespace
Google \ Cloud \ ManagedKafka \ SchemaRegistry \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ mode
int
Required. The mode type of a schema registry (READWRITE by default) or of a subject (unset by default, which means use the global schema registry setting).
getMode
Required. The mode type of a schema registry (READWRITE by default) or of a
subject (unset by default, which means use the global schema registry
setting).
Returns
Type
Description
int
setMode
Required. The mode type of a schema registry (READWRITE by default) or of a
subject (unset by default, which means use the global schema registry
setting).
[[["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 SchemaMode (0.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.1 (latest)](/php/docs/reference/cloud-managedkafka-schemaregistry/latest/V1.SchemaMode)\n- [0.1.0](/php/docs/reference/cloud-managedkafka-schemaregistry/0.1.0/V1.SchemaMode) \nReference documentation and code samples for the Google Cloud Managed Kafka Schema Registry V1 Client class SchemaMode.\n\nSchemaMode represents the mode of a schema registry or a specific subject.\n\nFour modes are supported:\n\n- NONE: deprecated. This was the default mode for a subject, but now the default is unset (which means use the global schema registry setting)\n- READONLY: The schema registry is in read-only mode.\n- READWRITE: The schema registry is in read-write mode, which allows limited write operations on the schema.\n- IMPORT: The schema registry is in import mode, which allows more editing operations on the schema for data importing purposes.\n\nGenerated from protobuf message `google.cloud.managedkafka.schemaregistry.v1.SchemaMode`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ManagedKafka \\\\ SchemaRegistry \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getMode\n\nRequired. The mode type of a schema registry (READWRITE by default) or of a\nsubject (unset by default, which means use the global schema registry\nsetting).\n\n### setMode\n\nRequired. The mode type of a schema registry (READWRITE by default) or of a\nsubject (unset by default, which means use the global schema registry\nsetting)."]]