# Google Cloud Managed Kafka Schema Registry V1 Client - Class CheckCompatibilityResponse (0.3.0)

0.3.0 (latest) 0.2.2 0.1.1 Reference documentation and code samples for the Google Cloud Managed Kafka Schema Registry V1 Client class CheckCompatibilityResponse.

Response for CheckCompatibility.

Generated from protobuf message `google.cloud.managedkafka.schemaregistry.v1.CheckCompatibilityResponse`

## Namespace

Google \\ Cloud \\ ManagedKafka \\ SchemaRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ is_compatible` | `bool` The compatibility check result. If true, the schema is compatible with the resource. |
| `↳ messages` | `string[]` Failure reasons if verbose = true. |

### getIsCompatible

The compatibility check result. If true, the schema is compatible with the
resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIsCompatible

The compatibility check result. If true, the schema is compatible with the
resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMessages

Failure reasons if verbose = true.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setMessages

Failure reasons if verbose = true.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |