Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaSubject (v0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
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
defname()->::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=
defname=(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
defversions()->::Array<::String>
Returns
(::Array<::String>) — The versions of the subject.
#versions=
defversions=(value)->::Array<::String>
Parameter
value (::Array<::String>) — The versions of the subject.
Returns
(::Array<::String>) — The versions of the subject.
[[["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,["# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaSubject (v0.1.0)\n\nReference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaSubject.\n\nSubject defines the evolution scope of schemas as a holder of schema\nversions. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The name of the subject. Structured like:\n `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}`\n or\n `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`\n\n Subject name {subject} can contain the following:\n - Up to 255 UTF-8 bytes.\n - Allowed characters: letters (uppercase or lowercase), numbers, and the following special characters: `.`, `-`, `_`, `+`, `%`, and `~`.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n The name of the subject. Structured like:\n `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}`\n or\n `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`\n\n Subject name {subject} can contain the following:\n - Up to 255 UTF-8 bytes.\n- Allowed characters: letters (uppercase or lowercase), numbers, and the following special characters: `.`, `-`, `_`, `+`, `%`, and `~`. \n**Returns**\n\n- (::String) --- The name of the subject. Structured like:\n `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}`\n or\n `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`\n\n Subject name {subject} can contain the following:\n - Up to 255 UTF-8 bytes.\n - Allowed characters: letters (uppercase or lowercase), numbers, and the following special characters: `.`, `-`, `_`, `+`, `%`, and `~`.\n\n### #versions\n\n def versions() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- The versions of the subject.\n\n### #versions=\n\n def versions=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- The versions of the subject. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- The versions of the subject."]]