# Google Cloud Eventarc Publishing V1 Client - Class CloudEventAttributeValue (1.2.2)

1.2.2 (latest) 1.2.1 1.1.6 1.0.0 0.6.4 0.5.1 0.4.1 0.3.4 Reference documentation and code samples for the Google Cloud Eventarc Publishing V1 Client class CloudEventAttributeValue.

The following abstract data types are available for use in attributes.

Generated from protobuf message `google.cloud.eventarc.publishing.v1.CloudEvent.CloudEventAttributeValue`

## Namespace

Google \\ Cloud \\ Eventarc \\ Publishing \\ V1 \\ CloudEvent

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ce_boolean` | `bool` Boolean value. |
| `↳ ce_integer` | `int` Integer value. |
| `↳ ce_string` | `string` String value. |
| `↳ ce_bytes` | `string` Bytes value. |
| `↳ ce_uri` | `string` URI value. |
| `↳ ce_uri_ref` | `string` URI-reference value. |
| `↳ ce_timestamp` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Timestamp value. |

### getCeBoolean

Boolean value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasCeBoolean

### setCeBoolean

Boolean value.

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

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

### getCeInteger

Integer value.

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

### hasCeInteger

### setCeInteger

Integer value.

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

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

### getCeString

String value.

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

### hasCeString

### setCeString

String value.

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

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

### getCeBytes

Bytes value.

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

### hasCeBytes

### setCeBytes

Bytes value.

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

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

### getCeUri

URI value.

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

### hasCeUri

### setCeUri

URI value.

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

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

### getCeUriRef

URI-reference value.

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

### hasCeUriRef

### setCeUriRef

URI-reference value.

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

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

### getCeTimestamp

Timestamp value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCeTimestamp

### setCeTimestamp

Timestamp value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getAttr

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