Reference documentation and code samples for the Google Cloud Managed Kafka Schema Registry V1 Client class Context.
Context represents an independent schema grouping in a schema registry
instance.
Generated from protobuf messagegoogle.cloud.managedkafka.schemaregistry.v1.Context
Namespace
Google \ Cloud \ ManagedKafka \ SchemaRegistry \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
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
array
Optional. The subjects of the context.
getName
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
Type
Description
string
setName
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~.
[[["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 Context (0.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.1 (latest)](/php/docs/reference/cloud-managedkafka-schemaregistry/latest/V1.Context)\n- [0.1.0](/php/docs/reference/cloud-managedkafka-schemaregistry/0.1.0/V1.Context) \nReference documentation and code samples for the Google Cloud Managed Kafka Schema Registry V1 Client class Context.\n\nContext represents an independent schema grouping in a schema registry\ninstance.\n\nGenerated from protobuf message `google.cloud.managedkafka.schemaregistry.v1.Context`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ManagedKafka \\\\ SchemaRegistry \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nIdentifier. The name of the context. Structured like:\n`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}`\nThe context name {context} can contain the following:\n\n- Up to 255 characters.\n\n- Allowed characters: letters (uppercase or lowercase), numbers, and the\n following special characters: `.`, `-`, `_`, `+`, `%`, and `~`.\n\n### setName\n\nIdentifier. The name of the context. Structured like:\n`projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}`\nThe context name {context} can contain the following:\n\n- Up to 255 characters.\n\n- Allowed characters: letters (uppercase or lowercase), numbers, and the\n following special characters: `.`, `-`, `_`, `+`, `%`, and `~`.\n\n### getSubjects\n\nOptional. The subjects of the context.\n\n### setSubjects\n\nOptional. The subjects of the context."]]