# Stackdriver Trace V2 Client - Class StackFrames (2.0.0)

2.0.0 (latest) 2.0.0-RC1 1.9.5 1.8.10 1.7.0 1.6.5 1.5.3 1.4.11 Reference documentation and code samples for the Stackdriver Trace V2 Client class StackFrames.

A collection of stack frames, which can be truncated.

Generated from protobuf message `google.devtools.cloudtrace.v2.StackTrace.StackFrames`

## Namespace

Google \\ Cloud \\ Trace \\ V2 \\ StackTrace

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ frame` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-trace/latest/V2.StackTrace.StackFrame>` Stack frames in this call stack. |
| `↳ dropped_frames_count` | `int` The number of stack frames that were dropped because there were too many stack frames. If this value is 0, then no stack frames were dropped. |

### getFrame

Stack frames in this call stack.

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

### setFrame

Stack frames in this call stack.

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

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

### getDroppedFramesCount

The number of stack frames that were dropped because there
were too many stack frames.

If this value is 0, then no stack frames were dropped.

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

### setDroppedFramesCount

The number of stack frames that were dropped because there
were too many stack frames.

If this value is 0, then no stack frames were dropped.

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

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