Table of Contents

Class RequestIdInfo

Namespace
Temporalio.Api.Workflow.V1
Assembly
Temporalio.dll

RequestIdInfo contains details of a request ID.

public sealed class RequestIdInfo : IMessage<RequestIdInfo>, IEquatable<RequestIdInfo>, IDeepCloneable<RequestIdInfo>, IBufferMessage, IMessage
Inheritance
RequestIdInfo
Implements
IMessage<RequestIdInfo>
IDeepCloneable<RequestIdInfo>
IBufferMessage
IMessage
Inherited Members

Constructors

RequestIdInfo()

public RequestIdInfo()

RequestIdInfo(RequestIdInfo)

public RequestIdInfo(RequestIdInfo other)

Parameters

other RequestIdInfo

Fields

BufferedFieldNumber

Field number for the "buffered" field.

public const int BufferedFieldNumber = 3

Field Value

int

EventIdFieldNumber

Field number for the "event_id" field.

public const int EventIdFieldNumber = 2

Field Value

int

EventTypeFieldNumber

Field number for the "event_type" field.

public const int EventTypeFieldNumber = 1

Field Value

int

Properties

Buffered

Indicate if the request is still buffered. If so, the event ID is not known and its value will be an invalid event ID.

public bool Buffered { get; set; }

Property Value

bool

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

EventId

The event id of the history event generated by the request. It's possible the event ID is not known (unflushed buffered event). In this case, the value will be zero or a negative value, representing an invalid ID.

public long EventId { get; set; }

Property Value

long

EventType

The event type of the history event generated by the request.

public EventType EventType { get; set; }

Property Value

EventType

Parser

public static MessageParser<RequestIdInfo> Parser { get; }

Property Value

MessageParser<RequestIdInfo>

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.

Clone()

Creates a deep clone of this object.

public RequestIdInfo Clone()

Returns

RequestIdInfo

A deep clone of this object.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(RequestIdInfo)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(RequestIdInfo other)

Parameters

other RequestIdInfo

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

Remarks

See the user guide for precise merge semantics.

MergeFrom(RequestIdInfo)

Merges the given message into this one.

public void MergeFrom(RequestIdInfo other)

Parameters

other RequestIdInfo

Remarks

See the user guide for precise merge semantics.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

Coded output stream to write the data to. Must not be null.