# Stackdriver Trace V1 Client - Class ViewType (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 V1 Client class ViewType.

Type of data returned for traces in the list.

Protobuf type `google.devtools.cloudtrace.v1.ListTracesRequest.ViewType`

## Namespace

Google \\ Cloud \\ Trace \\ V1 \\ ListTracesRequest

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### VIEW_TYPE_UNSPECIFIED

    Value: 0

Default is `MINIMAL` if unspecified.

Generated from protobuf enum `VIEW_TYPE_UNSPECIFIED = 0;`

### MINIMAL

    Value: 1

Minimal view of the trace record that contains only the project
and trace IDs.

Generated from protobuf enum `MINIMAL = 1;`

### ROOTSPAN

    Value: 2

Root span view of the trace record that returns the root spans along
with the minimal trace data.

Generated from protobuf enum `ROOTSPAN = 2;`

### COMPLETE

    Value: 3

Complete view of the trace record that contains the actual trace data.

This is equivalent to calling the REST `get` or RPC `GetTrace` method
using the ID of each listed trace.

Generated from protobuf enum `COMPLETE = 3;`