Package io.opencensus.trace
Class MessageEvent.Builder
java.lang.Object
io.opencensus.trace.MessageEvent.Builder
- Direct Known Subclasses:
AutoValue_MessageEvent.Builder
- Enclosing class:
MessageEvent
Builder class for
MessageEvent
.- Since:
- 0.12
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MessageEvent
build()
Builds and returns aMessageEvent
with the desired values.abstract MessageEvent.Builder
setCompressedMessageSize
(long compressedMessageSize) Sets the compressed message size.(package private) abstract MessageEvent.Builder
setMessageId
(long messageId) (package private) abstract MessageEvent.Builder
setType
(MessageEvent.Type type) abstract MessageEvent.Builder
setUncompressedMessageSize
(long uncompressedMessageSize) Sets the uncompressed message size.
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
setType
-
setMessageId
-
setUncompressedMessageSize
Sets the uncompressed message size.- Parameters:
uncompressedMessageSize
- represents the uncompressed size in bytes of this message.- Returns:
- this.
- Since:
- 0.12
-
setCompressedMessageSize
Sets the compressed message size.- Parameters:
compressedMessageSize
- represents the compressed size in bytes of this message.- Returns:
- this.
- Since:
- 0.12
-
build
Builds and returns aMessageEvent
with the desired values.- Returns:
- a
MessageEvent
with the desired values. - Since:
- 0.12
-