Class Span.TimeEvent.MessageEvent (2.21.0)

public static final class Span.TimeEvent.MessageEvent extends GeneratedMessageV3 implements Span.TimeEvent.MessageEventOrBuilder

An event describing a message sent/received between Spans.

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

Static Fields

COMPRESSED_SIZE_BYTES_FIELD_NUMBER

public static final int COMPRESSED_SIZE_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

UNCOMPRESSED_SIZE_BYTES_FIELD_NUMBER

public static final int UNCOMPRESSED_SIZE_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Span.TimeEvent.MessageEvent getDefaultInstance()
Returns
TypeDescription
Span.TimeEvent.MessageEvent

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Span.TimeEvent.MessageEvent.Builder newBuilder()
Returns
TypeDescription
Span.TimeEvent.MessageEvent.Builder

newBuilder(Span.TimeEvent.MessageEvent prototype)

public static Span.TimeEvent.MessageEvent.Builder newBuilder(Span.TimeEvent.MessageEvent prototype)
Parameter
NameDescription
prototypeSpan.TimeEvent.MessageEvent
Returns
TypeDescription
Span.TimeEvent.MessageEvent.Builder

parseDelimitedFrom(InputStream input)

public static Span.TimeEvent.MessageEvent parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Span.TimeEvent.MessageEvent
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvent.MessageEvent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvent.MessageEvent
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Span.TimeEvent.MessageEvent parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Span.TimeEvent.MessageEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvent.MessageEvent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvent.MessageEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Span.TimeEvent.MessageEvent parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Span.TimeEvent.MessageEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvent.MessageEvent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvent.MessageEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Span.TimeEvent.MessageEvent parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Span.TimeEvent.MessageEvent
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvent.MessageEvent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvent.MessageEvent
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Span.TimeEvent.MessageEvent parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Span.TimeEvent.MessageEvent
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvent.MessageEvent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvent.MessageEvent
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Span.TimeEvent.MessageEvent parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Span.TimeEvent.MessageEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Span.TimeEvent.MessageEvent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvent.MessageEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Span.TimeEvent.MessageEvent> parser()
Returns
TypeDescription
Parser<MessageEvent>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCompressedSizeBytes()

public long 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.

int64 compressed_size_bytes = 4;

Returns
TypeDescription
long

The compressedSizeBytes.

getDefaultInstanceForType()

public Span.TimeEvent.MessageEvent getDefaultInstanceForType()
Returns
TypeDescription
Span.TimeEvent.MessageEvent

getId()

public long getId()

An identifier for the MessageEvent's message that can be used to match SENT and RECEIVED MessageEvents.

int64 id = 2;

Returns
TypeDescription
long

The id.

getParserForType()

public Parser<Span.TimeEvent.MessageEvent> getParserForType()
Returns
TypeDescription
Parser<MessageEvent>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public Span.TimeEvent.MessageEvent.Type getType()

Type of MessageEvent. Indicates whether the message was sent or received.

.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type type = 1;

Returns
TypeDescription
Span.TimeEvent.MessageEvent.Type

The type.

getTypeValue()

public int getTypeValue()

Type of MessageEvent. Indicates whether the message was sent or received.

.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUncompressedSizeBytes()

public long getUncompressedSizeBytes()

The number of uncompressed bytes sent or received.

int64 uncompressed_size_bytes = 3;

Returns
TypeDescription
long

The uncompressedSizeBytes.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Span.TimeEvent.MessageEvent.Builder newBuilderForType()
Returns
TypeDescription
Span.TimeEvent.MessageEvent.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Span.TimeEvent.MessageEvent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Span.TimeEvent.MessageEvent.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Span.TimeEvent.MessageEvent.Builder toBuilder()
Returns
TypeDescription
Span.TimeEvent.MessageEvent.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException