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
-
IMessage<InvokeWorkerCommandRequest>IDeepCloneable<InvokeWorkerCommandRequest>IBufferMessageIMessage
- Inherited Members
Constructors
InvokeWorkerCommandRequest()
public InvokeWorkerCommandRequest()
InvokeWorkerCommandRequest(InvokeWorkerCommandRequest)
public InvokeWorkerCommandRequest(InvokeWorkerCommandRequest other)
Parameters
Fields
AttributesFieldNumber
Field number for the "attributes" field.
public const int AttributesFieldNumber = 5
Field Value
CommandFieldNumber
Field number for the "command" field.
public const int CommandFieldNumber = 2
Field Value
ContentTypeFieldNumber
Field number for the "content_type" field.
public const int ContentTypeFieldNumber = 4
Field Value
IdFieldNumber
Field number for the "id" field.
public const int IdFieldNumber = 1
Field Value
PayloadFieldNumber
Field number for the "payload" field.
public const int PayloadFieldNumber = 3
Field Value
TimeoutMsFieldNumber
Field number for the "timeout_ms" field.
public const int TimeoutMsFieldNumber = 6
Field Value
Properties
Attributes
Further extension attributes of the command event (string-valued).
public MapField<string, string> Attributes { get; }
Property Value
Command
The command name; the worker reads it from the event's command extension.
public string Command { get; set; }
Property Value
ContentType
public string ContentType { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Id
public string Id { get; set; }
Property Value
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
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
otherobject
Returns
Equals(InvokeWorkerCommandRequest)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(InvokeWorkerCommandRequest other)
Parameters
otherInvokeWorkerCommandRequestAn object to compare with this object.
Returns
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
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(InvokeWorkerCommandRequest)
Merges the given message into this one.
public void MergeFrom(InvokeWorkerCommandRequest other)
Parameters
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
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.