# Google Cloud Security Command Center V1 Client - Class CloudLoggingEntry (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class CloudLoggingEntry.

Metadata taken from a [Cloud Logging
LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)

Generated from protobuf message `google.cloud.securitycenter.v1.CloudLoggingEntry`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ insert_id` | `string` A unique identifier for the log entry. |
| `↳ log_id` | `string` The type of the log (part of `log_name`. `log_name` is the resource name of the log to which this log entry belongs). For example: `cloudresourcemanager.googleapis.com/activity`. Note that this field is not URL-encoded, unlike the `LOG_ID` field in `LogEntry`. |
| `↳ resource_container` | `string` The organization, folder, or project of the monitored resource that produced this log entry. |
| `↳ timestamp` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time the event described by the log entry occurred. |

### getInsertId

A unique identifier for the log entry.

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

### setInsertId

A unique identifier for the log entry.

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

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

### getLogId

The type of the log (part of `log_name`. `log_name` is the resource name of
the log to which this log entry belongs). For example:
`cloudresourcemanager.googleapis.com/activity`. Note that this field is not
URL-encoded, unlike the `LOG_ID` field in `LogEntry`.

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

### setLogId

The type of the log (part of `log_name`. `log_name` is the resource name of
the log to which this log entry belongs). For example:
`cloudresourcemanager.googleapis.com/activity`. Note that this field is not
URL-encoded, unlike the `LOG_ID` field in `LogEntry`.

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

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

### getResourceContainer

The organization, folder, or project of the monitored resource that
produced this log entry.

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

### setResourceContainer

The organization, folder, or project of the monitored resource that
produced this log entry.

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

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

### getTimestamp

The time the event described by the log entry occurred.

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

### hasTimestamp

### clearTimestamp

### setTimestamp

The time the event described by the log entry occurred.

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

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