Class EventMetric
public sealed class EventMetric : IMessage<EventMetric>, IEquatable<EventMetric>, IDeepCloneable<EventMetric>, IBufferMessage, IMessage
- Inheritance
-
EventMetric
- Implements
-
IMessage<EventMetric>IDeepCloneable<EventMetric>IBufferMessageIMessage
- Inherited Members
Constructors
EventMetric()
public EventMetric()
EventMetric(EventMetric)
public EventMetric(EventMetric other)
Parameters
otherEventMetric
Fields
EndTimestampMsFieldNumber
Field number for the "end_timestamp_ms" field.
public const int EndTimestampMsFieldNumber = 5
Field Value
LabelFieldNumber
Field number for the "label" field.
public const int LabelFieldNumber = 1
Field Value
MetadataFieldNumber
Field number for the "metadata" field.
public const int MetadataFieldNumber = 8
Field Value
NormalizedEndTimestampFieldNumber
Field number for the "normalized_end_timestamp" field.
public const int NormalizedEndTimestampFieldNumber = 7
Field Value
NormalizedStartTimestampFieldNumber
Field number for the "normalized_start_timestamp" field.
public const int NormalizedStartTimestampFieldNumber = 6
Field Value
ParticipantIdentityFieldNumber
Field number for the "participant_identity" field.
public const int ParticipantIdentityFieldNumber = 2
Field Value
RidFieldNumber
Field number for the "rid" field.
public const int RidFieldNumber = 9
Field Value
StartTimestampMsFieldNumber
Field number for the "start_timestamp_ms" field.
public const int StartTimestampMsFieldNumber = 4
Field Value
TrackSidFieldNumber
Field number for the "track_sid" field.
public const int TrackSidFieldNumber = 3
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
EndTimestampMs
end time of event based on a monotonic clock (in milliseconds), if needed
public long EndTimestampMs { get; set; }
Property Value
HasEndTimestampMs
Gets whether the "end_timestamp_ms" field is set
public bool HasEndTimestampMs { get; }
Property Value
Label
public uint Label { get; set; }
Property Value
Metadata
public string Metadata { get; set; }
Property Value
NormalizedEndTimestamp
public Timestamp NormalizedEndTimestamp { get; set; }
Property Value
- Timestamp
NormalizedStartTimestamp
public Timestamp NormalizedStartTimestamp { get; set; }
Property Value
- Timestamp
Parser
public static MessageParser<EventMetric> Parser { get; }
Property Value
- MessageParser<EventMetric>
ParticipantIdentity
index into str_data
public uint ParticipantIdentity { get; set; }
Property Value
Rid
index into 'str_data'
public uint Rid { get; set; }
Property Value
StartTimestampMs
start time of event based on a monotonic clock (in milliseconds)
public long StartTimestampMs { get; set; }
Property Value
TrackSid
index into str_data
public uint TrackSid { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearEndTimestampMs()
Clears the value of the "end_timestamp_ms" field
public void ClearEndTimestampMs()
Clone()
Creates a deep clone of this object.
public EventMetric Clone()
Returns
- EventMetric
A deep clone of this object.
Equals(EventMetric)
public bool Equals(EventMetric other)
Parameters
otherEventMetric
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(EventMetric)
Merges the given message into this one.
public void MergeFrom(EventMetric other)
Parameters
otherEventMetric
Remarks
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.