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

objectPartitionRaw

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

int

ParentPartitionIdsFieldNumber

Field number for the “parent_partition_ids” field.

public const int ParentPartitionIdsFieldNumber = 2

Field Value

int

PodConfigurationFieldNumber

Field number for the “pod_configuration” field.

public const int PodConfigurationFieldNumber = 7

Field Value

int

PodMaxFieldNumber

Field number for the “pod_max” field.

public const int PodMaxFieldNumber = 4

Field Value

int

PodReservedFieldNumber

Field number for the “pod_reserved” field.

public const int PodReservedFieldNumber = 3

Field Value

int

PreemptionPercentageFieldNumber

Field number for the “preemption_percentage” field.

public const int PreemptionPercentageFieldNumber = 5

Field Value

int

PriorityFieldNumber

Field number for the “priority” field.

public const int PriorityFieldNumber = 6

Field Value

int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Id

  • The partition ID.

public string Id { get; set; }

Property Value

string

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

MapField<string, string>

PodMax

  • The maximum number of pods that can be used by sessions using the partition.

public long PodMax { get; set; }

Property Value

long

PodReserved

  • Whether the partition is reserved for pods.

public long PodReserved { get; set; }

Property Value

long

PreemptionPercentage

  • The percentage of the partition that can be preempted.

public long PreemptionPercentage { get; set; }

Property Value

long

Priority

  • The priority of the partition.

public long Priority { get; set; }

Property Value

long

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 PartitionRaw Clone()

Returns

PartitionRaw

A deep clone of this object.

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

Equals(PartitionRaw)

public bool Equals(PartitionRaw other)

Parameters

other PartitionRaw

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

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

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.