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 StyleGuide.

Represents a singleton style guide resource to be used for linting Open API
specs.

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

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the style guide. Format: `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide` |
| `↳ linter` | `int` Required. Target linter for the style guide. |
| `↳ contents` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.StyleGuideContents` Required. Input only. The contents of the uploaded style guide. |

### getName

Identifier. The name of the style guide.

Format:
`projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`

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

### setName

Identifier. The name of the style guide.

Format:
`projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`

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

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

### getLinter

Required. Target linter for the style guide.

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

### setLinter

Required. Target linter for the style guide.

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

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

### getContents

Required. Input only. The contents of the uploaded style guide.

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

### hasContents

### clearContents

### setContents

Required. Input only. The contents of the uploaded style guide.

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

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