Table of Contents

Class InvokeWorkerCommandRequest

Namespace
Virtufin.WorkManager.Protos
Assembly
Virtufin.WorkManager.Protos.dll
public sealed class InvokeWorkerCommandRequest : IMessage<InvokeWorkerCommandRequest>, IEquatable<InvokeWorkerCommandRequest>, IDeepCloneable<InvokeWorkerCommandRequest>, IBufferMessage, IMessage
Inheritance
InvokeWorkerCommandRequest
Implements
IBufferMessage
IMessage
Inherited Members

Constructors

InvokeWorkerCommandRequest()

public InvokeWorkerCommandRequest()

InvokeWorkerCommandRequest(InvokeWorkerCommandRequest)

public InvokeWorkerCommandRequest(InvokeWorkerCommandRequest other)

Parameters

other InvokeWorkerCommandRequest

Fields

AttributesFieldNumber

Field number for the "attributes" field.

public const int AttributesFieldNumber = 5

Field Value

int

CommandFieldNumber

Field number for the "command" field.

public const int CommandFieldNumber = 2

Field Value

int

ContentTypeFieldNumber

Field number for the "content_type" field.

public const int ContentTypeFieldNumber = 4

Field Value

int

IdFieldNumber

Field number for the "id" field.

public const int IdFieldNumber = 1

Field Value

int

PayloadFieldNumber

Field number for the "payload" field.

public const int PayloadFieldNumber = 3

Field Value

int

TimeoutMsFieldNumber

Field number for the "timeout_ms" field.

public const int TimeoutMsFieldNumber = 6

Field Value

int

Properties

Attributes

Further extension attributes of the command event (string-valued).

public MapField<string, string> Attributes { get; }

Property Value

MapField<string, string>

Command

The command name; the worker reads it from the event's command extension.

public string Command { get; set; }

Property Value

string

ContentType

public string ContentType { get; set; }

Property Value

string

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Id

public string Id { get; set; }

Property Value

string

Parser

public static MessageParser<InvokeWorkerCommandRequest> Parser { get; }

Property Value

MessageParser<InvokeWorkerCommandRequest>

Payload

The event's data (default none) and its content type (default application/json).

public ByteString Payload { get; set; }

Property Value

ByteString

TimeoutMs

How long the worker may take; 0 = the WorkManager's default (30 s).

public uint TimeoutMs { get; set; }

Property Value

uint

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 InvokeWorkerCommandRequest Clone()

Returns

InvokeWorkerCommandRequest

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(InvokeWorkerCommandRequest)

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

public bool Equals(InvokeWorkerCommandRequest other)

Parameters

other InvokeWorkerCommandRequest

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(InvokeWorkerCommandRequest)

Merges the given message into this one.

public void MergeFrom(InvokeWorkerCommandRequest other)

Parameters

other InvokeWorkerCommandRequest

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.