# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::SchemaRegistry::V1::CreateVersionRequest (v0.5.0)

0.5.0 (latest) 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::SchemaRegistry::V1::CreateVersionRequest.

Request for CreateVersion.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #id

    def id() -> ::Integer

**Returns**

- (::Integer) --- 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.

### #id=

    def id=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- 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**

- (::Integer) --- 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.

### #normalize

    def normalize() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If true, the schema will be normalized before being stored. The default is false.

### #normalize=

    def normalize=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If true, the schema will be normalized before being stored. The default is false.
**Returns**

- (::Boolean) --- Optional. If true, the schema will be normalized before being stored. The default is false.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- 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}`

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- 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**

- (::String) --- 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}`

### #references

    def references() -> ::Array<::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaReference>

**Returns**

- (::Array\<[::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-schema_registry-v1/latest/Google-Cloud-ManagedKafka-SchemaRegistry-V1-Schema-SchemaReference)\>) --- Optional. The schema references used by the schema.

### #references=

    def references=(value) -> ::Array<::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaReference>

**Parameter**

- **value** (::Array\<[::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-schema_registry-v1/latest/Google-Cloud-ManagedKafka-SchemaRegistry-V1-Schema-SchemaReference)\>) --- Optional. The schema references used by the schema.
**Returns**

- (::Array\<[::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-schema_registry-v1/latest/Google-Cloud-ManagedKafka-SchemaRegistry-V1-Schema-SchemaReference)\>) --- Optional. The schema references used by the schema.

### #schema

    def schema() -> ::String

**Returns**

- (::String) --- Required. The schema payload

### #schema=

    def schema=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The schema payload
**Returns**

- (::String) --- Required. The schema payload

### #schema_type

    def schema_type() -> ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaType

**Returns**

- ([::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-schema_registry-v1/latest/Google-Cloud-ManagedKafka-SchemaRegistry-V1-Schema-SchemaType)) --- Optional. The type of the schema. It is optional. If not specified, the schema type will be AVRO.

### #schema_type=

    def schema_type=(value) -> ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaType

**Parameter**

- **value** ([::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-schema_registry-v1/latest/Google-Cloud-ManagedKafka-SchemaRegistry-V1-Schema-SchemaType)) --- Optional. The type of the schema. It is optional. If not specified, the schema type will be AVRO.
**Returns**

- ([::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-schema_registry-v1/latest/Google-Cloud-ManagedKafka-SchemaRegistry-V1-Schema-SchemaType)) --- Optional. The type of the schema. It is optional. If not specified, the schema type will be AVRO.

### #version

    def version() -> ::Integer

**Returns**

- (::Integer) --- 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.

### #version=

    def version=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- 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**

- (::Integer) --- 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.