Class User

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

A user.

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

Inheritance

objectUser

Implements

IMessage<User>, IEquatable<User>, IDeepCloneable<User>, IBufferMessage, IMessage

Inherited Members

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

Constructors

User()

public User()

User(User)

public User(User other)

Parameters

other User

Fields

PermissionsFieldNumber

Field number for the “permissions” field.

public const int PermissionsFieldNumber = 3

Field Value

int

RolesFieldNumber

Field number for the “roles” field.

public const int RolesFieldNumber = 2

Field Value

int

UsernameFieldNumber

Field number for the “username” field.

public const int UsernameFieldNumber = 1

Field Value

int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Parser

public static MessageParser<User> Parser { get; }

Property Value

MessageParser<User>

Permissions

  • Permissions. If authentication is disabled, must return every permissions.

public RepeatedField<string> Permissions { get; }

Property Value

RepeatedField<string>

Roles

  • Roles. If authentication is disabled, must return [].

public RepeatedField<string> Roles { get; }

Property Value

RepeatedField<string>

Username

  • Username. If authentication is disabled, must be set to ‘Anonymous’

public string Username { get; set; }

Property Value

string

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

Returns

User

A deep clone of this object.

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

Equals(User)

public bool Equals(User other)

Parameters

other User

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(User)

Merges the given message into this one.

public void MergeFrom(User other)

Parameters

other User

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.