# Google Cloud Support V2beta Client - Class EmailMessage (1.6.0)

1.6.0 (latest) 1.5.0 1.4.2 1.3.0 1.2.1 1.1.0 1.0.3 0.2.5 0.1.2

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Support V2beta Client class EmailMessage.

An email associated with a support case.

Generated from protobuf message `google.cloud.support.v2beta.EmailMessage`

## Namespace

Google \\ Cloud \\ Support \\ V2beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. Resource name for the email message. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when this email message object was created. |
| `↳ actor` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Actor` Output only. The user or Google Support agent that created this email message. This is inferred from the headers on the email message. |
| `↳ subject` | `string` Output only. Subject of the email. |
| `↳ recipient_email_addresses` | `string[]` Output only. Email addresses the email was sent to. |
| `↳ cc_email_addresses` | `string[]` Output only. Email addresses CCed on the email. |
| `↳ body_content` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.TextContent` Output only. The full email message body. A best-effort attempt is made to remove extraneous reply threads. |

### getName

Identifier. Resource name for the email message.

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

### setName

Identifier. Resource name for the email message.

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

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

### getCreateTime

Output only. Time when this email message object was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Time when this email message object was created.

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

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

### getActor

Output only. The user or Google Support agent that created this email
message. This is inferred from the headers on the email message.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Actor|null` |   |

### hasActor

### clearActor

### setActor

Output only. The user or Google Support agent that created this email
message. This is inferred from the headers on the email message.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Actor` |

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

### getSubject

Output only. Subject of the email.

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

### setSubject

Output only. Subject of the email.

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

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

### getRecipientEmailAddresses

Output only. Email addresses the email was sent to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setRecipientEmailAddresses

Output only. Email addresses the email was sent to.

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

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

### getCcEmailAddresses

Output only. Email addresses CCed on the email.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setCcEmailAddresses

Output only. Email addresses CCed on the email.

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

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

### getBodyContent

Output only. The full email message body. A best-effort attempt is made to
remove extraneous reply threads.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.TextContent|null` |   |

### hasBodyContent

### clearBodyContent

### setBodyContent

Output only. The full email message body. A best-effort attempt is made to
remove extraneous reply threads.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.TextContent` |

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