License

Namespace: Babel.Licensing.Service Assembly: Babel.Licensing.dll

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

Inheritance

objectLicense

Implements

IMessage<License>, IEquatable<License>, IDeepCloneable<License>, IBufferMessage, IMessage

Inherited Members

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

Constructors

License()

public License()

License(License)

public License(License other)

Parameters

NameDescription

other License

Fields

ExpireAtFieldNumber

Field number for the "expire_at" field.

public const int ExpireAtFieldNumber = 3

Field Value

int

LicenseIdFieldNumber

Field number for the "license_id" field.

public const int LicenseIdFieldNumber = 1

Field Value

int

LicenseKeyFieldNumber

Field number for the "license_key" field.

public const int LicenseKeyFieldNumber = 5

Field Value

int

LicensingModeFieldNumber

Field number for the "licensing_mode" field.

public const int LicensingModeFieldNumber = 2

Field Value

int

SupportExpireAtFieldNumber

Field number for the "support_expire_at" field.

public const int SupportExpireAtFieldNumber = 4

Field Value

int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

ExpireAt

public Timestamp ExpireAt { get; set; }

Property Value

Timestamp

LicenseId

public string LicenseId { get; set; }

Property Value

string

LicenseKey

public ByteString LicenseKey { get; set; }

Property Value

ByteString

LicensingMode

public LicensingMode LicensingMode { get; set; }

Property Value

LicensingMode

Parser

public static MessageParser<License> Parser { get; }

Property Value

MessageParser<License>

SupportExpireAt

public Timestamp SupportExpireAt { get; set; }

Property Value

Timestamp

Methods

CalculateSize()

public int CalculateSize()

Returns

NameDescription

Clone()

public License Clone()

Returns

NameDescription

Equals(object)

public override bool Equals(object other)

Parameters

NameDescription

other object

Returns

NameDescription

Equals(License)

public bool Equals(License other)

Parameters

NameDescription

other License

Returns

NameDescription

GetHashCode()

public override int GetHashCode()

Returns

NameDescription

MergeFrom(License)

public void MergeFrom(License other)

Parameters

NameDescription

other License

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)

Parameters

NameDescription

input CodedInputStream

ToString()

public override string ToString()

Returns

NameDescription

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)

Parameters

NameDescription

output CodedOutputStream

Last updated