Reference documentation and code samples for the Google Cloud Managed Kafka Schema Registry V1 Client class CreateSchemaRegistryRequest.
Request to create a schema registry instance.
Generated from protobuf message google.cloud.managedkafka.schemaregistry.v1.CreateSchemaRegistryRequest
Namespace
Google \ Cloud \ ManagedKafka \ SchemaRegistry \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The parent whose schema registry instance is to be created. Structured like: |
↳ schema_registry_id |
string
Required. The schema registry instance ID to use for this schema registry. The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores (-). The maximum length is 63 characters. The ID must not start with a number. |
↳ schema_registry |
SchemaRegistry
Required. The schema registry instance to create. The name field is ignored. |
getParent
Required. The parent whose schema registry instance is to be created.
Structured like: projects/{project}/locations/{location}
Returns | |
---|---|
Type | Description |
string |
setParent
Required. The parent whose schema registry instance is to be created.
Structured like: projects/{project}/locations/{location}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSchemaRegistryId
Required. The schema registry instance ID to use for this schema registry.
The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores (-). The maximum length is 63 characters. The ID must not start with a number.
Returns | |
---|---|
Type | Description |
string |
setSchemaRegistryId
Required. The schema registry instance ID to use for this schema registry.
The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores (-). The maximum length is 63 characters. The ID must not start with a number.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSchemaRegistry
Required. The schema registry instance to create.
The name field is ignored.
Returns | |
---|---|
Type | Description |
SchemaRegistry|null |
hasSchemaRegistry
clearSchemaRegistry
setSchemaRegistry
Required. The schema registry instance to create.
The name field is ignored.
Parameter | |
---|---|
Name | Description |
var |
SchemaRegistry
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameters | |
---|---|
Name | Description |
parent |
string
Required. The parent whose schema registry instance is to be created.
Structured like: |
schemaRegistry |
SchemaRegistry
Required. The schema registry instance to create. The name field is ignored. |
Returns | |
---|---|
Type | Description |
CreateSchemaRegistryRequest |