All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.NodeStake Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: node_stake_update.proto

// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.NodeStakeUpdate.internal_static_proto_NodeStake_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.NodeStakeUpdate.internal_static_proto_NodeStake_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.NodeStake.class, com.hedera.hashgraph.sdk.proto.NodeStake.Builder.class); } public static final int MAX_STAKE_FIELD_NUMBER = 1; private long maxStake_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_); } getUnknownFields().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 += getUnknownFields().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.hedera.hashgraph.sdk.proto.NodeStake)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.NodeStake other = (com.hedera.hashgraph.sdk.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.NodeStake parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.NodeStake parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.NodeStake parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.NodeStake parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.NodeStake parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.NodeStake parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.NodeStake parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.NodeStake parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.NodeStakeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.NodeStakeUpdate.internal_static_proto_NodeStake_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.NodeStakeUpdate.internal_static_proto_NodeStake_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.NodeStake.class, com.hedera.hashgraph.sdk.proto.NodeStake.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.NodeStake.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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.hedera.hashgraph.sdk.proto.NodeStakeUpdate.internal_static_proto_NodeStake_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.NodeStake getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.NodeStake.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.NodeStake build() { com.hedera.hashgraph.sdk.proto.NodeStake result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.NodeStake buildPartial() { com.hedera.hashgraph.sdk.proto.NodeStake result = new com.hedera.hashgraph.sdk.proto.NodeStake(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.NodeStake result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.maxStake_ = maxStake_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.minStake_ = minStake_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.nodeId_ = nodeId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.rewardRate_ = rewardRate_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.stake_ = stake_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.stakeNotRewarded_ = stakeNotRewarded_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.stakeRewarded_ = stakeRewarded_; } } @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.hedera.hashgraph.sdk.proto.NodeStake) { return mergeFrom((com.hedera.hashgraph.sdk.proto.NodeStake)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.NodeStake other) { if (other == com.hedera.hashgraph.sdk.proto.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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { maxStake_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { minStake_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { nodeId_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { rewardRate_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { stake_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { stakeNotRewarded_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { stakeRewarded_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; 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() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; 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() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * The id of this node.
     * 
* * int64 node_id = 3; * @return This builder for chaining. */ public Builder clearNodeId() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; 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() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * Consensus weight of this node for the new staking period.
     * 
* * int64 stake = 5; * @return This builder for chaining. */ public Builder clearStake() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; 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() { bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; 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() { bitField0_ = (bitField0_ & ~0x00000040); 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.hedera.hashgraph.sdk.proto.NodeStake DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.NodeStake(); } public static com.hedera.hashgraph.sdk.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.hedera.hashgraph.sdk.proto.NodeStake getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy