Reference documentation and code samples for the Stackdriver Trace V2 Client class MessageEvent.
An event describing a message sent/received between Spans.
Generated from protobuf message google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent
Namespace
Google \ Cloud \ Trace \ V2 \ Span \ TimeEventMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
int
Type of MessageEvent. Indicates whether the message was sent or received. |
↳ id |
int|string
An identifier for the MessageEvent's message that can be used to match |
↳ uncompressed_size_bytes |
int|string
The number of uncompressed bytes sent or received. |
↳ compressed_size_bytes |
int|string
The number of compressed bytes sent or received. If missing, the compressed size is assumed to be the same size as the uncompressed size. |
getType
Type of MessageEvent. Indicates whether the message was sent or received.
Returns | |
---|---|
Type | Description |
int |
setType
Type of MessageEvent. Indicates whether the message was sent or received.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getId
An identifier for the MessageEvent's message that can be used to match
SENT
and RECEIVED
MessageEvents.
Returns | |
---|---|
Type | Description |
int|string |
setId
An identifier for the MessageEvent's message that can be used to match
SENT
and RECEIVED
MessageEvents.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getUncompressedSizeBytes
The number of uncompressed bytes sent or received.
Returns | |
---|---|
Type | Description |
int|string |
setUncompressedSizeBytes
The number of uncompressed bytes sent or received.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getCompressedSizeBytes
The number of compressed bytes sent or received. If missing, the compressed size is assumed to be the same size as the uncompressed size.
Returns | |
---|---|
Type | Description |
int|string |
setCompressedSizeBytes
The number of compressed bytes sent or received. If missing, the compressed size is assumed to be the same size as the uncompressed size.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |