0.5.3 (latest) 0.4.4 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Api Hub V1 Client class OpenApiSpecDetails.

OpenApiSpecDetails contains the details parsed from an OpenAPI spec in
addition to the fields mentioned in
[SpecDetails](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.SpecDetails).

Generated from protobuf message `google.cloud.apihub.v1.OpenApiSpecDetails`

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ format` | `int` Output only. The format of the spec. |
| `↳ version` | `string` Output only. The version in the spec. This maps to `info.version` in OpenAPI spec. |
| `↳ owner` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Owner` Output only. Owner details for the spec. This maps to `info.contact` in OpenAPI spec. |

### getFormat

Output only. The format of the spec.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Format](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.OpenApiSpecDetails.Format). |

### setFormat

Output only. The format of the spec.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Format](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.OpenApiSpecDetails.Format). |

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

### getVersion

Output only. The version in the spec.

This maps to `info.version` in OpenAPI spec.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setVersion

Output only. The version in the spec.

This maps to `info.version` in OpenAPI spec.

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

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

### getOwner

Output only. Owner details for the spec.

This maps to `info.contact` in OpenAPI spec.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Owner|null` |   |

### hasOwner

### clearOwner

### setOwner

Output only. Owner details for the spec.

This maps to `info.contact` in OpenAPI spec.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Owner` |

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