1.3.0 (latest) 1.2.3 1.1.4 1.0.5 0.4.5 0.3.2 0.2.2 0.1.6 Reference documentation and code samples for the Google Cloud BeyondCorp AppConnections V1 Client class Gateway.

Gateway represents a user facing component that serves as an entrance to
enable connectivity.

Generated from protobuf message `google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway`

## Namespace

Google \\ Cloud \\ BeyondCorp \\ AppConnections \\ V1 \\ AppConnection

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Required. The type of hosting used by the gateway. |
| `↳ uri` | `string` Output only. Server-defined URI for this resource. |
| `↳ ingress_port` | `int` Output only. Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443. |
| `↳ app_gateway` | `string` Required. AppGateway name in following format: `projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}` |
| `↳ l7psc` | `string` Output only. L7 private service connection for this resource. |

### getType

Required. The type of hosting used by the gateway.

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

### setType

Required. The type of hosting used by the gateway.

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

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

### getUri

Output only. Server-defined URI for this resource.

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

### setUri

Output only. Server-defined URI for this resource.

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

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

### getIngressPort

Output only. Ingress port reserved on the gateways for this
AppConnection, if not specified or zero, the default port is 19443.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setIngressPort

Output only. Ingress port reserved on the gateways for this
AppConnection, if not specified or zero, the default port is 19443.

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

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

### getAppGateway

Required. AppGateway name in following format:
`projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}`

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

### setAppGateway

Required. AppGateway name in following format:
`projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}`

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

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

### getL7Psc

Output only. L7 private service connection for this resource.

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

### setL7Psc

Output only. L7 private service connection for this resource.

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

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