Class AccountStakingInfo.Types.Baker
- Namespace
- Concordium.Grpc.V2
- Assembly
- Concordium.Sdk.dll
public sealed class AccountStakingInfo.Types.Baker : IMessage<AccountStakingInfo.Types.Baker>, IEquatable<AccountStakingInfo.Types.Baker>, IDeepCloneable<AccountStakingInfo.Types.Baker>, IBufferMessage, IMessage
- Inheritance
-
AccountStakingInfo.Types.Baker
- Implements
-
IBufferMessageIMessage
- Inherited Members
Constructors
Baker()
public Baker()
Baker(Baker)
public Baker(AccountStakingInfo.Types.Baker other)
Parameters
other
AccountStakingInfo.Types.Baker
Fields
BakerInfoFieldNumber
Field number for the "baker_info" field.
public const int BakerInfoFieldNumber = 3
Field Value
PendingChangeFieldNumber
Field number for the "pending_change" field.
public const int PendingChangeFieldNumber = 4
Field Value
PoolInfoFieldNumber
Field number for the "pool_info" field.
public const int PoolInfoFieldNumber = 5
Field Value
RestakeEarningsFieldNumber
Field number for the "restake_earnings" field.
public const int RestakeEarningsFieldNumber = 2
Field Value
StakedAmountFieldNumber
Field number for the "staked_amount" field.
public const int StakedAmountFieldNumber = 1
Field Value
Properties
BakerInfo
Information about the baker that is staking.
public BakerInfo BakerInfo { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<AccountStakingInfo.Types.Baker> Parser { get; }
Property Value
- MessageParser<AccountStakingInfo.Types.Baker>
PendingChange
If present, any pending change to the delegated stake.
public StakePendingChange PendingChange { get; set; }
Property Value
PoolInfo
Present if the account is currently a baker, i.e., it is in the baking committee of the current epoch.
public BakerPoolInfo PoolInfo { get; set; }
Property Value
RestakeEarnings
A flag indicating whether rewards paid to the baker are automatically restaked or not.
public bool RestakeEarnings { get; set; }
Property Value
StakedAmount
Amount staked at present.
public Amount StakedAmount { get; set; }
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.
Clone()
Creates a deep clone of this object.
public AccountStakingInfo.Types.Baker Clone()
Returns
- AccountStakingInfo.Types.Baker
A deep clone of this object.
Equals(Baker)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(AccountStakingInfo.Types.Baker other)
Parameters
other
AccountStakingInfo.Types.BakerAn 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(Baker)
Merges the given message into this one.
public void MergeFrom(AccountStakingInfo.Types.Baker other)
Parameters
other
AccountStakingInfo.Types.Baker
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.