# Stackdriver Logging V2 Client - Class TailLogEntriesResponse (2.1.0)

2.1.0 (latest) 2.0.0 1.34.5 1.33.0 1.32.3 1.31.3 1.30.3 1.29.0 1.28.5 1.27.1 1.26.0 1.25.5 1.24.10 Reference documentation and code samples for the Stackdriver Logging V2 Client class TailLogEntriesResponse.

Result returned from `TailLogEntries`.

Generated from protobuf message `google.logging.v2.TailLogEntriesResponse`

## Namespace

Google \\ Cloud \\ Logging \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ entries` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/V2.LogEntry>` A list of log entries. Each response in the stream will order entries with increasing values of `LogEntry.timestamp`. Ordering is not guaranteed between separate responses. |
| `↳ suppression_info` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/V2.TailLogEntriesResponse.SuppressionInfo>` If entries that otherwise would have been included in the session were not sent back to the client, counts of relevant entries omitted from the session with the reason that they were not included. There will be at most one of each reason per response. The counts represent the number of suppressed entries since the last streamed response. |

### getEntries

A list of log entries. Each response in the stream will order entries with
increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
between separate responses.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/V2.LogEntry>` |   |

### setEntries

A list of log entries. Each response in the stream will order entries with
increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
between separate responses.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/V2.LogEntry>` |

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

### getSuppressionInfo

If entries that otherwise would have been included in the session were not
sent back to the client, counts of relevant entries omitted from the
session with the reason that they were not included. There will be at most
one of each reason per response. The counts represent the number of
suppressed entries since the last streamed response.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/V2.TailLogEntriesResponse.SuppressionInfo>` |   |

### setSuppressionInfo

If entries that otherwise would have been included in the session were not
sent back to the client, counts of relevant entries omitted from the
session with the reason that they were not included. There will be at most
one of each reason per response. The counts represent the number of
suppressed entries since the last streamed response.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/V2.TailLogEntriesResponse.SuppressionInfo>` |

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