Reference documentation and code samples for the Google Cloud Managed Kafka Schema Registry V1 Client class CreateVersionRequest.
Request for CreateVersion.
Generated from protobuf message google.cloud.managedkafka.schemaregistry.v1.CreateVersionRequest
Namespace
Google \ Cloud \ ManagedKafka \ SchemaRegistry \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The subject to create the version for. Structured like: |
↳ version |
int
Optional. The version to create. It is optional. If not specified, the version will be created with the max version ID of the subject increased by 1. If the version ID is specified, it will be used as the new version ID and must not be used by an existing version of the subject. |
↳ id |
int
Optional. The schema ID of the schema. If not specified, the schema ID will be generated by the server. If the schema ID is specified, it must not be used by an existing schema that is different from the schema to be created. |
↳ schema_type |
int
Optional. The type of the schema. It is optional. If not specified, the schema type will be AVRO. |
↳ schema |
string
Required. The schema payload |
↳ references |
array<Schema\SchemaReference>
Optional. The schema references used by the schema. |
↳ normalize |
bool
Optional. If true, the schema will be normalized before being stored. The default is false. |
getParent
Required. The subject to create the version for. Structured like:
projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}
or
projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}
Returns | |
---|---|
Type | Description |
string |
setParent
Required. The subject to create the version for. Structured like:
projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}
or
projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getVersion
Optional. The version to create. It is optional. If not specified, the version will be created with the max version ID of the subject increased by 1. If the version ID is specified, it will be used as the new version ID and must not be used by an existing version of the subject.
Returns | |
---|---|
Type | Description |
int |
hasVersion
clearVersion
setVersion
Optional. The version to create. It is optional. If not specified, the version will be created with the max version ID of the subject increased by 1. If the version ID is specified, it will be used as the new version ID and must not be used by an existing version of the subject.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getId
Optional. The schema ID of the schema. If not specified, the schema ID will be generated by the server. If the schema ID is specified, it must not be used by an existing schema that is different from the schema to be created.
Returns | |
---|---|
Type | Description |
int |
hasId
clearId
setId
Optional. The schema ID of the schema. If not specified, the schema ID will be generated by the server. If the schema ID is specified, it must not be used by an existing schema that is different from the schema to be created.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getSchemaType
Optional. The type of the schema. It is optional. If not specified, the schema type will be AVRO.
Returns | |
---|---|
Type | Description |
int |
hasSchemaType
clearSchemaType
setSchemaType
Optional. The type of the schema. It is optional. If not specified, the schema type will be AVRO.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getSchema
Required. The schema payload
Returns | |
---|---|
Type | Description |
string |
setSchema
Required. The schema payload
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getReferences
Optional. The schema references used by the schema.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setReferences
Optional. The schema references used by the schema.
Parameter | |
---|---|
Name | Description |
var |
array<Schema\SchemaReference>
|
Returns | |
---|---|
Type | Description |
$this |
getNormalize
Optional. If true, the schema will be normalized before being stored. The default is false.
Returns | |
---|---|
Type | Description |
bool |
hasNormalize
clearNormalize
setNormalize
Optional. If true, the schema will be normalized before being stored. The default is false.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameters | |
---|---|
Name | Description |
parent |
string
Required. The subject to create the version for. Structured like:
|
version |
int
Optional. The version to create. It is optional. If not specified, the version will be created with the max version ID of the subject increased by 1. If the version ID is specified, it will be used as the new version ID and must not be used by an existing version of the subject. |
id |
int
Optional. The schema ID of the schema. If not specified, the schema ID will be generated by the server. If the schema ID is specified, it must not be used by an existing schema that is different from the schema to be created. |
schemaType |
int
Optional. The type of the schema. It is optional. If not specified, the schema type will be AVRO. For allowed values, use constants defined on Schema\SchemaType |
schema |
string
Required. The schema payload |
references |
array<Schema\SchemaReference>
Optional. The schema references used by the schema. |
normalize |
bool
Optional. If true, the schema will be normalized before being stored. The default is false. |
Returns | |
---|---|
Type | Description |
CreateVersionRequest |