# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode (v0.5.0)

0.5.0 (latest) 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::SchemaRegistry::V1::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #mode

    def mode() -> ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode::ModeType

**Returns**

- ([::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode::ModeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-schema_registry-v1/latest/Google-Cloud-ManagedKafka-SchemaRegistry-V1-SchemaMode-ModeType)) --- 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).

### #mode=

    def mode=(value) -> ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode::ModeType

**Parameter**

- **value** ([::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode::ModeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-schema_registry-v1/latest/Google-Cloud-ManagedKafka-SchemaRegistry-V1-SchemaMode-ModeType)) --- 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**

- ([::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode::ModeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-schema_registry-v1/latest/Google-Cloud-ManagedKafka-SchemaRegistry-V1-SchemaMode-ModeType)) --- 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).