Class AvailabilityRequest
public sealed class AvailabilityRequest : IMessage<AvailabilityRequest>, IEquatable<AvailabilityRequest>, IDeepCloneable<AvailabilityRequest>, IBufferMessage, IMessage
- Inheritance
-
AvailabilityRequest
- Implements
-
IMessage<AvailabilityRequest>IDeepCloneable<AvailabilityRequest>IBufferMessageIMessage
- Inherited Members
Constructors
AvailabilityRequest()
public AvailabilityRequest()
AvailabilityRequest(AvailabilityRequest)
public AvailabilityRequest(AvailabilityRequest other)
Parameters
otherAvailabilityRequest
Fields
JobFieldNumber
Field number for the "job" field.
public const int JobFieldNumber = 1
Field Value
ResumingFieldNumber
Field number for the "resuming" field.
public const int ResumingFieldNumber = 2
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Job
public Job Job { get; set; }
Property Value
Parser
public static MessageParser<AvailabilityRequest> Parser { get; }
Property Value
- MessageParser<AvailabilityRequest>
Resuming
True when the job was previously assigned to another worker but has been migrated due to different reasons (e.g. worker failure, job migration)
public bool Resuming { 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 AvailabilityRequest Clone()
Returns
- AvailabilityRequest
A deep clone of this object.
Equals(AvailabilityRequest)
public bool Equals(AvailabilityRequest other)
Parameters
otherAvailabilityRequest
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
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(AvailabilityRequest)
Merges the given message into this one.
public void MergeFrom(AvailabilityRequest other)
Parameters
otherAvailabilityRequest
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
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.