# Google Cloud Eventarc V1 Client - Class HttpEndpoint (2.3.1)

2.3.1 (latest) 2.3.0 2.2.1 2.1.5 2.0.1 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Eventarc V1 Client class HttpEndpoint.

Represents a HTTP endpoint destination.

Generated from protobuf message `google.cloud.eventarc.v1.HttpEndpoint`

## Namespace

Google \\ Cloud \\ Eventarc \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ uri` | `string` Required. The URI of the HTTP endpoint. The value must be a RFC2396 URI string. Examples: `http://10.10.10.8:80/route`, `http://svc.us-central1.p.local:8080/`. Only HTTP and HTTPS protocols are supported. The host can be either a static IP addressable from the VPC specified by the network config, or an internal DNS hostname of the service resolvable via Cloud DNS. |

### getUri

Required. The URI of the HTTP endpoint.

The value must be a RFC2396 URI string.
Examples: `http://10.10.10.8:80/route`,
`http://svc.us-central1.p.local:8080/`.
Only HTTP and HTTPS protocols are supported. The host can be either a
static IP addressable from the VPC specified by the network config, or
an internal DNS hostname of the service resolvable via Cloud DNS.

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

### setUri

Required. The URI of the HTTP endpoint.

The value must be a RFC2396 URI string.
Examples: `http://10.10.10.8:80/route`,
`http://svc.us-central1.p.local:8080/`.
Only HTTP and HTTPS protocols are supported. The host can be either a
static IP addressable from the VPC specified by the network config, or
an internal DNS hostname of the service resolvable via Cloud DNS.

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

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