Class SubmitTasksRequest
Namespace: ArmoniK.Api.gRPC.V1.Agent
Assembly: ArmoniK.Api.Common.dll
Request to create tasks.
public sealed class SubmitTasksRequest : IMessage<SubmitTasksRequest>, IEquatable<SubmitTasksRequest>, IDeepCloneable<SubmitTasksRequest>, IBufferMessage, IMessage
Inheritance
Implements
IMessage<SubmitTasksRequest>, IEquatable<SubmitTasksRequest>, IDeepCloneable<SubmitTasksRequest>, IBufferMessage, IMessage
Inherited Members
object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object, object), object.ToString()
Constructors
SubmitTasksRequest()
public SubmitTasksRequest()
SubmitTasksRequest(SubmitTasksRequest)
public SubmitTasksRequest(SubmitTasksRequest other)
Parameters
other SubmitTasksRequest
Fields
CommunicationTokenFieldNumber
Field number for the “communication_token” field.
public const int CommunicationTokenFieldNumber = 4
Field Value
SessionIdFieldNumber
Field number for the “session_id” field.
public const int SessionIdFieldNumber = 1
Field Value
TaskCreationsFieldNumber
Field number for the “task_creations” field.
public const int TaskCreationsFieldNumber = 3
Field Value
TaskOptionsFieldNumber
Field number for the “task_options” field.
public const int TaskOptionsFieldNumber = 2
Field Value
Properties
CommunicationToken
Communication token received by the worker during task processing
public string CommunicationToken { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
MessageDescriptor
Parser
public static MessageParser<SubmitTasksRequest> Parser { get; }
Property Value
MessageParser<SubmitTasksRequest>
SessionId
The session ID.
public string SessionId { get; set; }
Property Value
TaskCreations
Task creation requests.
public RepeatedField<SubmitTasksRequest.Types.TaskCreation> TaskCreations { get; }
Property Value
RepeatedField<SubmitTasksRequest.Types.TaskCreation>
TaskOptions
The options for the tasks. Each task will have the same. Options are merged with the one from the session.
public TaskOptions TaskOptions { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public SubmitTasksRequest Clone()
Returns
A deep clone of this object.
Equals(object)
public override bool Equals(object other)
Parameters
other object
Returns
Equals(SubmitTasksRequest)
public bool Equals(SubmitTasksRequest other)
Parameters
other SubmitTasksRequest
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(SubmitTasksRequest)
Merges the given message into this one.
public void MergeFrom(SubmitTasksRequest other)
Parameters
other SubmitTasksRequest
Remarks
See the user guide for precise merge semantics.
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.
ToString()
public override string ToString()
Returns
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.