# Stackdriver Trace V2 Client - Class Type (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 Type.

Indicates whether the message was sent or received.

Protobuf type `google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type`

## Namespace

Google \\ Cloud \\ Trace \\ V2 \\ Span \\ TimeEvent \\ MessageEvent

## Methods

### static::name

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

### static::value

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

## Constants

### TYPE_UNSPECIFIED

    Value: 0

Unknown event type.

Generated from protobuf enum `TYPE_UNSPECIFIED = 0;`

### SENT

    Value: 1

Indicates a sent message.

Generated from protobuf enum `SENT = 1;`

### RECEIVED

    Value: 2

Indicates a received message.

Generated from protobuf enum `RECEIVED = 2;`