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 message google.cloud.managedkafka.schemaregistry.v1.Context
Namespace
Google \ Cloud \ ManagedKafka \ SchemaRegistry \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Identifier. The name of the context. Structured like: |
↳ 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~.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSubjects
Optional. The subjects of the context.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setSubjects
Optional. The subjects of the context.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|