Class PartitionRaw
Namespace: ArmoniK.Api.gRPC.V1.Partitions
Assembly: ArmoniK.Api.Common.dll
A raw partition object.
Used when a list or a single partition is returned.
public sealed class PartitionRaw : IMessage<PartitionRaw>, IEquatable<PartitionRaw>, IDeepCloneable<PartitionRaw>, IBufferMessage, IMessage
Inheritance
Implements
IMessage<PartitionRaw>, IEquatable<PartitionRaw>, IDeepCloneable<PartitionRaw>, IBufferMessage, IMessage
Inherited Members
object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object, object), object.ToString()
Constructors
PartitionRaw()
public PartitionRaw()
PartitionRaw(PartitionRaw)
public PartitionRaw(PartitionRaw other)
Parameters
other PartitionRaw
Fields
IdFieldNumber
Field number for the “id” field.
public const int IdFieldNumber = 1
Field Value
ParentPartitionIdsFieldNumber
Field number for the “parent_partition_ids” field.
public const int ParentPartitionIdsFieldNumber = 2
Field Value
PodConfigurationFieldNumber
Field number for the “pod_configuration” field.
public const int PodConfigurationFieldNumber = 7
Field Value
PodMaxFieldNumber
Field number for the “pod_max” field.
public const int PodMaxFieldNumber = 4
Field Value
PodReservedFieldNumber
Field number for the “pod_reserved” field.
public const int PodReservedFieldNumber = 3
Field Value
PreemptionPercentageFieldNumber
Field number for the “preemption_percentage” field.
public const int PreemptionPercentageFieldNumber = 5
Field Value
PriorityFieldNumber
Field number for the “priority” field.
public const int PriorityFieldNumber = 6
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
MessageDescriptor
Id
The partition ID.
public string Id { get; set; }
Property Value
ParentPartitionIds
The parent partition IDs.
public RepeatedField<string> ParentPartitionIds { get; }
Property Value
RepeatedField<string>
Parser
public static MessageParser<PartitionRaw> Parser { get; }
Property Value
MessageParser<PartitionRaw>
PodConfiguration
The pod configuration.
public MapField<string, string> PodConfiguration { get; }
Property Value
PodMax
The maximum number of pods that can be used by sessions using the partition.
public long PodMax { get; set; }
Property Value
PodReserved
Whether the partition is reserved for pods.
public long PodReserved { get; set; }
Property Value
PreemptionPercentage
The percentage of the partition that can be preempted.
public long PreemptionPercentage { get; set; }
Property Value
Priority
The priority of the partition.
public long Priority { 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 PartitionRaw Clone()
Returns
A deep clone of this object.
Equals(object)
public override bool Equals(object other)
Parameters
other object
Returns
Equals(PartitionRaw)
public bool Equals(PartitionRaw other)
Parameters
other PartitionRaw
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(PartitionRaw)
Merges the given message into this one.
public void MergeFrom(PartitionRaw other)
Parameters
other PartitionRaw
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.