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.
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 SENT
and RECEIVED
MessageEvents.
↳ 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.
int
setType
Type of MessageEvent. Indicates whether the message was sent or received.
var
int
$this
getId
An identifier for the MessageEvent's message that can be used to match SENT
and RECEIVED
MessageEvents.
int|string
setId
An identifier for the MessageEvent's message that can be used to match SENT
and RECEIVED
MessageEvents.
var
int|string
$this
getUncompressedSizeBytes
The number of uncompressed bytes sent or received.
int|string
setUncompressedSizeBytes
The number of uncompressed bytes sent or received.
var
int|string
$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.
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.
var
int|string
$this