Class AvailabilityReply

Namespace: ArmoniK.Api.gRPC.V1.Submitter
Assembly: ArmoniK.Api.Common.dll

public sealed class AvailabilityReply : IMessage<AvailabilityReply>, IEquatable<AvailabilityReply>, IDeepCloneable<AvailabilityReply>, IBufferMessage, IMessage

Inheritance

objectAvailabilityReply

Implements

IMessage<AvailabilityReply>, IEquatable<AvailabilityReply>, IDeepCloneable<AvailabilityReply>, IBufferMessage, IMessage

Inherited Members

object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object, object), object.ToString()

Constructors

AvailabilityReply()

public AvailabilityReply()

AvailabilityReply(AvailabilityReply)

public AvailabilityReply(AvailabilityReply other)

Parameters

other AvailabilityReply

Fields

ErrorFieldNumber

Field number for the “error” field.

public const int ErrorFieldNumber = 2

Field Value

int

NotCompletedTaskFieldNumber

Field number for the “not_completed_task” field.

public const int NotCompletedTaskFieldNumber = 3

Field Value

int

OkFieldNumber

Field number for the “ok” field.

public const int OkFieldNumber = 1

Field Value

int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Error

public TaskError Error { get; set; }

Property Value

TaskError

HasNotCompletedTask

Gets whether the “not_completed_task” field is set

public bool HasNotCompletedTask { get; }

Property Value

bool

NotCompletedTask

public string NotCompletedTask { get; set; }

Property Value

string

Ok

public Empty Ok { get; set; }

Property Value

Empty

Parser

public static MessageParser<AvailabilityReply> Parser { get; }

Property Value

MessageParser<AvailabilityReply>

TypeCase

public AvailabilityReply.TypeOneofCase TypeCase { get; }

Property Value

AvailabilityReply.TypeOneofCase

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.

ClearNotCompletedTask()

Clears the value of the oneof if it’s currently set to “not_completed_task”

public void ClearNotCompletedTask()

ClearType()

public void ClearType()

Clone()

Creates a deep clone of this object.

public AvailabilityReply Clone()

Returns

AvailabilityReply

A deep clone of this object.

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

Equals(AvailabilityReply)

public bool Equals(AvailabilityReply other)

Parameters

other AvailabilityReply

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(AvailabilityReply)

Merges the given message into this one.

public void MergeFrom(AvailabilityReply other)

Parameters

other AvailabilityReply

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

string

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.