com.hederahashgraph.api.proto.java.NodeStake Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: node_stake_update.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* Staking info for each node at the end of a staking period.
*
*
* Protobuf type {@code proto.NodeStake}
*/
public final class NodeStake extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.NodeStake)
NodeStakeOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeStake.newBuilder() to construct.
private NodeStake(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeStake() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeStake();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeStake(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
maxStake_ = input.readInt64();
break;
}
case 16: {
minStake_ = input.readInt64();
break;
}
case 24: {
nodeId_ = input.readInt64();
break;
}
case 32: {
rewardRate_ = input.readInt64();
break;
}
case 40: {
stake_ = input.readInt64();
break;
}
case 48: {
stakeNotRewarded_ = input.readInt64();
break;
}
case 56: {
stakeRewarded_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.NodeStakeUpdate.internal_static_proto_NodeStake_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.NodeStakeUpdate.internal_static_proto_NodeStake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.NodeStake.class, com.hederahashgraph.api.proto.java.NodeStake.Builder.class);
}
public static final int MAX_STAKE_FIELD_NUMBER = 1;
private long maxStake_;
/**
*
**
* The maximum stake (rewarded or not rewarded) this node can have as consensus weight. If its stake to
* reward is above this maximum at the start of a period, then accounts staking to the node in that
* period will be rewarded at a lower rate scaled by (maxStake / stakeRewardStart).
*
*
* int64 max_stake = 1;
* @return The maxStake.
*/
@java.lang.Override
public long getMaxStake() {
return maxStake_;
}
public static final int MIN_STAKE_FIELD_NUMBER = 2;
private long minStake_;
/**
*
**
* The minimum stake (rewarded or not rewarded) this node must reach before having non-zero consensus weight.
* If its total stake is below this minimum at the start of a period, then accounts staking to the node in
* that period will receive no rewards.
*
*
* int64 min_stake = 2;
* @return The minStake.
*/
@java.lang.Override
public long getMinStake() {
return minStake_;
}
public static final int NODE_ID_FIELD_NUMBER = 3;
private long nodeId_;
/**
*
**
* The id of this node.
*
*
* int64 node_id = 3;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
public static final int REWARD_RATE_FIELD_NUMBER = 4;
private long rewardRate_;
/**
*
**
* The reward rate _per whole hbar_ that was staked to this node with declineReward=false from the start of
* the staking period that is ending.
*
*
* int64 reward_rate = 4;
* @return The rewardRate.
*/
@java.lang.Override
public long getRewardRate() {
return rewardRate_;
}
public static final int STAKE_FIELD_NUMBER = 5;
private long stake_;
/**
*
**
* Consensus weight of this node for the new staking period.
*
*
* int64 stake = 5;
* @return The stake.
*/
@java.lang.Override
public long getStake() {
return stake_;
}
public static final int STAKE_NOT_REWARDED_FIELD_NUMBER = 6;
private long stakeNotRewarded_;
/**
*
**
* Total of (balance + stakedToMe) for all accounts staked to this node with declineReward=true, at the
* beginning of the new staking period.
*
*
* int64 stake_not_rewarded = 6;
* @return The stakeNotRewarded.
*/
@java.lang.Override
public long getStakeNotRewarded() {
return stakeNotRewarded_;
}
public static final int STAKE_REWARDED_FIELD_NUMBER = 7;
private long stakeRewarded_;
/**
*
**
* Total of (balance + stakedToMe) for all accounts staked to this node with declineReward=false, at the
* beginning of the new staking period.
*
*
* int64 stake_rewarded = 7;
* @return The stakeRewarded.
*/
@java.lang.Override
public long getStakeRewarded() {
return stakeRewarded_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (maxStake_ != 0L) {
output.writeInt64(1, maxStake_);
}
if (minStake_ != 0L) {
output.writeInt64(2, minStake_);
}
if (nodeId_ != 0L) {
output.writeInt64(3, nodeId_);
}
if (rewardRate_ != 0L) {
output.writeInt64(4, rewardRate_);
}
if (stake_ != 0L) {
output.writeInt64(5, stake_);
}
if (stakeNotRewarded_ != 0L) {
output.writeInt64(6, stakeNotRewarded_);
}
if (stakeRewarded_ != 0L) {
output.writeInt64(7, stakeRewarded_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (maxStake_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, maxStake_);
}
if (minStake_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, minStake_);
}
if (nodeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, nodeId_);
}
if (rewardRate_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, rewardRate_);
}
if (stake_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, stake_);
}
if (stakeNotRewarded_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, stakeNotRewarded_);
}
if (stakeRewarded_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, stakeRewarded_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hederahashgraph.api.proto.java.NodeStake)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.NodeStake other = (com.hederahashgraph.api.proto.java.NodeStake) obj;
if (getMaxStake()
!= other.getMaxStake()) return false;
if (getMinStake()
!= other.getMinStake()) return false;
if (getNodeId()
!= other.getNodeId()) return false;
if (getRewardRate()
!= other.getRewardRate()) return false;
if (getStake()
!= other.getStake()) return false;
if (getStakeNotRewarded()
!= other.getStakeNotRewarded()) return false;
if (getStakeRewarded()
!= other.getStakeRewarded()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MAX_STAKE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxStake());
hash = (37 * hash) + MIN_STAKE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMinStake());
hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNodeId());
hash = (37 * hash) + REWARD_RATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRewardRate());
hash = (37 * hash) + STAKE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStake());
hash = (37 * hash) + STAKE_NOT_REWARDED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStakeNotRewarded());
hash = (37 * hash) + STAKE_REWARDED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStakeRewarded());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.NodeStake parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.NodeStake parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.NodeStake parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.NodeStake parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.NodeStake parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.NodeStake parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.NodeStake parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.NodeStake parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.NodeStake parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.NodeStake parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.NodeStake parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.NodeStake parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hederahashgraph.api.proto.java.NodeStake prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* Staking info for each node at the end of a staking period.
*
*
* Protobuf type {@code proto.NodeStake}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.NodeStake)
com.hederahashgraph.api.proto.java.NodeStakeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.NodeStakeUpdate.internal_static_proto_NodeStake_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.NodeStakeUpdate.internal_static_proto_NodeStake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.NodeStake.class, com.hederahashgraph.api.proto.java.NodeStake.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.NodeStake.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
maxStake_ = 0L;
minStake_ = 0L;
nodeId_ = 0L;
rewardRate_ = 0L;
stake_ = 0L;
stakeNotRewarded_ = 0L;
stakeRewarded_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.NodeStakeUpdate.internal_static_proto_NodeStake_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.NodeStake getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.NodeStake.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.NodeStake build() {
com.hederahashgraph.api.proto.java.NodeStake result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.NodeStake buildPartial() {
com.hederahashgraph.api.proto.java.NodeStake result = new com.hederahashgraph.api.proto.java.NodeStake(this);
result.maxStake_ = maxStake_;
result.minStake_ = minStake_;
result.nodeId_ = nodeId_;
result.rewardRate_ = rewardRate_;
result.stake_ = stake_;
result.stakeNotRewarded_ = stakeNotRewarded_;
result.stakeRewarded_ = stakeRewarded_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hederahashgraph.api.proto.java.NodeStake) {
return mergeFrom((com.hederahashgraph.api.proto.java.NodeStake)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.NodeStake other) {
if (other == com.hederahashgraph.api.proto.java.NodeStake.getDefaultInstance()) return this;
if (other.getMaxStake() != 0L) {
setMaxStake(other.getMaxStake());
}
if (other.getMinStake() != 0L) {
setMinStake(other.getMinStake());
}
if (other.getNodeId() != 0L) {
setNodeId(other.getNodeId());
}
if (other.getRewardRate() != 0L) {
setRewardRate(other.getRewardRate());
}
if (other.getStake() != 0L) {
setStake(other.getStake());
}
if (other.getStakeNotRewarded() != 0L) {
setStakeNotRewarded(other.getStakeNotRewarded());
}
if (other.getStakeRewarded() != 0L) {
setStakeRewarded(other.getStakeRewarded());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.hederahashgraph.api.proto.java.NodeStake parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.NodeStake) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long maxStake_ ;
/**
*
**
* The maximum stake (rewarded or not rewarded) this node can have as consensus weight. If its stake to
* reward is above this maximum at the start of a period, then accounts staking to the node in that
* period will be rewarded at a lower rate scaled by (maxStake / stakeRewardStart).
*
*
* int64 max_stake = 1;
* @return The maxStake.
*/
@java.lang.Override
public long getMaxStake() {
return maxStake_;
}
/**
*
**
* The maximum stake (rewarded or not rewarded) this node can have as consensus weight. If its stake to
* reward is above this maximum at the start of a period, then accounts staking to the node in that
* period will be rewarded at a lower rate scaled by (maxStake / stakeRewardStart).
*
*
* int64 max_stake = 1;
* @param value The maxStake to set.
* @return This builder for chaining.
*/
public Builder setMaxStake(long value) {
maxStake_ = value;
onChanged();
return this;
}
/**
*
**
* The maximum stake (rewarded or not rewarded) this node can have as consensus weight. If its stake to
* reward is above this maximum at the start of a period, then accounts staking to the node in that
* period will be rewarded at a lower rate scaled by (maxStake / stakeRewardStart).
*
*
* int64 max_stake = 1;
* @return This builder for chaining.
*/
public Builder clearMaxStake() {
maxStake_ = 0L;
onChanged();
return this;
}
private long minStake_ ;
/**
*
**
* The minimum stake (rewarded or not rewarded) this node must reach before having non-zero consensus weight.
* If its total stake is below this minimum at the start of a period, then accounts staking to the node in
* that period will receive no rewards.
*
*
* int64 min_stake = 2;
* @return The minStake.
*/
@java.lang.Override
public long getMinStake() {
return minStake_;
}
/**
*
**
* The minimum stake (rewarded or not rewarded) this node must reach before having non-zero consensus weight.
* If its total stake is below this minimum at the start of a period, then accounts staking to the node in
* that period will receive no rewards.
*
*
* int64 min_stake = 2;
* @param value The minStake to set.
* @return This builder for chaining.
*/
public Builder setMinStake(long value) {
minStake_ = value;
onChanged();
return this;
}
/**
*
**
* The minimum stake (rewarded or not rewarded) this node must reach before having non-zero consensus weight.
* If its total stake is below this minimum at the start of a period, then accounts staking to the node in
* that period will receive no rewards.
*
*
* int64 min_stake = 2;
* @return This builder for chaining.
*/
public Builder clearMinStake() {
minStake_ = 0L;
onChanged();
return this;
}
private long nodeId_ ;
/**
*
**
* The id of this node.
*
*
* int64 node_id = 3;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
/**
*
**
* The id of this node.
*
*
* int64 node_id = 3;
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(long value) {
nodeId_ = value;
onChanged();
return this;
}
/**
*
**
* The id of this node.
*
*
* int64 node_id = 3;
* @return This builder for chaining.
*/
public Builder clearNodeId() {
nodeId_ = 0L;
onChanged();
return this;
}
private long rewardRate_ ;
/**
*
**
* The reward rate _per whole hbar_ that was staked to this node with declineReward=false from the start of
* the staking period that is ending.
*
*
* int64 reward_rate = 4;
* @return The rewardRate.
*/
@java.lang.Override
public long getRewardRate() {
return rewardRate_;
}
/**
*
**
* The reward rate _per whole hbar_ that was staked to this node with declineReward=false from the start of
* the staking period that is ending.
*
*
* int64 reward_rate = 4;
* @param value The rewardRate to set.
* @return This builder for chaining.
*/
public Builder setRewardRate(long value) {
rewardRate_ = value;
onChanged();
return this;
}
/**
*
**
* The reward rate _per whole hbar_ that was staked to this node with declineReward=false from the start of
* the staking period that is ending.
*
*
* int64 reward_rate = 4;
* @return This builder for chaining.
*/
public Builder clearRewardRate() {
rewardRate_ = 0L;
onChanged();
return this;
}
private long stake_ ;
/**
*
**
* Consensus weight of this node for the new staking period.
*
*
* int64 stake = 5;
* @return The stake.
*/
@java.lang.Override
public long getStake() {
return stake_;
}
/**
*
**
* Consensus weight of this node for the new staking period.
*
*
* int64 stake = 5;
* @param value The stake to set.
* @return This builder for chaining.
*/
public Builder setStake(long value) {
stake_ = value;
onChanged();
return this;
}
/**
*
**
* Consensus weight of this node for the new staking period.
*
*
* int64 stake = 5;
* @return This builder for chaining.
*/
public Builder clearStake() {
stake_ = 0L;
onChanged();
return this;
}
private long stakeNotRewarded_ ;
/**
*
**
* Total of (balance + stakedToMe) for all accounts staked to this node with declineReward=true, at the
* beginning of the new staking period.
*
*
* int64 stake_not_rewarded = 6;
* @return The stakeNotRewarded.
*/
@java.lang.Override
public long getStakeNotRewarded() {
return stakeNotRewarded_;
}
/**
*
**
* Total of (balance + stakedToMe) for all accounts staked to this node with declineReward=true, at the
* beginning of the new staking period.
*
*
* int64 stake_not_rewarded = 6;
* @param value The stakeNotRewarded to set.
* @return This builder for chaining.
*/
public Builder setStakeNotRewarded(long value) {
stakeNotRewarded_ = value;
onChanged();
return this;
}
/**
*
**
* Total of (balance + stakedToMe) for all accounts staked to this node with declineReward=true, at the
* beginning of the new staking period.
*
*
* int64 stake_not_rewarded = 6;
* @return This builder for chaining.
*/
public Builder clearStakeNotRewarded() {
stakeNotRewarded_ = 0L;
onChanged();
return this;
}
private long stakeRewarded_ ;
/**
*
**
* Total of (balance + stakedToMe) for all accounts staked to this node with declineReward=false, at the
* beginning of the new staking period.
*
*
* int64 stake_rewarded = 7;
* @return The stakeRewarded.
*/
@java.lang.Override
public long getStakeRewarded() {
return stakeRewarded_;
}
/**
*
**
* Total of (balance + stakedToMe) for all accounts staked to this node with declineReward=false, at the
* beginning of the new staking period.
*
*
* int64 stake_rewarded = 7;
* @param value The stakeRewarded to set.
* @return This builder for chaining.
*/
public Builder setStakeRewarded(long value) {
stakeRewarded_ = value;
onChanged();
return this;
}
/**
*
**
* Total of (balance + stakedToMe) for all accounts staked to this node with declineReward=false, at the
* beginning of the new staking period.
*
*
* int64 stake_rewarded = 7;
* @return This builder for chaining.
*/
public Builder clearStakeRewarded() {
stakeRewarded_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto.NodeStake)
}
// @@protoc_insertion_point(class_scope:proto.NodeStake)
private static final com.hederahashgraph.api.proto.java.NodeStake DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.NodeStake();
}
public static com.hederahashgraph.api.proto.java.NodeStake getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeStake parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeStake(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.NodeStake getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}