# Google API Common Protos Client - Class Page (4.14.0)

4.14.0 (latest) 4.13.0 4.12.5 4.11.0 4.10.0 4.9.0 4.8.3 Reference documentation and code samples for the Google API Common Protos Client class Page.

Represents a documentation page. A page can contain subpages to represent
nested documentation set structure.

Generated from protobuf message `google.api.Page`

## Namespace

Google \\ Api

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the page. It will be used as an identity of the page to generate URI of the page, text of the link to this page in navigation, etc. The full page name (start from the root page name to this page concatenated with `.`) can be used as reference to the page in your documentation. For example: pages: - name: Tutorial content: (== include tutorial.md ==) subpages: - name: Java content: (== include tutorial_java.md ==) You can reference `Java` page using Markdown reference link syntax: `<xref uid="\\Tutorial\Java">Java</xref>`. <br /> |
| `↳ content` | `string` The Markdown content of the page. You can use `(== include {path} ==)` to include content from a Markdown file. The content can be used to produce the documentation page such as HTML format page. |
| `↳ subpages` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Page>` Subpages of this page. The order of subpages specified here will be honored in the generated docset. |

### getName

The name of the page. It will be used as an identity of the page to
generate URI of the page, text of the link to this page in navigation,
etc. The full page name (start from the root page name to this page
concatenated with `.`) can be used as reference to the page in your
documentation. For example:

    pages:
    - name: Tutorial
      content: (== include tutorial.md ==)
      subpages:
      - name: Java
        content: (== include tutorial_java.md ==)

You can reference `Java` page using Markdown reference link syntax:
`<xref uid="\\Tutorial\Java">Java</xref>`.

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

### setName

The name of the page. It will be used as an identity of the page to
generate URI of the page, text of the link to this page in navigation,
etc. The full page name (start from the root page name to this page
concatenated with `.`) can be used as reference to the page in your
documentation. For example:

    pages:
    - name: Tutorial
      content: (== include tutorial.md ==)
      subpages:
      - name: Java
        content: (== include tutorial_java.md ==)

You can reference `Java` page using Markdown reference link syntax:
`<xref uid="\\Tutorial\Java">Java</xref>`.

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

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

### getContent

The Markdown content of the page. You can use `(== include {path}
==)` to include content from a Markdown file. The content can be used
to produce the documentation page such as HTML format page.

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

### setContent

The Markdown content of the page. You can use `(== include {path}
==)` to include content from a Markdown file. The content can be used
to produce the documentation page such as HTML format page.

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

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

### getSubpages

Subpages of this page. The order of subpages specified here will be
honored in the generated docset.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Page>` |   |

### setSubpages

Subpages of this page. The order of subpages specified here will be
honored in the generated docset.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Page>` |

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