# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaSubject (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::SchemaSubject.

Subject defines the evolution scope of schemas as a holder of schema
versions.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- The name of the subject. Structured like:
  `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}`
  or
  `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`

  Subject name {subject} can contain the following:
  - Up to 255 UTF-8 bytes.
  - Allowed characters: letters (uppercase or lowercase), numbers, and the following special characters: `.`, `-`, `_`, `+`, `%`, and `~`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) ---

  The name of the subject. Structured like:
  `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}`
  or
  `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`

  Subject name {subject} can contain the following:
  - Up to 255 UTF-8 bytes.
  - Allowed characters: letters (uppercase or lowercase), numbers, and the following special characters: `.`, `-`, `_`, `+`, `%`, and `~`.
**Returns**

- (::String) --- The name of the subject. Structured like:
  `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}`
  or
  `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`

  Subject name {subject} can contain the following:
  - Up to 255 UTF-8 bytes.
  - Allowed characters: letters (uppercase or lowercase), numbers, and the following special characters: `.`, `-`, `_`, `+`, `%`, and `~`.

### #versions

    def versions() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- The versions of the subject.

### #versions=

    def versions=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- The versions of the subject.
**Returns**

- (::Array\<::String\>) --- The versions of the subject.