Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::SchemaRegistry::V1::Context (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::Context.
Context represents an independent schema grouping in a schema registry
instance.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#name
defname()->::String
Returns
(::String) —
Identifier. The name of the context. Structured like:
projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}
The context name {context} can contain the following:
Up to 255 characters.
Allowed characters: letters (uppercase or lowercase), numbers, and the
following special characters: ., -, _, +, %, and ~.
#name=
defname=(value)->::String
Parameter
value (::String) —
Identifier. The name of the context. Structured like:
projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}
The context name {context} can contain the following:
Up to 255 characters.
Allowed characters: letters (uppercase or lowercase), numbers, and the
following special characters: ., -, _, +, %, and ~.
Returns
(::String) —
Identifier. The name of the context. Structured like:
projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}
The context name {context} can contain the following:
Up to 255 characters.
Allowed characters: letters (uppercase or lowercase), numbers, and the
following special characters: ., -, _, +, %, and ~.
#subjects
defsubjects()->::Array<::String>
Returns
(::Array<::String>) — Optional. The subjects of the context.
#subjects=
defsubjects=(value)->::Array<::String>
Parameter
value (::Array<::String>) — Optional. The subjects of the context.
Returns
(::Array<::String>) — Optional. The subjects of the context.
[[["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::Context (v0.1.0)\n\nReference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::SchemaRegistry::V1::Context.\n\nContext represents an independent schema grouping in a schema registry\ninstance. \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) --- Identifier. The name of the context. Structured like:\n `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}`\n The context name {context} can contain the following:\n\n - Up to 255 characters.\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 Identifier. The name of the context. Structured like:\n `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}`\n The context name {context} can contain the following:\n - Up to 255 characters.\n- Allowed characters: letters (uppercase or lowercase), numbers, and the following special characters: `.`, `-`, `_`, `+`, `%`, and `~`. \n**Returns**\n\n- (::String) --- Identifier. The name of the context. Structured like:\n `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}`\n The context name {context} can contain the following:\n\n - Up to 255 characters.\n - Allowed characters: letters (uppercase or lowercase), numbers, and the following special characters: `.`, `-`, `_`, `+`, `%`, and `~`.\n\n### #subjects\n\n def subjects() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Optional. The subjects of the context.\n\n### #subjects=\n\n def subjects=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- Optional. The subjects of the context. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Optional. The subjects of the context."]]