Class Level1Update
- Namespace
- Concordium.Grpc.V2
- Assembly
- Concordium.Sdk.dll
Level 1 updates are the intermediate update kind. They can update themselves or level 2 keys. They can only be performed by level 1 keys.
public sealed class Level1Update : IMessage<Level1Update>, IEquatable<Level1Update>, IDeepCloneable<Level1Update>, IBufferMessage, IMessage
- Inheritance
-
Level1Update
- Implements
-
IMessage<Level1Update>IDeepCloneable<Level1Update>IBufferMessageIMessage
- Inherited Members
Constructors
Level1Update()
public Level1Update()
Level1Update(Level1Update)
public Level1Update(Level1Update other)
Parameters
other
Level1Update
Fields
Level1KeysUpdateFieldNumber
Field number for the "level_1_keys_update" field.
public const int Level1KeysUpdateFieldNumber = 1
Field Value
Level2KeysUpdateV0FieldNumber
Field number for the "level_2_keys_update_v0" field.
public const int Level2KeysUpdateV0FieldNumber = 2
Field Value
Level2KeysUpdateV1FieldNumber
Field number for the "level_2_keys_update_v1" field.
public const int Level2KeysUpdateV1FieldNumber = 3
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Level1KeysUpdate
The level 1 keys were updated.
public HigherLevelKeys Level1KeysUpdate { get; set; }
Property Value
Level2KeysUpdateV0
The level 2 keys were updated.
public AuthorizationsV0 Level2KeysUpdateV0 { get; set; }
Property Value
Level2KeysUpdateV1
The level 2 keys were updated. This is similar to level_2_keys_update_v0
except that a few more keys can be updated.
public AuthorizationsV1 Level2KeysUpdateV1 { get; set; }
Property Value
Parser
public static MessageParser<Level1Update> Parser { get; }
Property Value
- MessageParser<Level1Update>
UpdateTypeCase
public Level1Update.UpdateTypeOneofCase UpdateTypeCase { get; }
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.
ClearUpdateType()
public void ClearUpdateType()
Clone()
Creates a deep clone of this object.
public Level1Update Clone()
Returns
- Level1Update
A deep clone of this object.
Equals(Level1Update)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Level1Update other)
Parameters
other
Level1UpdateAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
other
object
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(Level1Update)
Merges the given message into this one.
public void MergeFrom(Level1Update other)
Parameters
other
Level1Update
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()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
output
CodedOutputStreamCoded output stream to write the data to. Must not be null.