com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: stream/output/state_changes.proto
package com.hedera.hapi.block.stream.output.protoc;
/**
*
**
* An update to a `Singleton` state.
*
*
* Protobuf type {@code com.hedera.hapi.block.stream.output.SingletonUpdateChange}
*/
public final class SingletonUpdateChange extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.hedera.hapi.block.stream.output.SingletonUpdateChange)
SingletonUpdateChangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use SingletonUpdateChange.newBuilder() to construct.
private SingletonUpdateChange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SingletonUpdateChange() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SingletonUpdateChange();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SingletonUpdateChange(
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 10: {
com.hederahashgraph.api.proto.java.BlockInfo.Builder subBuilder = null;
if (newValueCase_ == 1) {
subBuilder = ((com.hederahashgraph.api.proto.java.BlockInfo) newValue_).toBuilder();
}
newValue_ =
input.readMessage(com.hederahashgraph.api.proto.java.BlockInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.BlockInfo) newValue_);
newValue_ = subBuilder.buildPartial();
}
newValueCase_ = 1;
break;
}
case 18: {
com.hederahashgraph.api.proto.java.CongestionLevelStarts.Builder subBuilder = null;
if (newValueCase_ == 2) {
subBuilder = ((com.hederahashgraph.api.proto.java.CongestionLevelStarts) newValue_).toBuilder();
}
newValue_ =
input.readMessage(com.hederahashgraph.api.proto.java.CongestionLevelStarts.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.CongestionLevelStarts) newValue_);
newValue_ = subBuilder.buildPartial();
}
newValueCase_ = 2;
break;
}
case 26: {
com.google.protobuf.UInt64Value.Builder subBuilder = null;
if (newValueCase_ == 3) {
subBuilder = ((com.google.protobuf.UInt64Value) newValue_).toBuilder();
}
newValue_ =
input.readMessage(com.google.protobuf.UInt64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.google.protobuf.UInt64Value) newValue_);
newValue_ = subBuilder.buildPartial();
}
newValueCase_ = 3;
break;
}
case 34: {
com.hederahashgraph.api.proto.java.ExchangeRateSet.Builder subBuilder = null;
if (newValueCase_ == 4) {
subBuilder = ((com.hederahashgraph.api.proto.java.ExchangeRateSet) newValue_).toBuilder();
}
newValue_ =
input.readMessage(com.hederahashgraph.api.proto.java.ExchangeRateSet.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.ExchangeRateSet) newValue_);
newValue_ = subBuilder.buildPartial();
}
newValueCase_ = 4;
break;
}
case 42: {
com.hederahashgraph.api.proto.java.NetworkStakingRewards.Builder subBuilder = null;
if (newValueCase_ == 5) {
subBuilder = ((com.hederahashgraph.api.proto.java.NetworkStakingRewards) newValue_).toBuilder();
}
newValue_ =
input.readMessage(com.hederahashgraph.api.proto.java.NetworkStakingRewards.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.NetworkStakingRewards) newValue_);
newValue_ = subBuilder.buildPartial();
}
newValueCase_ = 5;
break;
}
case 50: {
com.google.protobuf.BytesValue.Builder subBuilder = null;
if (newValueCase_ == 6) {
subBuilder = ((com.google.protobuf.BytesValue) newValue_).toBuilder();
}
newValue_ =
input.readMessage(com.google.protobuf.BytesValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.google.protobuf.BytesValue) newValue_);
newValue_ = subBuilder.buildPartial();
}
newValueCase_ = 6;
break;
}
case 58: {
com.google.protobuf.StringValue.Builder subBuilder = null;
if (newValueCase_ == 7) {
subBuilder = ((com.google.protobuf.StringValue) newValue_).toBuilder();
}
newValue_ =
input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.google.protobuf.StringValue) newValue_);
newValue_ = subBuilder.buildPartial();
}
newValueCase_ = 7;
break;
}
case 66: {
com.hederahashgraph.api.proto.java.RunningHashes.Builder subBuilder = null;
if (newValueCase_ == 8) {
subBuilder = ((com.hederahashgraph.api.proto.java.RunningHashes) newValue_).toBuilder();
}
newValue_ =
input.readMessage(com.hederahashgraph.api.proto.java.RunningHashes.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.RunningHashes) newValue_);
newValue_ = subBuilder.buildPartial();
}
newValueCase_ = 8;
break;
}
case 74: {
com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.Builder subBuilder = null;
if (newValueCase_ == 9) {
subBuilder = ((com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots) newValue_).toBuilder();
}
newValue_ =
input.readMessage(com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots) newValue_);
newValue_ = subBuilder.buildPartial();
}
newValueCase_ = 9;
break;
}
case 82: {
com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null;
if (newValueCase_ == 10) {
subBuilder = ((com.hederahashgraph.api.proto.java.Timestamp) newValue_).toBuilder();
}
newValue_ =
input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.Timestamp) newValue_);
newValue_ = subBuilder.buildPartial();
}
newValueCase_ = 10;
break;
}
case 90: {
com.hederahashgraph.api.proto.java.BlockStreamInfo.Builder subBuilder = null;
if (newValueCase_ == 11) {
subBuilder = ((com.hederahashgraph.api.proto.java.BlockStreamInfo) newValue_).toBuilder();
}
newValue_ =
input.readMessage(com.hederahashgraph.api.proto.java.BlockStreamInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.BlockStreamInfo) newValue_);
newValue_ = subBuilder.buildPartial();
}
newValueCase_ = 11;
break;
}
case 98: {
com.hedera.hapi.platform.state.legacy.PlatformState.Builder subBuilder = null;
if (newValueCase_ == 12) {
subBuilder = ((com.hedera.hapi.platform.state.legacy.PlatformState) newValue_).toBuilder();
}
newValue_ =
input.readMessage(com.hedera.hapi.platform.state.legacy.PlatformState.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hedera.hapi.platform.state.legacy.PlatformState) newValue_);
newValue_ = subBuilder.buildPartial();
}
newValueCase_ = 12;
break;
}
case 106: {
com.hederahashgraph.api.proto.java.RosterState.Builder subBuilder = null;
if (newValueCase_ == 13) {
subBuilder = ((com.hederahashgraph.api.proto.java.RosterState) newValue_).toBuilder();
}
newValue_ =
input.readMessage(com.hederahashgraph.api.proto.java.RosterState.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.RosterState) newValue_);
newValue_ = subBuilder.buildPartial();
}
newValueCase_ = 13;
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.hedera.hapi.block.stream.output.protoc.StateChangesOuterClass.internal_static_com_hedera_hapi_block_stream_output_SingletonUpdateChange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.block.stream.output.protoc.StateChangesOuterClass.internal_static_com_hedera_hapi_block_stream_output_SingletonUpdateChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange.class, com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange.Builder.class);
}
private int newValueCase_ = 0;
private java.lang.Object newValue_;
public enum NewValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BLOCK_INFO_VALUE(1),
CONGESTION_LEVEL_STARTS_VALUE(2),
ENTITY_NUMBER_VALUE(3),
EXCHANGE_RATE_SET_VALUE(4),
NETWORK_STAKING_REWARDS_VALUE(5),
BYTES_VALUE(6),
STRING_VALUE(7),
RUNNING_HASHES_VALUE(8),
THROTTLE_USAGE_SNAPSHOTS_VALUE(9),
TIMESTAMP_VALUE(10),
BLOCK_STREAM_INFO_VALUE(11),
PLATFORM_STATE_VALUE(12),
ROSTER_STATE_VALUE(13),
NEWVALUE_NOT_SET(0);
private final int value;
private NewValueCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NewValueCase valueOf(int value) {
return forNumber(value);
}
public static NewValueCase forNumber(int value) {
switch (value) {
case 1: return BLOCK_INFO_VALUE;
case 2: return CONGESTION_LEVEL_STARTS_VALUE;
case 3: return ENTITY_NUMBER_VALUE;
case 4: return EXCHANGE_RATE_SET_VALUE;
case 5: return NETWORK_STAKING_REWARDS_VALUE;
case 6: return BYTES_VALUE;
case 7: return STRING_VALUE;
case 8: return RUNNING_HASHES_VALUE;
case 9: return THROTTLE_USAGE_SNAPSHOTS_VALUE;
case 10: return TIMESTAMP_VALUE;
case 11: return BLOCK_STREAM_INFO_VALUE;
case 12: return PLATFORM_STATE_VALUE;
case 13: return ROSTER_STATE_VALUE;
case 0: return NEWVALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public NewValueCase
getNewValueCase() {
return NewValueCase.forNumber(
newValueCase_);
}
public static final int BLOCK_INFO_VALUE_FIELD_NUMBER = 1;
/**
*
**
* A change to the block info singleton.
* <p>
* The `BlockInfo` SHALL be updated at the end of every block and
* SHALL store, among other fields, the last 256 block hash values.
* <blockquote>REVIEW NOTE<blockquote>
* The full BlockInfo will be in the state proof, and may not be
* necessary here.</blockquote></blockquote>
*
*
* .proto.BlockInfo block_info_value = 1;
* @return Whether the blockInfoValue field is set.
*/
@java.lang.Override
public boolean hasBlockInfoValue() {
return newValueCase_ == 1;
}
/**
*
**
* A change to the block info singleton.
* <p>
* The `BlockInfo` SHALL be updated at the end of every block and
* SHALL store, among other fields, the last 256 block hash values.
* <blockquote>REVIEW NOTE<blockquote>
* The full BlockInfo will be in the state proof, and may not be
* necessary here.</blockquote></blockquote>
*
*
* .proto.BlockInfo block_info_value = 1;
* @return The blockInfoValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockInfo getBlockInfoValue() {
if (newValueCase_ == 1) {
return (com.hederahashgraph.api.proto.java.BlockInfo) newValue_;
}
return com.hederahashgraph.api.proto.java.BlockInfo.getDefaultInstance();
}
/**
*
**
* A change to the block info singleton.
* <p>
* The `BlockInfo` SHALL be updated at the end of every block and
* SHALL store, among other fields, the last 256 block hash values.
* <blockquote>REVIEW NOTE<blockquote>
* The full BlockInfo will be in the state proof, and may not be
* necessary here.</blockquote></blockquote>
*
*
* .proto.BlockInfo block_info_value = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockInfoOrBuilder getBlockInfoValueOrBuilder() {
if (newValueCase_ == 1) {
return (com.hederahashgraph.api.proto.java.BlockInfo) newValue_;
}
return com.hederahashgraph.api.proto.java.BlockInfo.getDefaultInstance();
}
public static final int CONGESTION_LEVEL_STARTS_VALUE_FIELD_NUMBER = 2;
/**
*
**
* A change to the congestion level starts singleton.
* <p>
* This change SHALL be present if congestion level pricing for
* general fees or gas fees started during the current block.
*
*
* .proto.CongestionLevelStarts congestion_level_starts_value = 2;
* @return Whether the congestionLevelStartsValue field is set.
*/
@java.lang.Override
public boolean hasCongestionLevelStartsValue() {
return newValueCase_ == 2;
}
/**
*
**
* A change to the congestion level starts singleton.
* <p>
* This change SHALL be present if congestion level pricing for
* general fees or gas fees started during the current block.
*
*
* .proto.CongestionLevelStarts congestion_level_starts_value = 2;
* @return The congestionLevelStartsValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.CongestionLevelStarts getCongestionLevelStartsValue() {
if (newValueCase_ == 2) {
return (com.hederahashgraph.api.proto.java.CongestionLevelStarts) newValue_;
}
return com.hederahashgraph.api.proto.java.CongestionLevelStarts.getDefaultInstance();
}
/**
*
**
* A change to the congestion level starts singleton.
* <p>
* This change SHALL be present if congestion level pricing for
* general fees or gas fees started during the current block.
*
*
* .proto.CongestionLevelStarts congestion_level_starts_value = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.CongestionLevelStartsOrBuilder getCongestionLevelStartsValueOrBuilder() {
if (newValueCase_ == 2) {
return (com.hederahashgraph.api.proto.java.CongestionLevelStarts) newValue_;
}
return com.hederahashgraph.api.proto.java.CongestionLevelStarts.getDefaultInstance();
}
public static final int ENTITY_NUMBER_VALUE_FIELD_NUMBER = 3;
/**
*
**
* A change to the Entity Identifier singleton.
* <p>
* The Entity Identifier singleton SHALL track the highest entity
* identifier used for the current shard and realm and SHALL be used
* to issue new entity numbers.
*
*
* .google.protobuf.UInt64Value entity_number_value = 3;
* @return Whether the entityNumberValue field is set.
*/
@java.lang.Override
public boolean hasEntityNumberValue() {
return newValueCase_ == 3;
}
/**
*
**
* A change to the Entity Identifier singleton.
* <p>
* The Entity Identifier singleton SHALL track the highest entity
* identifier used for the current shard and realm and SHALL be used
* to issue new entity numbers.
*
*
* .google.protobuf.UInt64Value entity_number_value = 3;
* @return The entityNumberValue.
*/
@java.lang.Override
public com.google.protobuf.UInt64Value getEntityNumberValue() {
if (newValueCase_ == 3) {
return (com.google.protobuf.UInt64Value) newValue_;
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
}
/**
*
**
* A change to the Entity Identifier singleton.
* <p>
* The Entity Identifier singleton SHALL track the highest entity
* identifier used for the current shard and realm and SHALL be used
* to issue new entity numbers.
*
*
* .google.protobuf.UInt64Value entity_number_value = 3;
*/
@java.lang.Override
public com.google.protobuf.UInt64ValueOrBuilder getEntityNumberValueOrBuilder() {
if (newValueCase_ == 3) {
return (com.google.protobuf.UInt64Value) newValue_;
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
}
public static final int EXCHANGE_RATE_SET_VALUE_FIELD_NUMBER = 4;
/**
*
**
* A change to the exchange rates singleton.
* <p>
* This change SHALL be present if the <tt>HBAR<=>USD</tt> exchange
* rate, as stored in the "midnight rates" singleton changed
* during the current block.
*
*
* .proto.ExchangeRateSet exchange_rate_set_value = 4;
* @return Whether the exchangeRateSetValue field is set.
*/
@java.lang.Override
public boolean hasExchangeRateSetValue() {
return newValueCase_ == 4;
}
/**
*
**
* A change to the exchange rates singleton.
* <p>
* This change SHALL be present if the <tt>HBAR<=>USD</tt> exchange
* rate, as stored in the "midnight rates" singleton changed
* during the current block.
*
*
* .proto.ExchangeRateSet exchange_rate_set_value = 4;
* @return The exchangeRateSetValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ExchangeRateSet getExchangeRateSetValue() {
if (newValueCase_ == 4) {
return (com.hederahashgraph.api.proto.java.ExchangeRateSet) newValue_;
}
return com.hederahashgraph.api.proto.java.ExchangeRateSet.getDefaultInstance();
}
/**
*
**
* A change to the exchange rates singleton.
* <p>
* This change SHALL be present if the <tt>HBAR<=>USD</tt> exchange
* rate, as stored in the "midnight rates" singleton changed
* during the current block.
*
*
* .proto.ExchangeRateSet exchange_rate_set_value = 4;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ExchangeRateSetOrBuilder getExchangeRateSetValueOrBuilder() {
if (newValueCase_ == 4) {
return (com.hederahashgraph.api.proto.java.ExchangeRateSet) newValue_;
}
return com.hederahashgraph.api.proto.java.ExchangeRateSet.getDefaultInstance();
}
public static final int NETWORK_STAKING_REWARDS_VALUE_FIELD_NUMBER = 5;
/**
*
**
* A change to the network staking rewards singleton.
* <p>
* Network staking rewards SHALL be updated for every non-empty block.
*
*
* .proto.NetworkStakingRewards network_staking_rewards_value = 5;
* @return Whether the networkStakingRewardsValue field is set.
*/
@java.lang.Override
public boolean hasNetworkStakingRewardsValue() {
return newValueCase_ == 5;
}
/**
*
**
* A change to the network staking rewards singleton.
* <p>
* Network staking rewards SHALL be updated for every non-empty block.
*
*
* .proto.NetworkStakingRewards network_staking_rewards_value = 5;
* @return The networkStakingRewardsValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.NetworkStakingRewards getNetworkStakingRewardsValue() {
if (newValueCase_ == 5) {
return (com.hederahashgraph.api.proto.java.NetworkStakingRewards) newValue_;
}
return com.hederahashgraph.api.proto.java.NetworkStakingRewards.getDefaultInstance();
}
/**
*
**
* A change to the network staking rewards singleton.
* <p>
* Network staking rewards SHALL be updated for every non-empty block.
*
*
* .proto.NetworkStakingRewards network_staking_rewards_value = 5;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.NetworkStakingRewardsOrBuilder getNetworkStakingRewardsValueOrBuilder() {
if (newValueCase_ == 5) {
return (com.hederahashgraph.api.proto.java.NetworkStakingRewards) newValue_;
}
return com.hederahashgraph.api.proto.java.NetworkStakingRewards.getDefaultInstance();
}
public static final int BYTES_VALUE_FIELD_NUMBER = 6;
/**
*
**
* A change to a raw byte array singleton.
* <p>
* This change SHALL present a change made to a raw byte array
* singleton.<br/>
* The "upgrade file hash" state is an example of a raw byte
* array singleton.
*
*
* .google.protobuf.BytesValue bytes_value = 6;
* @return Whether the bytesValue field is set.
*/
@java.lang.Override
public boolean hasBytesValue() {
return newValueCase_ == 6;
}
/**
*
**
* A change to a raw byte array singleton.
* <p>
* This change SHALL present a change made to a raw byte array
* singleton.<br/>
* The "upgrade file hash" state is an example of a raw byte
* array singleton.
*
*
* .google.protobuf.BytesValue bytes_value = 6;
* @return The bytesValue.
*/
@java.lang.Override
public com.google.protobuf.BytesValue getBytesValue() {
if (newValueCase_ == 6) {
return (com.google.protobuf.BytesValue) newValue_;
}
return com.google.protobuf.BytesValue.getDefaultInstance();
}
/**
*
**
* A change to a raw byte array singleton.
* <p>
* This change SHALL present a change made to a raw byte array
* singleton.<br/>
* The "upgrade file hash" state is an example of a raw byte
* array singleton.
*
*
* .google.protobuf.BytesValue bytes_value = 6;
*/
@java.lang.Override
public com.google.protobuf.BytesValueOrBuilder getBytesValueOrBuilder() {
if (newValueCase_ == 6) {
return (com.google.protobuf.BytesValue) newValue_;
}
return com.google.protobuf.BytesValue.getDefaultInstance();
}
public static final int STRING_VALUE_FIELD_NUMBER = 7;
/**
*
**
* A change to a raw string singleton.
* <p>
* <dl><dt>Note</dt><dd>There are no current examples of a raw string
* singleton state.</dd></dl>
*
*
* .google.protobuf.StringValue string_value = 7;
* @return Whether the stringValue field is set.
*/
@java.lang.Override
public boolean hasStringValue() {
return newValueCase_ == 7;
}
/**
*
**
* A change to a raw string singleton.
* <p>
* <dl><dt>Note</dt><dd>There are no current examples of a raw string
* singleton state.</dd></dl>
*
*
* .google.protobuf.StringValue string_value = 7;
* @return The stringValue.
*/
@java.lang.Override
public com.google.protobuf.StringValue getStringValue() {
if (newValueCase_ == 7) {
return (com.google.protobuf.StringValue) newValue_;
}
return com.google.protobuf.StringValue.getDefaultInstance();
}
/**
*
**
* A change to a raw string singleton.
* <p>
* <dl><dt>Note</dt><dd>There are no current examples of a raw string
* singleton state.</dd></dl>
*
*
* .google.protobuf.StringValue string_value = 7;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getStringValueOrBuilder() {
if (newValueCase_ == 7) {
return (com.google.protobuf.StringValue) newValue_;
}
return com.google.protobuf.StringValue.getDefaultInstance();
}
public static final int RUNNING_HASHES_VALUE_FIELD_NUMBER = 8;
/**
*
**
* A change to the running hashes singleton.
* <p>
* Running hashes SHALL be updated for each transaction.
* <p>
* <blockquote>REVIEW NOTE<blockquote>
* Running hashes is a record stream item. Can it be elided from
* the block stream? It's not written to the record stream, as far
* as I can tell. If we do write this it's adding over 144 bytes
* for every transaction. It's also not clear how we'll calculate
* this, as it's a hash of the records currently, so it would have
* to be a hash of the block items, including this one...
* </blockquote></blockquote>
*
*
* .proto.RunningHashes running_hashes_value = 8;
* @return Whether the runningHashesValue field is set.
*/
@java.lang.Override
public boolean hasRunningHashesValue() {
return newValueCase_ == 8;
}
/**
*
**
* A change to the running hashes singleton.
* <p>
* Running hashes SHALL be updated for each transaction.
* <p>
* <blockquote>REVIEW NOTE<blockquote>
* Running hashes is a record stream item. Can it be elided from
* the block stream? It's not written to the record stream, as far
* as I can tell. If we do write this it's adding over 144 bytes
* for every transaction. It's also not clear how we'll calculate
* this, as it's a hash of the records currently, so it would have
* to be a hash of the block items, including this one...
* </blockquote></blockquote>
*
*
* .proto.RunningHashes running_hashes_value = 8;
* @return The runningHashesValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.RunningHashes getRunningHashesValue() {
if (newValueCase_ == 8) {
return (com.hederahashgraph.api.proto.java.RunningHashes) newValue_;
}
return com.hederahashgraph.api.proto.java.RunningHashes.getDefaultInstance();
}
/**
*
**
* A change to the running hashes singleton.
* <p>
* Running hashes SHALL be updated for each transaction.
* <p>
* <blockquote>REVIEW NOTE<blockquote>
* Running hashes is a record stream item. Can it be elided from
* the block stream? It's not written to the record stream, as far
* as I can tell. If we do write this it's adding over 144 bytes
* for every transaction. It's also not clear how we'll calculate
* this, as it's a hash of the records currently, so it would have
* to be a hash of the block items, including this one...
* </blockquote></blockquote>
*
*
* .proto.RunningHashes running_hashes_value = 8;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.RunningHashesOrBuilder getRunningHashesValueOrBuilder() {
if (newValueCase_ == 8) {
return (com.hederahashgraph.api.proto.java.RunningHashes) newValue_;
}
return com.hederahashgraph.api.proto.java.RunningHashes.getDefaultInstance();
}
public static final int THROTTLE_USAGE_SNAPSHOTS_VALUE_FIELD_NUMBER = 9;
/**
*
**
* A change to the throttle usage snapshots singleton.
* <p>
* Throttle usage snapshots SHALL be updated for _every transaction_
* to reflect the amount used for each tps throttle and
* for the gas throttle.
*
*
* .proto.ThrottleUsageSnapshots throttle_usage_snapshots_value = 9;
* @return Whether the throttleUsageSnapshotsValue field is set.
*/
@java.lang.Override
public boolean hasThrottleUsageSnapshotsValue() {
return newValueCase_ == 9;
}
/**
*
**
* A change to the throttle usage snapshots singleton.
* <p>
* Throttle usage snapshots SHALL be updated for _every transaction_
* to reflect the amount used for each tps throttle and
* for the gas throttle.
*
*
* .proto.ThrottleUsageSnapshots throttle_usage_snapshots_value = 9;
* @return The throttleUsageSnapshotsValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots getThrottleUsageSnapshotsValue() {
if (newValueCase_ == 9) {
return (com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots) newValue_;
}
return com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.getDefaultInstance();
}
/**
*
**
* A change to the throttle usage snapshots singleton.
* <p>
* Throttle usage snapshots SHALL be updated for _every transaction_
* to reflect the amount used for each tps throttle and
* for the gas throttle.
*
*
* .proto.ThrottleUsageSnapshots throttle_usage_snapshots_value = 9;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotsOrBuilder getThrottleUsageSnapshotsValueOrBuilder() {
if (newValueCase_ == 9) {
return (com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots) newValue_;
}
return com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.getDefaultInstance();
}
public static final int TIMESTAMP_VALUE_FIELD_NUMBER = 10;
/**
*
**
* A change to a raw `Timestamp` singleton.<br/>
* An example of a raw `Timestamp` singleton is the
* "network freeze time" singleton state, which, if set, stores
* the time for the next scheduled freeze.
*
*
* .proto.Timestamp timestamp_value = 10;
* @return Whether the timestampValue field is set.
*/
@java.lang.Override
public boolean hasTimestampValue() {
return newValueCase_ == 10;
}
/**
*
**
* A change to a raw `Timestamp` singleton.<br/>
* An example of a raw `Timestamp` singleton is the
* "network freeze time" singleton state, which, if set, stores
* the time for the next scheduled freeze.
*
*
* .proto.Timestamp timestamp_value = 10;
* @return The timestampValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Timestamp getTimestampValue() {
if (newValueCase_ == 10) {
return (com.hederahashgraph.api.proto.java.Timestamp) newValue_;
}
return com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance();
}
/**
*
**
* A change to a raw `Timestamp` singleton.<br/>
* An example of a raw `Timestamp` singleton is the
* "network freeze time" singleton state, which, if set, stores
* the time for the next scheduled freeze.
*
*
* .proto.Timestamp timestamp_value = 10;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getTimestampValueOrBuilder() {
if (newValueCase_ == 10) {
return (com.hederahashgraph.api.proto.java.Timestamp) newValue_;
}
return com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance();
}
public static final int BLOCK_STREAM_INFO_VALUE_FIELD_NUMBER = 11;
/**
*
**
* A change to the block stream status singleton.
* <p>
* This MUST be updated at the beginning of a block, with the
* information for the immediately prior block.
*
*
* .com.hedera.hapi.node.state.blockstream.BlockStreamInfo block_stream_info_value = 11;
* @return Whether the blockStreamInfoValue field is set.
*/
@java.lang.Override
public boolean hasBlockStreamInfoValue() {
return newValueCase_ == 11;
}
/**
*
**
* A change to the block stream status singleton.
* <p>
* This MUST be updated at the beginning of a block, with the
* information for the immediately prior block.
*
*
* .com.hedera.hapi.node.state.blockstream.BlockStreamInfo block_stream_info_value = 11;
* @return The blockStreamInfoValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockStreamInfo getBlockStreamInfoValue() {
if (newValueCase_ == 11) {
return (com.hederahashgraph.api.proto.java.BlockStreamInfo) newValue_;
}
return com.hederahashgraph.api.proto.java.BlockStreamInfo.getDefaultInstance();
}
/**
*
**
* A change to the block stream status singleton.
* <p>
* This MUST be updated at the beginning of a block, with the
* information for the immediately prior block.
*
*
* .com.hedera.hapi.node.state.blockstream.BlockStreamInfo block_stream_info_value = 11;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockStreamInfoOrBuilder getBlockStreamInfoValueOrBuilder() {
if (newValueCase_ == 11) {
return (com.hederahashgraph.api.proto.java.BlockStreamInfo) newValue_;
}
return com.hederahashgraph.api.proto.java.BlockStreamInfo.getDefaultInstance();
}
public static final int PLATFORM_STATE_VALUE_FIELD_NUMBER = 12;
/**
*
**
* A change to the platform state singleton.
*
*
* .com.hedera.hapi.platform.state.PlatformState platform_state_value = 12;
* @return Whether the platformStateValue field is set.
*/
@java.lang.Override
public boolean hasPlatformStateValue() {
return newValueCase_ == 12;
}
/**
*
**
* A change to the platform state singleton.
*
*
* .com.hedera.hapi.platform.state.PlatformState platform_state_value = 12;
* @return The platformStateValue.
*/
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.PlatformState getPlatformStateValue() {
if (newValueCase_ == 12) {
return (com.hedera.hapi.platform.state.legacy.PlatformState) newValue_;
}
return com.hedera.hapi.platform.state.legacy.PlatformState.getDefaultInstance();
}
/**
*
**
* A change to the platform state singleton.
*
*
* .com.hedera.hapi.platform.state.PlatformState platform_state_value = 12;
*/
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.PlatformStateOrBuilder getPlatformStateValueOrBuilder() {
if (newValueCase_ == 12) {
return (com.hedera.hapi.platform.state.legacy.PlatformState) newValue_;
}
return com.hedera.hapi.platform.state.legacy.PlatformState.getDefaultInstance();
}
public static final int ROSTER_STATE_VALUE_FIELD_NUMBER = 13;
/**
*
**
* A change to the roster state singleton.
*
*
* .com.hedera.hapi.node.state.roster.RosterState roster_state_value = 13;
* @return Whether the rosterStateValue field is set.
*/
@java.lang.Override
public boolean hasRosterStateValue() {
return newValueCase_ == 13;
}
/**
*
**
* A change to the roster state singleton.
*
*
* .com.hedera.hapi.node.state.roster.RosterState roster_state_value = 13;
* @return The rosterStateValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.RosterState getRosterStateValue() {
if (newValueCase_ == 13) {
return (com.hederahashgraph.api.proto.java.RosterState) newValue_;
}
return com.hederahashgraph.api.proto.java.RosterState.getDefaultInstance();
}
/**
*
**
* A change to the roster state singleton.
*
*
* .com.hedera.hapi.node.state.roster.RosterState roster_state_value = 13;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.RosterStateOrBuilder getRosterStateValueOrBuilder() {
if (newValueCase_ == 13) {
return (com.hederahashgraph.api.proto.java.RosterState) newValue_;
}
return com.hederahashgraph.api.proto.java.RosterState.getDefaultInstance();
}
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 (newValueCase_ == 1) {
output.writeMessage(1, (com.hederahashgraph.api.proto.java.BlockInfo) newValue_);
}
if (newValueCase_ == 2) {
output.writeMessage(2, (com.hederahashgraph.api.proto.java.CongestionLevelStarts) newValue_);
}
if (newValueCase_ == 3) {
output.writeMessage(3, (com.google.protobuf.UInt64Value) newValue_);
}
if (newValueCase_ == 4) {
output.writeMessage(4, (com.hederahashgraph.api.proto.java.ExchangeRateSet) newValue_);
}
if (newValueCase_ == 5) {
output.writeMessage(5, (com.hederahashgraph.api.proto.java.NetworkStakingRewards) newValue_);
}
if (newValueCase_ == 6) {
output.writeMessage(6, (com.google.protobuf.BytesValue) newValue_);
}
if (newValueCase_ == 7) {
output.writeMessage(7, (com.google.protobuf.StringValue) newValue_);
}
if (newValueCase_ == 8) {
output.writeMessage(8, (com.hederahashgraph.api.proto.java.RunningHashes) newValue_);
}
if (newValueCase_ == 9) {
output.writeMessage(9, (com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots) newValue_);
}
if (newValueCase_ == 10) {
output.writeMessage(10, (com.hederahashgraph.api.proto.java.Timestamp) newValue_);
}
if (newValueCase_ == 11) {
output.writeMessage(11, (com.hederahashgraph.api.proto.java.BlockStreamInfo) newValue_);
}
if (newValueCase_ == 12) {
output.writeMessage(12, (com.hedera.hapi.platform.state.legacy.PlatformState) newValue_);
}
if (newValueCase_ == 13) {
output.writeMessage(13, (com.hederahashgraph.api.proto.java.RosterState) newValue_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (newValueCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.hederahashgraph.api.proto.java.BlockInfo) newValue_);
}
if (newValueCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.hederahashgraph.api.proto.java.CongestionLevelStarts) newValue_);
}
if (newValueCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.google.protobuf.UInt64Value) newValue_);
}
if (newValueCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.hederahashgraph.api.proto.java.ExchangeRateSet) newValue_);
}
if (newValueCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.hederahashgraph.api.proto.java.NetworkStakingRewards) newValue_);
}
if (newValueCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.google.protobuf.BytesValue) newValue_);
}
if (newValueCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.google.protobuf.StringValue) newValue_);
}
if (newValueCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (com.hederahashgraph.api.proto.java.RunningHashes) newValue_);
}
if (newValueCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots) newValue_);
}
if (newValueCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (com.hederahashgraph.api.proto.java.Timestamp) newValue_);
}
if (newValueCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (com.hederahashgraph.api.proto.java.BlockStreamInfo) newValue_);
}
if (newValueCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (com.hedera.hapi.platform.state.legacy.PlatformState) newValue_);
}
if (newValueCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (com.hederahashgraph.api.proto.java.RosterState) newValue_);
}
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.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange)) {
return super.equals(obj);
}
com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange other = (com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange) obj;
if (!getNewValueCase().equals(other.getNewValueCase())) return false;
switch (newValueCase_) {
case 1:
if (!getBlockInfoValue()
.equals(other.getBlockInfoValue())) return false;
break;
case 2:
if (!getCongestionLevelStartsValue()
.equals(other.getCongestionLevelStartsValue())) return false;
break;
case 3:
if (!getEntityNumberValue()
.equals(other.getEntityNumberValue())) return false;
break;
case 4:
if (!getExchangeRateSetValue()
.equals(other.getExchangeRateSetValue())) return false;
break;
case 5:
if (!getNetworkStakingRewardsValue()
.equals(other.getNetworkStakingRewardsValue())) return false;
break;
case 6:
if (!getBytesValue()
.equals(other.getBytesValue())) return false;
break;
case 7:
if (!getStringValue()
.equals(other.getStringValue())) return false;
break;
case 8:
if (!getRunningHashesValue()
.equals(other.getRunningHashesValue())) return false;
break;
case 9:
if (!getThrottleUsageSnapshotsValue()
.equals(other.getThrottleUsageSnapshotsValue())) return false;
break;
case 10:
if (!getTimestampValue()
.equals(other.getTimestampValue())) return false;
break;
case 11:
if (!getBlockStreamInfoValue()
.equals(other.getBlockStreamInfoValue())) return false;
break;
case 12:
if (!getPlatformStateValue()
.equals(other.getPlatformStateValue())) return false;
break;
case 13:
if (!getRosterStateValue()
.equals(other.getRosterStateValue())) return false;
break;
case 0:
default:
}
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();
switch (newValueCase_) {
case 1:
hash = (37 * hash) + BLOCK_INFO_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getBlockInfoValue().hashCode();
break;
case 2:
hash = (37 * hash) + CONGESTION_LEVEL_STARTS_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getCongestionLevelStartsValue().hashCode();
break;
case 3:
hash = (37 * hash) + ENTITY_NUMBER_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getEntityNumberValue().hashCode();
break;
case 4:
hash = (37 * hash) + EXCHANGE_RATE_SET_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getExchangeRateSetValue().hashCode();
break;
case 5:
hash = (37 * hash) + NETWORK_STAKING_REWARDS_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getNetworkStakingRewardsValue().hashCode();
break;
case 6:
hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getBytesValue().hashCode();
break;
case 7:
hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getStringValue().hashCode();
break;
case 8:
hash = (37 * hash) + RUNNING_HASHES_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getRunningHashesValue().hashCode();
break;
case 9:
hash = (37 * hash) + THROTTLE_USAGE_SNAPSHOTS_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getThrottleUsageSnapshotsValue().hashCode();
break;
case 10:
hash = (37 * hash) + TIMESTAMP_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getTimestampValue().hashCode();
break;
case 11:
hash = (37 * hash) + BLOCK_STREAM_INFO_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getBlockStreamInfoValue().hashCode();
break;
case 12:
hash = (37 * hash) + PLATFORM_STATE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getPlatformStateValue().hashCode();
break;
case 13:
hash = (37 * hash) + ROSTER_STATE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getRosterStateValue().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange 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.hapi.block.stream.output.protoc.SingletonUpdateChange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange 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.hapi.block.stream.output.protoc.SingletonUpdateChange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange 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.hapi.block.stream.output.protoc.SingletonUpdateChange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange 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.hapi.block.stream.output.protoc.SingletonUpdateChange 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;
}
/**
*
**
* An update to a `Singleton` state.
*
*
* Protobuf type {@code com.hedera.hapi.block.stream.output.SingletonUpdateChange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.hedera.hapi.block.stream.output.SingletonUpdateChange)
com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hapi.block.stream.output.protoc.StateChangesOuterClass.internal_static_com_hedera_hapi_block_stream_output_SingletonUpdateChange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.block.stream.output.protoc.StateChangesOuterClass.internal_static_com_hedera_hapi_block_stream_output_SingletonUpdateChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange.class, com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange.Builder.class);
}
// Construct using com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange.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();
newValueCase_ = 0;
newValue_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hapi.block.stream.output.protoc.StateChangesOuterClass.internal_static_com_hedera_hapi_block_stream_output_SingletonUpdateChange_descriptor;
}
@java.lang.Override
public com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange getDefaultInstanceForType() {
return com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange build() {
com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange buildPartial() {
com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange result = new com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange(this);
if (newValueCase_ == 1) {
if (blockInfoValueBuilder_ == null) {
result.newValue_ = newValue_;
} else {
result.newValue_ = blockInfoValueBuilder_.build();
}
}
if (newValueCase_ == 2) {
if (congestionLevelStartsValueBuilder_ == null) {
result.newValue_ = newValue_;
} else {
result.newValue_ = congestionLevelStartsValueBuilder_.build();
}
}
if (newValueCase_ == 3) {
if (entityNumberValueBuilder_ == null) {
result.newValue_ = newValue_;
} else {
result.newValue_ = entityNumberValueBuilder_.build();
}
}
if (newValueCase_ == 4) {
if (exchangeRateSetValueBuilder_ == null) {
result.newValue_ = newValue_;
} else {
result.newValue_ = exchangeRateSetValueBuilder_.build();
}
}
if (newValueCase_ == 5) {
if (networkStakingRewardsValueBuilder_ == null) {
result.newValue_ = newValue_;
} else {
result.newValue_ = networkStakingRewardsValueBuilder_.build();
}
}
if (newValueCase_ == 6) {
if (bytesValueBuilder_ == null) {
result.newValue_ = newValue_;
} else {
result.newValue_ = bytesValueBuilder_.build();
}
}
if (newValueCase_ == 7) {
if (stringValueBuilder_ == null) {
result.newValue_ = newValue_;
} else {
result.newValue_ = stringValueBuilder_.build();
}
}
if (newValueCase_ == 8) {
if (runningHashesValueBuilder_ == null) {
result.newValue_ = newValue_;
} else {
result.newValue_ = runningHashesValueBuilder_.build();
}
}
if (newValueCase_ == 9) {
if (throttleUsageSnapshotsValueBuilder_ == null) {
result.newValue_ = newValue_;
} else {
result.newValue_ = throttleUsageSnapshotsValueBuilder_.build();
}
}
if (newValueCase_ == 10) {
if (timestampValueBuilder_ == null) {
result.newValue_ = newValue_;
} else {
result.newValue_ = timestampValueBuilder_.build();
}
}
if (newValueCase_ == 11) {
if (blockStreamInfoValueBuilder_ == null) {
result.newValue_ = newValue_;
} else {
result.newValue_ = blockStreamInfoValueBuilder_.build();
}
}
if (newValueCase_ == 12) {
if (platformStateValueBuilder_ == null) {
result.newValue_ = newValue_;
} else {
result.newValue_ = platformStateValueBuilder_.build();
}
}
if (newValueCase_ == 13) {
if (rosterStateValueBuilder_ == null) {
result.newValue_ = newValue_;
} else {
result.newValue_ = rosterStateValueBuilder_.build();
}
}
result.newValueCase_ = newValueCase_;
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.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange) {
return mergeFrom((com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange other) {
if (other == com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange.getDefaultInstance()) return this;
switch (other.getNewValueCase()) {
case BLOCK_INFO_VALUE: {
mergeBlockInfoValue(other.getBlockInfoValue());
break;
}
case CONGESTION_LEVEL_STARTS_VALUE: {
mergeCongestionLevelStartsValue(other.getCongestionLevelStartsValue());
break;
}
case ENTITY_NUMBER_VALUE: {
mergeEntityNumberValue(other.getEntityNumberValue());
break;
}
case EXCHANGE_RATE_SET_VALUE: {
mergeExchangeRateSetValue(other.getExchangeRateSetValue());
break;
}
case NETWORK_STAKING_REWARDS_VALUE: {
mergeNetworkStakingRewardsValue(other.getNetworkStakingRewardsValue());
break;
}
case BYTES_VALUE: {
mergeBytesValue(other.getBytesValue());
break;
}
case STRING_VALUE: {
mergeStringValue(other.getStringValue());
break;
}
case RUNNING_HASHES_VALUE: {
mergeRunningHashesValue(other.getRunningHashesValue());
break;
}
case THROTTLE_USAGE_SNAPSHOTS_VALUE: {
mergeThrottleUsageSnapshotsValue(other.getThrottleUsageSnapshotsValue());
break;
}
case TIMESTAMP_VALUE: {
mergeTimestampValue(other.getTimestampValue());
break;
}
case BLOCK_STREAM_INFO_VALUE: {
mergeBlockStreamInfoValue(other.getBlockStreamInfoValue());
break;
}
case PLATFORM_STATE_VALUE: {
mergePlatformStateValue(other.getPlatformStateValue());
break;
}
case ROSTER_STATE_VALUE: {
mergeRosterStateValue(other.getRosterStateValue());
break;
}
case NEWVALUE_NOT_SET: {
break;
}
}
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.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int newValueCase_ = 0;
private java.lang.Object newValue_;
public NewValueCase
getNewValueCase() {
return NewValueCase.forNumber(
newValueCase_);
}
public Builder clearNewValue() {
newValueCase_ = 0;
newValue_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.BlockInfo, com.hederahashgraph.api.proto.java.BlockInfo.Builder, com.hederahashgraph.api.proto.java.BlockInfoOrBuilder> blockInfoValueBuilder_;
/**
*
**
* A change to the block info singleton.
* <p>
* The `BlockInfo` SHALL be updated at the end of every block and
* SHALL store, among other fields, the last 256 block hash values.
* <blockquote>REVIEW NOTE<blockquote>
* The full BlockInfo will be in the state proof, and may not be
* necessary here.</blockquote></blockquote>
*
*
* .proto.BlockInfo block_info_value = 1;
* @return Whether the blockInfoValue field is set.
*/
@java.lang.Override
public boolean hasBlockInfoValue() {
return newValueCase_ == 1;
}
/**
*
**
* A change to the block info singleton.
* <p>
* The `BlockInfo` SHALL be updated at the end of every block and
* SHALL store, among other fields, the last 256 block hash values.
* <blockquote>REVIEW NOTE<blockquote>
* The full BlockInfo will be in the state proof, and may not be
* necessary here.</blockquote></blockquote>
*
*
* .proto.BlockInfo block_info_value = 1;
* @return The blockInfoValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockInfo getBlockInfoValue() {
if (blockInfoValueBuilder_ == null) {
if (newValueCase_ == 1) {
return (com.hederahashgraph.api.proto.java.BlockInfo) newValue_;
}
return com.hederahashgraph.api.proto.java.BlockInfo.getDefaultInstance();
} else {
if (newValueCase_ == 1) {
return blockInfoValueBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.BlockInfo.getDefaultInstance();
}
}
/**
*
**
* A change to the block info singleton.
* <p>
* The `BlockInfo` SHALL be updated at the end of every block and
* SHALL store, among other fields, the last 256 block hash values.
* <blockquote>REVIEW NOTE<blockquote>
* The full BlockInfo will be in the state proof, and may not be
* necessary here.</blockquote></blockquote>
*
*
* .proto.BlockInfo block_info_value = 1;
*/
public Builder setBlockInfoValue(com.hederahashgraph.api.proto.java.BlockInfo value) {
if (blockInfoValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newValue_ = value;
onChanged();
} else {
blockInfoValueBuilder_.setMessage(value);
}
newValueCase_ = 1;
return this;
}
/**
*
**
* A change to the block info singleton.
* <p>
* The `BlockInfo` SHALL be updated at the end of every block and
* SHALL store, among other fields, the last 256 block hash values.
* <blockquote>REVIEW NOTE<blockquote>
* The full BlockInfo will be in the state proof, and may not be
* necessary here.</blockquote></blockquote>
*
*
* .proto.BlockInfo block_info_value = 1;
*/
public Builder setBlockInfoValue(
com.hederahashgraph.api.proto.java.BlockInfo.Builder builderForValue) {
if (blockInfoValueBuilder_ == null) {
newValue_ = builderForValue.build();
onChanged();
} else {
blockInfoValueBuilder_.setMessage(builderForValue.build());
}
newValueCase_ = 1;
return this;
}
/**
*
**
* A change to the block info singleton.
* <p>
* The `BlockInfo` SHALL be updated at the end of every block and
* SHALL store, among other fields, the last 256 block hash values.
* <blockquote>REVIEW NOTE<blockquote>
* The full BlockInfo will be in the state proof, and may not be
* necessary here.</blockquote></blockquote>
*
*
* .proto.BlockInfo block_info_value = 1;
*/
public Builder mergeBlockInfoValue(com.hederahashgraph.api.proto.java.BlockInfo value) {
if (blockInfoValueBuilder_ == null) {
if (newValueCase_ == 1 &&
newValue_ != com.hederahashgraph.api.proto.java.BlockInfo.getDefaultInstance()) {
newValue_ = com.hederahashgraph.api.proto.java.BlockInfo.newBuilder((com.hederahashgraph.api.proto.java.BlockInfo) newValue_)
.mergeFrom(value).buildPartial();
} else {
newValue_ = value;
}
onChanged();
} else {
if (newValueCase_ == 1) {
blockInfoValueBuilder_.mergeFrom(value);
}
blockInfoValueBuilder_.setMessage(value);
}
newValueCase_ = 1;
return this;
}
/**
*
**
* A change to the block info singleton.
* <p>
* The `BlockInfo` SHALL be updated at the end of every block and
* SHALL store, among other fields, the last 256 block hash values.
* <blockquote>REVIEW NOTE<blockquote>
* The full BlockInfo will be in the state proof, and may not be
* necessary here.</blockquote></blockquote>
*
*
* .proto.BlockInfo block_info_value = 1;
*/
public Builder clearBlockInfoValue() {
if (blockInfoValueBuilder_ == null) {
if (newValueCase_ == 1) {
newValueCase_ = 0;
newValue_ = null;
onChanged();
}
} else {
if (newValueCase_ == 1) {
newValueCase_ = 0;
newValue_ = null;
}
blockInfoValueBuilder_.clear();
}
return this;
}
/**
*
**
* A change to the block info singleton.
* <p>
* The `BlockInfo` SHALL be updated at the end of every block and
* SHALL store, among other fields, the last 256 block hash values.
* <blockquote>REVIEW NOTE<blockquote>
* The full BlockInfo will be in the state proof, and may not be
* necessary here.</blockquote></blockquote>
*
*
* .proto.BlockInfo block_info_value = 1;
*/
public com.hederahashgraph.api.proto.java.BlockInfo.Builder getBlockInfoValueBuilder() {
return getBlockInfoValueFieldBuilder().getBuilder();
}
/**
*
**
* A change to the block info singleton.
* <p>
* The `BlockInfo` SHALL be updated at the end of every block and
* SHALL store, among other fields, the last 256 block hash values.
* <blockquote>REVIEW NOTE<blockquote>
* The full BlockInfo will be in the state proof, and may not be
* necessary here.</blockquote></blockquote>
*
*
* .proto.BlockInfo block_info_value = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockInfoOrBuilder getBlockInfoValueOrBuilder() {
if ((newValueCase_ == 1) && (blockInfoValueBuilder_ != null)) {
return blockInfoValueBuilder_.getMessageOrBuilder();
} else {
if (newValueCase_ == 1) {
return (com.hederahashgraph.api.proto.java.BlockInfo) newValue_;
}
return com.hederahashgraph.api.proto.java.BlockInfo.getDefaultInstance();
}
}
/**
*
**
* A change to the block info singleton.
* <p>
* The `BlockInfo` SHALL be updated at the end of every block and
* SHALL store, among other fields, the last 256 block hash values.
* <blockquote>REVIEW NOTE<blockquote>
* The full BlockInfo will be in the state proof, and may not be
* necessary here.</blockquote></blockquote>
*
*
* .proto.BlockInfo block_info_value = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.BlockInfo, com.hederahashgraph.api.proto.java.BlockInfo.Builder, com.hederahashgraph.api.proto.java.BlockInfoOrBuilder>
getBlockInfoValueFieldBuilder() {
if (blockInfoValueBuilder_ == null) {
if (!(newValueCase_ == 1)) {
newValue_ = com.hederahashgraph.api.proto.java.BlockInfo.getDefaultInstance();
}
blockInfoValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.BlockInfo, com.hederahashgraph.api.proto.java.BlockInfo.Builder, com.hederahashgraph.api.proto.java.BlockInfoOrBuilder>(
(com.hederahashgraph.api.proto.java.BlockInfo) newValue_,
getParentForChildren(),
isClean());
newValue_ = null;
}
newValueCase_ = 1;
onChanged();;
return blockInfoValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.CongestionLevelStarts, com.hederahashgraph.api.proto.java.CongestionLevelStarts.Builder, com.hederahashgraph.api.proto.java.CongestionLevelStartsOrBuilder> congestionLevelStartsValueBuilder_;
/**
*
**
* A change to the congestion level starts singleton.
* <p>
* This change SHALL be present if congestion level pricing for
* general fees or gas fees started during the current block.
*
*
* .proto.CongestionLevelStarts congestion_level_starts_value = 2;
* @return Whether the congestionLevelStartsValue field is set.
*/
@java.lang.Override
public boolean hasCongestionLevelStartsValue() {
return newValueCase_ == 2;
}
/**
*
**
* A change to the congestion level starts singleton.
* <p>
* This change SHALL be present if congestion level pricing for
* general fees or gas fees started during the current block.
*
*
* .proto.CongestionLevelStarts congestion_level_starts_value = 2;
* @return The congestionLevelStartsValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.CongestionLevelStarts getCongestionLevelStartsValue() {
if (congestionLevelStartsValueBuilder_ == null) {
if (newValueCase_ == 2) {
return (com.hederahashgraph.api.proto.java.CongestionLevelStarts) newValue_;
}
return com.hederahashgraph.api.proto.java.CongestionLevelStarts.getDefaultInstance();
} else {
if (newValueCase_ == 2) {
return congestionLevelStartsValueBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.CongestionLevelStarts.getDefaultInstance();
}
}
/**
*
**
* A change to the congestion level starts singleton.
* <p>
* This change SHALL be present if congestion level pricing for
* general fees or gas fees started during the current block.
*
*
* .proto.CongestionLevelStarts congestion_level_starts_value = 2;
*/
public Builder setCongestionLevelStartsValue(com.hederahashgraph.api.proto.java.CongestionLevelStarts value) {
if (congestionLevelStartsValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newValue_ = value;
onChanged();
} else {
congestionLevelStartsValueBuilder_.setMessage(value);
}
newValueCase_ = 2;
return this;
}
/**
*
**
* A change to the congestion level starts singleton.
* <p>
* This change SHALL be present if congestion level pricing for
* general fees or gas fees started during the current block.
*
*
* .proto.CongestionLevelStarts congestion_level_starts_value = 2;
*/
public Builder setCongestionLevelStartsValue(
com.hederahashgraph.api.proto.java.CongestionLevelStarts.Builder builderForValue) {
if (congestionLevelStartsValueBuilder_ == null) {
newValue_ = builderForValue.build();
onChanged();
} else {
congestionLevelStartsValueBuilder_.setMessage(builderForValue.build());
}
newValueCase_ = 2;
return this;
}
/**
*
**
* A change to the congestion level starts singleton.
* <p>
* This change SHALL be present if congestion level pricing for
* general fees or gas fees started during the current block.
*
*
* .proto.CongestionLevelStarts congestion_level_starts_value = 2;
*/
public Builder mergeCongestionLevelStartsValue(com.hederahashgraph.api.proto.java.CongestionLevelStarts value) {
if (congestionLevelStartsValueBuilder_ == null) {
if (newValueCase_ == 2 &&
newValue_ != com.hederahashgraph.api.proto.java.CongestionLevelStarts.getDefaultInstance()) {
newValue_ = com.hederahashgraph.api.proto.java.CongestionLevelStarts.newBuilder((com.hederahashgraph.api.proto.java.CongestionLevelStarts) newValue_)
.mergeFrom(value).buildPartial();
} else {
newValue_ = value;
}
onChanged();
} else {
if (newValueCase_ == 2) {
congestionLevelStartsValueBuilder_.mergeFrom(value);
}
congestionLevelStartsValueBuilder_.setMessage(value);
}
newValueCase_ = 2;
return this;
}
/**
*
**
* A change to the congestion level starts singleton.
* <p>
* This change SHALL be present if congestion level pricing for
* general fees or gas fees started during the current block.
*
*
* .proto.CongestionLevelStarts congestion_level_starts_value = 2;
*/
public Builder clearCongestionLevelStartsValue() {
if (congestionLevelStartsValueBuilder_ == null) {
if (newValueCase_ == 2) {
newValueCase_ = 0;
newValue_ = null;
onChanged();
}
} else {
if (newValueCase_ == 2) {
newValueCase_ = 0;
newValue_ = null;
}
congestionLevelStartsValueBuilder_.clear();
}
return this;
}
/**
*
**
* A change to the congestion level starts singleton.
* <p>
* This change SHALL be present if congestion level pricing for
* general fees or gas fees started during the current block.
*
*
* .proto.CongestionLevelStarts congestion_level_starts_value = 2;
*/
public com.hederahashgraph.api.proto.java.CongestionLevelStarts.Builder getCongestionLevelStartsValueBuilder() {
return getCongestionLevelStartsValueFieldBuilder().getBuilder();
}
/**
*
**
* A change to the congestion level starts singleton.
* <p>
* This change SHALL be present if congestion level pricing for
* general fees or gas fees started during the current block.
*
*
* .proto.CongestionLevelStarts congestion_level_starts_value = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.CongestionLevelStartsOrBuilder getCongestionLevelStartsValueOrBuilder() {
if ((newValueCase_ == 2) && (congestionLevelStartsValueBuilder_ != null)) {
return congestionLevelStartsValueBuilder_.getMessageOrBuilder();
} else {
if (newValueCase_ == 2) {
return (com.hederahashgraph.api.proto.java.CongestionLevelStarts) newValue_;
}
return com.hederahashgraph.api.proto.java.CongestionLevelStarts.getDefaultInstance();
}
}
/**
*
**
* A change to the congestion level starts singleton.
* <p>
* This change SHALL be present if congestion level pricing for
* general fees or gas fees started during the current block.
*
*
* .proto.CongestionLevelStarts congestion_level_starts_value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.CongestionLevelStarts, com.hederahashgraph.api.proto.java.CongestionLevelStarts.Builder, com.hederahashgraph.api.proto.java.CongestionLevelStartsOrBuilder>
getCongestionLevelStartsValueFieldBuilder() {
if (congestionLevelStartsValueBuilder_ == null) {
if (!(newValueCase_ == 2)) {
newValue_ = com.hederahashgraph.api.proto.java.CongestionLevelStarts.getDefaultInstance();
}
congestionLevelStartsValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.CongestionLevelStarts, com.hederahashgraph.api.proto.java.CongestionLevelStarts.Builder, com.hederahashgraph.api.proto.java.CongestionLevelStartsOrBuilder>(
(com.hederahashgraph.api.proto.java.CongestionLevelStarts) newValue_,
getParentForChildren(),
isClean());
newValue_ = null;
}
newValueCase_ = 2;
onChanged();;
return congestionLevelStartsValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> entityNumberValueBuilder_;
/**
*
**
* A change to the Entity Identifier singleton.
* <p>
* The Entity Identifier singleton SHALL track the highest entity
* identifier used for the current shard and realm and SHALL be used
* to issue new entity numbers.
*
*
* .google.protobuf.UInt64Value entity_number_value = 3;
* @return Whether the entityNumberValue field is set.
*/
@java.lang.Override
public boolean hasEntityNumberValue() {
return newValueCase_ == 3;
}
/**
*
**
* A change to the Entity Identifier singleton.
* <p>
* The Entity Identifier singleton SHALL track the highest entity
* identifier used for the current shard and realm and SHALL be used
* to issue new entity numbers.
*
*
* .google.protobuf.UInt64Value entity_number_value = 3;
* @return The entityNumberValue.
*/
@java.lang.Override
public com.google.protobuf.UInt64Value getEntityNumberValue() {
if (entityNumberValueBuilder_ == null) {
if (newValueCase_ == 3) {
return (com.google.protobuf.UInt64Value) newValue_;
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
} else {
if (newValueCase_ == 3) {
return entityNumberValueBuilder_.getMessage();
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
}
}
/**
*
**
* A change to the Entity Identifier singleton.
* <p>
* The Entity Identifier singleton SHALL track the highest entity
* identifier used for the current shard and realm and SHALL be used
* to issue new entity numbers.
*
*
* .google.protobuf.UInt64Value entity_number_value = 3;
*/
public Builder setEntityNumberValue(com.google.protobuf.UInt64Value value) {
if (entityNumberValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newValue_ = value;
onChanged();
} else {
entityNumberValueBuilder_.setMessage(value);
}
newValueCase_ = 3;
return this;
}
/**
*
**
* A change to the Entity Identifier singleton.
* <p>
* The Entity Identifier singleton SHALL track the highest entity
* identifier used for the current shard and realm and SHALL be used
* to issue new entity numbers.
*
*
* .google.protobuf.UInt64Value entity_number_value = 3;
*/
public Builder setEntityNumberValue(
com.google.protobuf.UInt64Value.Builder builderForValue) {
if (entityNumberValueBuilder_ == null) {
newValue_ = builderForValue.build();
onChanged();
} else {
entityNumberValueBuilder_.setMessage(builderForValue.build());
}
newValueCase_ = 3;
return this;
}
/**
*
**
* A change to the Entity Identifier singleton.
* <p>
* The Entity Identifier singleton SHALL track the highest entity
* identifier used for the current shard and realm and SHALL be used
* to issue new entity numbers.
*
*
* .google.protobuf.UInt64Value entity_number_value = 3;
*/
public Builder mergeEntityNumberValue(com.google.protobuf.UInt64Value value) {
if (entityNumberValueBuilder_ == null) {
if (newValueCase_ == 3 &&
newValue_ != com.google.protobuf.UInt64Value.getDefaultInstance()) {
newValue_ = com.google.protobuf.UInt64Value.newBuilder((com.google.protobuf.UInt64Value) newValue_)
.mergeFrom(value).buildPartial();
} else {
newValue_ = value;
}
onChanged();
} else {
if (newValueCase_ == 3) {
entityNumberValueBuilder_.mergeFrom(value);
}
entityNumberValueBuilder_.setMessage(value);
}
newValueCase_ = 3;
return this;
}
/**
*
**
* A change to the Entity Identifier singleton.
* <p>
* The Entity Identifier singleton SHALL track the highest entity
* identifier used for the current shard and realm and SHALL be used
* to issue new entity numbers.
*
*
* .google.protobuf.UInt64Value entity_number_value = 3;
*/
public Builder clearEntityNumberValue() {
if (entityNumberValueBuilder_ == null) {
if (newValueCase_ == 3) {
newValueCase_ = 0;
newValue_ = null;
onChanged();
}
} else {
if (newValueCase_ == 3) {
newValueCase_ = 0;
newValue_ = null;
}
entityNumberValueBuilder_.clear();
}
return this;
}
/**
*
**
* A change to the Entity Identifier singleton.
* <p>
* The Entity Identifier singleton SHALL track the highest entity
* identifier used for the current shard and realm and SHALL be used
* to issue new entity numbers.
*
*
* .google.protobuf.UInt64Value entity_number_value = 3;
*/
public com.google.protobuf.UInt64Value.Builder getEntityNumberValueBuilder() {
return getEntityNumberValueFieldBuilder().getBuilder();
}
/**
*
**
* A change to the Entity Identifier singleton.
* <p>
* The Entity Identifier singleton SHALL track the highest entity
* identifier used for the current shard and realm and SHALL be used
* to issue new entity numbers.
*
*
* .google.protobuf.UInt64Value entity_number_value = 3;
*/
@java.lang.Override
public com.google.protobuf.UInt64ValueOrBuilder getEntityNumberValueOrBuilder() {
if ((newValueCase_ == 3) && (entityNumberValueBuilder_ != null)) {
return entityNumberValueBuilder_.getMessageOrBuilder();
} else {
if (newValueCase_ == 3) {
return (com.google.protobuf.UInt64Value) newValue_;
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
}
}
/**
*
**
* A change to the Entity Identifier singleton.
* <p>
* The Entity Identifier singleton SHALL track the highest entity
* identifier used for the current shard and realm and SHALL be used
* to issue new entity numbers.
*
*
* .google.protobuf.UInt64Value entity_number_value = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>
getEntityNumberValueFieldBuilder() {
if (entityNumberValueBuilder_ == null) {
if (!(newValueCase_ == 3)) {
newValue_ = com.google.protobuf.UInt64Value.getDefaultInstance();
}
entityNumberValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>(
(com.google.protobuf.UInt64Value) newValue_,
getParentForChildren(),
isClean());
newValue_ = null;
}
newValueCase_ = 3;
onChanged();;
return entityNumberValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ExchangeRateSet, com.hederahashgraph.api.proto.java.ExchangeRateSet.Builder, com.hederahashgraph.api.proto.java.ExchangeRateSetOrBuilder> exchangeRateSetValueBuilder_;
/**
*
**
* A change to the exchange rates singleton.
* <p>
* This change SHALL be present if the <tt>HBAR<=>USD</tt> exchange
* rate, as stored in the "midnight rates" singleton changed
* during the current block.
*
*
* .proto.ExchangeRateSet exchange_rate_set_value = 4;
* @return Whether the exchangeRateSetValue field is set.
*/
@java.lang.Override
public boolean hasExchangeRateSetValue() {
return newValueCase_ == 4;
}
/**
*
**
* A change to the exchange rates singleton.
* <p>
* This change SHALL be present if the <tt>HBAR<=>USD</tt> exchange
* rate, as stored in the "midnight rates" singleton changed
* during the current block.
*
*
* .proto.ExchangeRateSet exchange_rate_set_value = 4;
* @return The exchangeRateSetValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ExchangeRateSet getExchangeRateSetValue() {
if (exchangeRateSetValueBuilder_ == null) {
if (newValueCase_ == 4) {
return (com.hederahashgraph.api.proto.java.ExchangeRateSet) newValue_;
}
return com.hederahashgraph.api.proto.java.ExchangeRateSet.getDefaultInstance();
} else {
if (newValueCase_ == 4) {
return exchangeRateSetValueBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.ExchangeRateSet.getDefaultInstance();
}
}
/**
*
**
* A change to the exchange rates singleton.
* <p>
* This change SHALL be present if the <tt>HBAR<=>USD</tt> exchange
* rate, as stored in the "midnight rates" singleton changed
* during the current block.
*
*
* .proto.ExchangeRateSet exchange_rate_set_value = 4;
*/
public Builder setExchangeRateSetValue(com.hederahashgraph.api.proto.java.ExchangeRateSet value) {
if (exchangeRateSetValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newValue_ = value;
onChanged();
} else {
exchangeRateSetValueBuilder_.setMessage(value);
}
newValueCase_ = 4;
return this;
}
/**
*
**
* A change to the exchange rates singleton.
* <p>
* This change SHALL be present if the <tt>HBAR<=>USD</tt> exchange
* rate, as stored in the "midnight rates" singleton changed
* during the current block.
*
*
* .proto.ExchangeRateSet exchange_rate_set_value = 4;
*/
public Builder setExchangeRateSetValue(
com.hederahashgraph.api.proto.java.ExchangeRateSet.Builder builderForValue) {
if (exchangeRateSetValueBuilder_ == null) {
newValue_ = builderForValue.build();
onChanged();
} else {
exchangeRateSetValueBuilder_.setMessage(builderForValue.build());
}
newValueCase_ = 4;
return this;
}
/**
*
**
* A change to the exchange rates singleton.
* <p>
* This change SHALL be present if the <tt>HBAR<=>USD</tt> exchange
* rate, as stored in the "midnight rates" singleton changed
* during the current block.
*
*
* .proto.ExchangeRateSet exchange_rate_set_value = 4;
*/
public Builder mergeExchangeRateSetValue(com.hederahashgraph.api.proto.java.ExchangeRateSet value) {
if (exchangeRateSetValueBuilder_ == null) {
if (newValueCase_ == 4 &&
newValue_ != com.hederahashgraph.api.proto.java.ExchangeRateSet.getDefaultInstance()) {
newValue_ = com.hederahashgraph.api.proto.java.ExchangeRateSet.newBuilder((com.hederahashgraph.api.proto.java.ExchangeRateSet) newValue_)
.mergeFrom(value).buildPartial();
} else {
newValue_ = value;
}
onChanged();
} else {
if (newValueCase_ == 4) {
exchangeRateSetValueBuilder_.mergeFrom(value);
}
exchangeRateSetValueBuilder_.setMessage(value);
}
newValueCase_ = 4;
return this;
}
/**
*
**
* A change to the exchange rates singleton.
* <p>
* This change SHALL be present if the <tt>HBAR<=>USD</tt> exchange
* rate, as stored in the "midnight rates" singleton changed
* during the current block.
*
*
* .proto.ExchangeRateSet exchange_rate_set_value = 4;
*/
public Builder clearExchangeRateSetValue() {
if (exchangeRateSetValueBuilder_ == null) {
if (newValueCase_ == 4) {
newValueCase_ = 0;
newValue_ = null;
onChanged();
}
} else {
if (newValueCase_ == 4) {
newValueCase_ = 0;
newValue_ = null;
}
exchangeRateSetValueBuilder_.clear();
}
return this;
}
/**
*
**
* A change to the exchange rates singleton.
* <p>
* This change SHALL be present if the <tt>HBAR<=>USD</tt> exchange
* rate, as stored in the "midnight rates" singleton changed
* during the current block.
*
*
* .proto.ExchangeRateSet exchange_rate_set_value = 4;
*/
public com.hederahashgraph.api.proto.java.ExchangeRateSet.Builder getExchangeRateSetValueBuilder() {
return getExchangeRateSetValueFieldBuilder().getBuilder();
}
/**
*
**
* A change to the exchange rates singleton.
* <p>
* This change SHALL be present if the <tt>HBAR<=>USD</tt> exchange
* rate, as stored in the "midnight rates" singleton changed
* during the current block.
*
*
* .proto.ExchangeRateSet exchange_rate_set_value = 4;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ExchangeRateSetOrBuilder getExchangeRateSetValueOrBuilder() {
if ((newValueCase_ == 4) && (exchangeRateSetValueBuilder_ != null)) {
return exchangeRateSetValueBuilder_.getMessageOrBuilder();
} else {
if (newValueCase_ == 4) {
return (com.hederahashgraph.api.proto.java.ExchangeRateSet) newValue_;
}
return com.hederahashgraph.api.proto.java.ExchangeRateSet.getDefaultInstance();
}
}
/**
*
**
* A change to the exchange rates singleton.
* <p>
* This change SHALL be present if the <tt>HBAR<=>USD</tt> exchange
* rate, as stored in the "midnight rates" singleton changed
* during the current block.
*
*
* .proto.ExchangeRateSet exchange_rate_set_value = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ExchangeRateSet, com.hederahashgraph.api.proto.java.ExchangeRateSet.Builder, com.hederahashgraph.api.proto.java.ExchangeRateSetOrBuilder>
getExchangeRateSetValueFieldBuilder() {
if (exchangeRateSetValueBuilder_ == null) {
if (!(newValueCase_ == 4)) {
newValue_ = com.hederahashgraph.api.proto.java.ExchangeRateSet.getDefaultInstance();
}
exchangeRateSetValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ExchangeRateSet, com.hederahashgraph.api.proto.java.ExchangeRateSet.Builder, com.hederahashgraph.api.proto.java.ExchangeRateSetOrBuilder>(
(com.hederahashgraph.api.proto.java.ExchangeRateSet) newValue_,
getParentForChildren(),
isClean());
newValue_ = null;
}
newValueCase_ = 4;
onChanged();;
return exchangeRateSetValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.NetworkStakingRewards, com.hederahashgraph.api.proto.java.NetworkStakingRewards.Builder, com.hederahashgraph.api.proto.java.NetworkStakingRewardsOrBuilder> networkStakingRewardsValueBuilder_;
/**
*
**
* A change to the network staking rewards singleton.
* <p>
* Network staking rewards SHALL be updated for every non-empty block.
*
*
* .proto.NetworkStakingRewards network_staking_rewards_value = 5;
* @return Whether the networkStakingRewardsValue field is set.
*/
@java.lang.Override
public boolean hasNetworkStakingRewardsValue() {
return newValueCase_ == 5;
}
/**
*
**
* A change to the network staking rewards singleton.
* <p>
* Network staking rewards SHALL be updated for every non-empty block.
*
*
* .proto.NetworkStakingRewards network_staking_rewards_value = 5;
* @return The networkStakingRewardsValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.NetworkStakingRewards getNetworkStakingRewardsValue() {
if (networkStakingRewardsValueBuilder_ == null) {
if (newValueCase_ == 5) {
return (com.hederahashgraph.api.proto.java.NetworkStakingRewards) newValue_;
}
return com.hederahashgraph.api.proto.java.NetworkStakingRewards.getDefaultInstance();
} else {
if (newValueCase_ == 5) {
return networkStakingRewardsValueBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.NetworkStakingRewards.getDefaultInstance();
}
}
/**
*
**
* A change to the network staking rewards singleton.
* <p>
* Network staking rewards SHALL be updated for every non-empty block.
*
*
* .proto.NetworkStakingRewards network_staking_rewards_value = 5;
*/
public Builder setNetworkStakingRewardsValue(com.hederahashgraph.api.proto.java.NetworkStakingRewards value) {
if (networkStakingRewardsValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newValue_ = value;
onChanged();
} else {
networkStakingRewardsValueBuilder_.setMessage(value);
}
newValueCase_ = 5;
return this;
}
/**
*
**
* A change to the network staking rewards singleton.
* <p>
* Network staking rewards SHALL be updated for every non-empty block.
*
*
* .proto.NetworkStakingRewards network_staking_rewards_value = 5;
*/
public Builder setNetworkStakingRewardsValue(
com.hederahashgraph.api.proto.java.NetworkStakingRewards.Builder builderForValue) {
if (networkStakingRewardsValueBuilder_ == null) {
newValue_ = builderForValue.build();
onChanged();
} else {
networkStakingRewardsValueBuilder_.setMessage(builderForValue.build());
}
newValueCase_ = 5;
return this;
}
/**
*
**
* A change to the network staking rewards singleton.
* <p>
* Network staking rewards SHALL be updated for every non-empty block.
*
*
* .proto.NetworkStakingRewards network_staking_rewards_value = 5;
*/
public Builder mergeNetworkStakingRewardsValue(com.hederahashgraph.api.proto.java.NetworkStakingRewards value) {
if (networkStakingRewardsValueBuilder_ == null) {
if (newValueCase_ == 5 &&
newValue_ != com.hederahashgraph.api.proto.java.NetworkStakingRewards.getDefaultInstance()) {
newValue_ = com.hederahashgraph.api.proto.java.NetworkStakingRewards.newBuilder((com.hederahashgraph.api.proto.java.NetworkStakingRewards) newValue_)
.mergeFrom(value).buildPartial();
} else {
newValue_ = value;
}
onChanged();
} else {
if (newValueCase_ == 5) {
networkStakingRewardsValueBuilder_.mergeFrom(value);
}
networkStakingRewardsValueBuilder_.setMessage(value);
}
newValueCase_ = 5;
return this;
}
/**
*
**
* A change to the network staking rewards singleton.
* <p>
* Network staking rewards SHALL be updated for every non-empty block.
*
*
* .proto.NetworkStakingRewards network_staking_rewards_value = 5;
*/
public Builder clearNetworkStakingRewardsValue() {
if (networkStakingRewardsValueBuilder_ == null) {
if (newValueCase_ == 5) {
newValueCase_ = 0;
newValue_ = null;
onChanged();
}
} else {
if (newValueCase_ == 5) {
newValueCase_ = 0;
newValue_ = null;
}
networkStakingRewardsValueBuilder_.clear();
}
return this;
}
/**
*
**
* A change to the network staking rewards singleton.
* <p>
* Network staking rewards SHALL be updated for every non-empty block.
*
*
* .proto.NetworkStakingRewards network_staking_rewards_value = 5;
*/
public com.hederahashgraph.api.proto.java.NetworkStakingRewards.Builder getNetworkStakingRewardsValueBuilder() {
return getNetworkStakingRewardsValueFieldBuilder().getBuilder();
}
/**
*
**
* A change to the network staking rewards singleton.
* <p>
* Network staking rewards SHALL be updated for every non-empty block.
*
*
* .proto.NetworkStakingRewards network_staking_rewards_value = 5;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.NetworkStakingRewardsOrBuilder getNetworkStakingRewardsValueOrBuilder() {
if ((newValueCase_ == 5) && (networkStakingRewardsValueBuilder_ != null)) {
return networkStakingRewardsValueBuilder_.getMessageOrBuilder();
} else {
if (newValueCase_ == 5) {
return (com.hederahashgraph.api.proto.java.NetworkStakingRewards) newValue_;
}
return com.hederahashgraph.api.proto.java.NetworkStakingRewards.getDefaultInstance();
}
}
/**
*
**
* A change to the network staking rewards singleton.
* <p>
* Network staking rewards SHALL be updated for every non-empty block.
*
*
* .proto.NetworkStakingRewards network_staking_rewards_value = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.NetworkStakingRewards, com.hederahashgraph.api.proto.java.NetworkStakingRewards.Builder, com.hederahashgraph.api.proto.java.NetworkStakingRewardsOrBuilder>
getNetworkStakingRewardsValueFieldBuilder() {
if (networkStakingRewardsValueBuilder_ == null) {
if (!(newValueCase_ == 5)) {
newValue_ = com.hederahashgraph.api.proto.java.NetworkStakingRewards.getDefaultInstance();
}
networkStakingRewardsValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.NetworkStakingRewards, com.hederahashgraph.api.proto.java.NetworkStakingRewards.Builder, com.hederahashgraph.api.proto.java.NetworkStakingRewardsOrBuilder>(
(com.hederahashgraph.api.proto.java.NetworkStakingRewards) newValue_,
getParentForChildren(),
isClean());
newValue_ = null;
}
newValueCase_ = 5;
onChanged();;
return networkStakingRewardsValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> bytesValueBuilder_;
/**
*
**
* A change to a raw byte array singleton.
* <p>
* This change SHALL present a change made to a raw byte array
* singleton.<br/>
* The "upgrade file hash" state is an example of a raw byte
* array singleton.
*
*
* .google.protobuf.BytesValue bytes_value = 6;
* @return Whether the bytesValue field is set.
*/
@java.lang.Override
public boolean hasBytesValue() {
return newValueCase_ == 6;
}
/**
*
**
* A change to a raw byte array singleton.
* <p>
* This change SHALL present a change made to a raw byte array
* singleton.<br/>
* The "upgrade file hash" state is an example of a raw byte
* array singleton.
*
*
* .google.protobuf.BytesValue bytes_value = 6;
* @return The bytesValue.
*/
@java.lang.Override
public com.google.protobuf.BytesValue getBytesValue() {
if (bytesValueBuilder_ == null) {
if (newValueCase_ == 6) {
return (com.google.protobuf.BytesValue) newValue_;
}
return com.google.protobuf.BytesValue.getDefaultInstance();
} else {
if (newValueCase_ == 6) {
return bytesValueBuilder_.getMessage();
}
return com.google.protobuf.BytesValue.getDefaultInstance();
}
}
/**
*
**
* A change to a raw byte array singleton.
* <p>
* This change SHALL present a change made to a raw byte array
* singleton.<br/>
* The "upgrade file hash" state is an example of a raw byte
* array singleton.
*
*
* .google.protobuf.BytesValue bytes_value = 6;
*/
public Builder setBytesValue(com.google.protobuf.BytesValue value) {
if (bytesValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newValue_ = value;
onChanged();
} else {
bytesValueBuilder_.setMessage(value);
}
newValueCase_ = 6;
return this;
}
/**
*
**
* A change to a raw byte array singleton.
* <p>
* This change SHALL present a change made to a raw byte array
* singleton.<br/>
* The "upgrade file hash" state is an example of a raw byte
* array singleton.
*
*
* .google.protobuf.BytesValue bytes_value = 6;
*/
public Builder setBytesValue(
com.google.protobuf.BytesValue.Builder builderForValue) {
if (bytesValueBuilder_ == null) {
newValue_ = builderForValue.build();
onChanged();
} else {
bytesValueBuilder_.setMessage(builderForValue.build());
}
newValueCase_ = 6;
return this;
}
/**
*
**
* A change to a raw byte array singleton.
* <p>
* This change SHALL present a change made to a raw byte array
* singleton.<br/>
* The "upgrade file hash" state is an example of a raw byte
* array singleton.
*
*
* .google.protobuf.BytesValue bytes_value = 6;
*/
public Builder mergeBytesValue(com.google.protobuf.BytesValue value) {
if (bytesValueBuilder_ == null) {
if (newValueCase_ == 6 &&
newValue_ != com.google.protobuf.BytesValue.getDefaultInstance()) {
newValue_ = com.google.protobuf.BytesValue.newBuilder((com.google.protobuf.BytesValue) newValue_)
.mergeFrom(value).buildPartial();
} else {
newValue_ = value;
}
onChanged();
} else {
if (newValueCase_ == 6) {
bytesValueBuilder_.mergeFrom(value);
}
bytesValueBuilder_.setMessage(value);
}
newValueCase_ = 6;
return this;
}
/**
*
**
* A change to a raw byte array singleton.
* <p>
* This change SHALL present a change made to a raw byte array
* singleton.<br/>
* The "upgrade file hash" state is an example of a raw byte
* array singleton.
*
*
* .google.protobuf.BytesValue bytes_value = 6;
*/
public Builder clearBytesValue() {
if (bytesValueBuilder_ == null) {
if (newValueCase_ == 6) {
newValueCase_ = 0;
newValue_ = null;
onChanged();
}
} else {
if (newValueCase_ == 6) {
newValueCase_ = 0;
newValue_ = null;
}
bytesValueBuilder_.clear();
}
return this;
}
/**
*
**
* A change to a raw byte array singleton.
* <p>
* This change SHALL present a change made to a raw byte array
* singleton.<br/>
* The "upgrade file hash" state is an example of a raw byte
* array singleton.
*
*
* .google.protobuf.BytesValue bytes_value = 6;
*/
public com.google.protobuf.BytesValue.Builder getBytesValueBuilder() {
return getBytesValueFieldBuilder().getBuilder();
}
/**
*
**
* A change to a raw byte array singleton.
* <p>
* This change SHALL present a change made to a raw byte array
* singleton.<br/>
* The "upgrade file hash" state is an example of a raw byte
* array singleton.
*
*
* .google.protobuf.BytesValue bytes_value = 6;
*/
@java.lang.Override
public com.google.protobuf.BytesValueOrBuilder getBytesValueOrBuilder() {
if ((newValueCase_ == 6) && (bytesValueBuilder_ != null)) {
return bytesValueBuilder_.getMessageOrBuilder();
} else {
if (newValueCase_ == 6) {
return (com.google.protobuf.BytesValue) newValue_;
}
return com.google.protobuf.BytesValue.getDefaultInstance();
}
}
/**
*
**
* A change to a raw byte array singleton.
* <p>
* This change SHALL present a change made to a raw byte array
* singleton.<br/>
* The "upgrade file hash" state is an example of a raw byte
* array singleton.
*
*
* .google.protobuf.BytesValue bytes_value = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>
getBytesValueFieldBuilder() {
if (bytesValueBuilder_ == null) {
if (!(newValueCase_ == 6)) {
newValue_ = com.google.protobuf.BytesValue.getDefaultInstance();
}
bytesValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>(
(com.google.protobuf.BytesValue) newValue_,
getParentForChildren(),
isClean());
newValue_ = null;
}
newValueCase_ = 6;
onChanged();;
return bytesValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> stringValueBuilder_;
/**
*
**
* A change to a raw string singleton.
* <p>
* <dl><dt>Note</dt><dd>There are no current examples of a raw string
* singleton state.</dd></dl>
*
*
* .google.protobuf.StringValue string_value = 7;
* @return Whether the stringValue field is set.
*/
@java.lang.Override
public boolean hasStringValue() {
return newValueCase_ == 7;
}
/**
*
**
* A change to a raw string singleton.
* <p>
* <dl><dt>Note</dt><dd>There are no current examples of a raw string
* singleton state.</dd></dl>
*
*
* .google.protobuf.StringValue string_value = 7;
* @return The stringValue.
*/
@java.lang.Override
public com.google.protobuf.StringValue getStringValue() {
if (stringValueBuilder_ == null) {
if (newValueCase_ == 7) {
return (com.google.protobuf.StringValue) newValue_;
}
return com.google.protobuf.StringValue.getDefaultInstance();
} else {
if (newValueCase_ == 7) {
return stringValueBuilder_.getMessage();
}
return com.google.protobuf.StringValue.getDefaultInstance();
}
}
/**
*
**
* A change to a raw string singleton.
* <p>
* <dl><dt>Note</dt><dd>There are no current examples of a raw string
* singleton state.</dd></dl>
*
*
* .google.protobuf.StringValue string_value = 7;
*/
public Builder setStringValue(com.google.protobuf.StringValue value) {
if (stringValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newValue_ = value;
onChanged();
} else {
stringValueBuilder_.setMessage(value);
}
newValueCase_ = 7;
return this;
}
/**
*
**
* A change to a raw string singleton.
* <p>
* <dl><dt>Note</dt><dd>There are no current examples of a raw string
* singleton state.</dd></dl>
*
*
* .google.protobuf.StringValue string_value = 7;
*/
public Builder setStringValue(
com.google.protobuf.StringValue.Builder builderForValue) {
if (stringValueBuilder_ == null) {
newValue_ = builderForValue.build();
onChanged();
} else {
stringValueBuilder_.setMessage(builderForValue.build());
}
newValueCase_ = 7;
return this;
}
/**
*
**
* A change to a raw string singleton.
* <p>
* <dl><dt>Note</dt><dd>There are no current examples of a raw string
* singleton state.</dd></dl>
*
*
* .google.protobuf.StringValue string_value = 7;
*/
public Builder mergeStringValue(com.google.protobuf.StringValue value) {
if (stringValueBuilder_ == null) {
if (newValueCase_ == 7 &&
newValue_ != com.google.protobuf.StringValue.getDefaultInstance()) {
newValue_ = com.google.protobuf.StringValue.newBuilder((com.google.protobuf.StringValue) newValue_)
.mergeFrom(value).buildPartial();
} else {
newValue_ = value;
}
onChanged();
} else {
if (newValueCase_ == 7) {
stringValueBuilder_.mergeFrom(value);
}
stringValueBuilder_.setMessage(value);
}
newValueCase_ = 7;
return this;
}
/**
*
**
* A change to a raw string singleton.
* <p>
* <dl><dt>Note</dt><dd>There are no current examples of a raw string
* singleton state.</dd></dl>
*
*
* .google.protobuf.StringValue string_value = 7;
*/
public Builder clearStringValue() {
if (stringValueBuilder_ == null) {
if (newValueCase_ == 7) {
newValueCase_ = 0;
newValue_ = null;
onChanged();
}
} else {
if (newValueCase_ == 7) {
newValueCase_ = 0;
newValue_ = null;
}
stringValueBuilder_.clear();
}
return this;
}
/**
*
**
* A change to a raw string singleton.
* <p>
* <dl><dt>Note</dt><dd>There are no current examples of a raw string
* singleton state.</dd></dl>
*
*
* .google.protobuf.StringValue string_value = 7;
*/
public com.google.protobuf.StringValue.Builder getStringValueBuilder() {
return getStringValueFieldBuilder().getBuilder();
}
/**
*
**
* A change to a raw string singleton.
* <p>
* <dl><dt>Note</dt><dd>There are no current examples of a raw string
* singleton state.</dd></dl>
*
*
* .google.protobuf.StringValue string_value = 7;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getStringValueOrBuilder() {
if ((newValueCase_ == 7) && (stringValueBuilder_ != null)) {
return stringValueBuilder_.getMessageOrBuilder();
} else {
if (newValueCase_ == 7) {
return (com.google.protobuf.StringValue) newValue_;
}
return com.google.protobuf.StringValue.getDefaultInstance();
}
}
/**
*
**
* A change to a raw string singleton.
* <p>
* <dl><dt>Note</dt><dd>There are no current examples of a raw string
* singleton state.</dd></dl>
*
*
* .google.protobuf.StringValue string_value = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getStringValueFieldBuilder() {
if (stringValueBuilder_ == null) {
if (!(newValueCase_ == 7)) {
newValue_ = com.google.protobuf.StringValue.getDefaultInstance();
}
stringValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
(com.google.protobuf.StringValue) newValue_,
getParentForChildren(),
isClean());
newValue_ = null;
}
newValueCase_ = 7;
onChanged();;
return stringValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.RunningHashes, com.hederahashgraph.api.proto.java.RunningHashes.Builder, com.hederahashgraph.api.proto.java.RunningHashesOrBuilder> runningHashesValueBuilder_;
/**
*
**
* A change to the running hashes singleton.
* <p>
* Running hashes SHALL be updated for each transaction.
* <p>
* <blockquote>REVIEW NOTE<blockquote>
* Running hashes is a record stream item. Can it be elided from
* the block stream? It's not written to the record stream, as far
* as I can tell. If we do write this it's adding over 144 bytes
* for every transaction. It's also not clear how we'll calculate
* this, as it's a hash of the records currently, so it would have
* to be a hash of the block items, including this one...
* </blockquote></blockquote>
*
*
* .proto.RunningHashes running_hashes_value = 8;
* @return Whether the runningHashesValue field is set.
*/
@java.lang.Override
public boolean hasRunningHashesValue() {
return newValueCase_ == 8;
}
/**
*
**
* A change to the running hashes singleton.
* <p>
* Running hashes SHALL be updated for each transaction.
* <p>
* <blockquote>REVIEW NOTE<blockquote>
* Running hashes is a record stream item. Can it be elided from
* the block stream? It's not written to the record stream, as far
* as I can tell. If we do write this it's adding over 144 bytes
* for every transaction. It's also not clear how we'll calculate
* this, as it's a hash of the records currently, so it would have
* to be a hash of the block items, including this one...
* </blockquote></blockquote>
*
*
* .proto.RunningHashes running_hashes_value = 8;
* @return The runningHashesValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.RunningHashes getRunningHashesValue() {
if (runningHashesValueBuilder_ == null) {
if (newValueCase_ == 8) {
return (com.hederahashgraph.api.proto.java.RunningHashes) newValue_;
}
return com.hederahashgraph.api.proto.java.RunningHashes.getDefaultInstance();
} else {
if (newValueCase_ == 8) {
return runningHashesValueBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.RunningHashes.getDefaultInstance();
}
}
/**
*
**
* A change to the running hashes singleton.
* <p>
* Running hashes SHALL be updated for each transaction.
* <p>
* <blockquote>REVIEW NOTE<blockquote>
* Running hashes is a record stream item. Can it be elided from
* the block stream? It's not written to the record stream, as far
* as I can tell. If we do write this it's adding over 144 bytes
* for every transaction. It's also not clear how we'll calculate
* this, as it's a hash of the records currently, so it would have
* to be a hash of the block items, including this one...
* </blockquote></blockquote>
*
*
* .proto.RunningHashes running_hashes_value = 8;
*/
public Builder setRunningHashesValue(com.hederahashgraph.api.proto.java.RunningHashes value) {
if (runningHashesValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newValue_ = value;
onChanged();
} else {
runningHashesValueBuilder_.setMessage(value);
}
newValueCase_ = 8;
return this;
}
/**
*
**
* A change to the running hashes singleton.
* <p>
* Running hashes SHALL be updated for each transaction.
* <p>
* <blockquote>REVIEW NOTE<blockquote>
* Running hashes is a record stream item. Can it be elided from
* the block stream? It's not written to the record stream, as far
* as I can tell. If we do write this it's adding over 144 bytes
* for every transaction. It's also not clear how we'll calculate
* this, as it's a hash of the records currently, so it would have
* to be a hash of the block items, including this one...
* </blockquote></blockquote>
*
*
* .proto.RunningHashes running_hashes_value = 8;
*/
public Builder setRunningHashesValue(
com.hederahashgraph.api.proto.java.RunningHashes.Builder builderForValue) {
if (runningHashesValueBuilder_ == null) {
newValue_ = builderForValue.build();
onChanged();
} else {
runningHashesValueBuilder_.setMessage(builderForValue.build());
}
newValueCase_ = 8;
return this;
}
/**
*
**
* A change to the running hashes singleton.
* <p>
* Running hashes SHALL be updated for each transaction.
* <p>
* <blockquote>REVIEW NOTE<blockquote>
* Running hashes is a record stream item. Can it be elided from
* the block stream? It's not written to the record stream, as far
* as I can tell. If we do write this it's adding over 144 bytes
* for every transaction. It's also not clear how we'll calculate
* this, as it's a hash of the records currently, so it would have
* to be a hash of the block items, including this one...
* </blockquote></blockquote>
*
*
* .proto.RunningHashes running_hashes_value = 8;
*/
public Builder mergeRunningHashesValue(com.hederahashgraph.api.proto.java.RunningHashes value) {
if (runningHashesValueBuilder_ == null) {
if (newValueCase_ == 8 &&
newValue_ != com.hederahashgraph.api.proto.java.RunningHashes.getDefaultInstance()) {
newValue_ = com.hederahashgraph.api.proto.java.RunningHashes.newBuilder((com.hederahashgraph.api.proto.java.RunningHashes) newValue_)
.mergeFrom(value).buildPartial();
} else {
newValue_ = value;
}
onChanged();
} else {
if (newValueCase_ == 8) {
runningHashesValueBuilder_.mergeFrom(value);
}
runningHashesValueBuilder_.setMessage(value);
}
newValueCase_ = 8;
return this;
}
/**
*
**
* A change to the running hashes singleton.
* <p>
* Running hashes SHALL be updated for each transaction.
* <p>
* <blockquote>REVIEW NOTE<blockquote>
* Running hashes is a record stream item. Can it be elided from
* the block stream? It's not written to the record stream, as far
* as I can tell. If we do write this it's adding over 144 bytes
* for every transaction. It's also not clear how we'll calculate
* this, as it's a hash of the records currently, so it would have
* to be a hash of the block items, including this one...
* </blockquote></blockquote>
*
*
* .proto.RunningHashes running_hashes_value = 8;
*/
public Builder clearRunningHashesValue() {
if (runningHashesValueBuilder_ == null) {
if (newValueCase_ == 8) {
newValueCase_ = 0;
newValue_ = null;
onChanged();
}
} else {
if (newValueCase_ == 8) {
newValueCase_ = 0;
newValue_ = null;
}
runningHashesValueBuilder_.clear();
}
return this;
}
/**
*
**
* A change to the running hashes singleton.
* <p>
* Running hashes SHALL be updated for each transaction.
* <p>
* <blockquote>REVIEW NOTE<blockquote>
* Running hashes is a record stream item. Can it be elided from
* the block stream? It's not written to the record stream, as far
* as I can tell. If we do write this it's adding over 144 bytes
* for every transaction. It's also not clear how we'll calculate
* this, as it's a hash of the records currently, so it would have
* to be a hash of the block items, including this one...
* </blockquote></blockquote>
*
*
* .proto.RunningHashes running_hashes_value = 8;
*/
public com.hederahashgraph.api.proto.java.RunningHashes.Builder getRunningHashesValueBuilder() {
return getRunningHashesValueFieldBuilder().getBuilder();
}
/**
*
**
* A change to the running hashes singleton.
* <p>
* Running hashes SHALL be updated for each transaction.
* <p>
* <blockquote>REVIEW NOTE<blockquote>
* Running hashes is a record stream item. Can it be elided from
* the block stream? It's not written to the record stream, as far
* as I can tell. If we do write this it's adding over 144 bytes
* for every transaction. It's also not clear how we'll calculate
* this, as it's a hash of the records currently, so it would have
* to be a hash of the block items, including this one...
* </blockquote></blockquote>
*
*
* .proto.RunningHashes running_hashes_value = 8;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.RunningHashesOrBuilder getRunningHashesValueOrBuilder() {
if ((newValueCase_ == 8) && (runningHashesValueBuilder_ != null)) {
return runningHashesValueBuilder_.getMessageOrBuilder();
} else {
if (newValueCase_ == 8) {
return (com.hederahashgraph.api.proto.java.RunningHashes) newValue_;
}
return com.hederahashgraph.api.proto.java.RunningHashes.getDefaultInstance();
}
}
/**
*
**
* A change to the running hashes singleton.
* <p>
* Running hashes SHALL be updated for each transaction.
* <p>
* <blockquote>REVIEW NOTE<blockquote>
* Running hashes is a record stream item. Can it be elided from
* the block stream? It's not written to the record stream, as far
* as I can tell. If we do write this it's adding over 144 bytes
* for every transaction. It's also not clear how we'll calculate
* this, as it's a hash of the records currently, so it would have
* to be a hash of the block items, including this one...
* </blockquote></blockquote>
*
*
* .proto.RunningHashes running_hashes_value = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.RunningHashes, com.hederahashgraph.api.proto.java.RunningHashes.Builder, com.hederahashgraph.api.proto.java.RunningHashesOrBuilder>
getRunningHashesValueFieldBuilder() {
if (runningHashesValueBuilder_ == null) {
if (!(newValueCase_ == 8)) {
newValue_ = com.hederahashgraph.api.proto.java.RunningHashes.getDefaultInstance();
}
runningHashesValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.RunningHashes, com.hederahashgraph.api.proto.java.RunningHashes.Builder, com.hederahashgraph.api.proto.java.RunningHashesOrBuilder>(
(com.hederahashgraph.api.proto.java.RunningHashes) newValue_,
getParentForChildren(),
isClean());
newValue_ = null;
}
newValueCase_ = 8;
onChanged();;
return runningHashesValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.Builder, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotsOrBuilder> throttleUsageSnapshotsValueBuilder_;
/**
*
**
* A change to the throttle usage snapshots singleton.
* <p>
* Throttle usage snapshots SHALL be updated for _every transaction_
* to reflect the amount used for each tps throttle and
* for the gas throttle.
*
*
* .proto.ThrottleUsageSnapshots throttle_usage_snapshots_value = 9;
* @return Whether the throttleUsageSnapshotsValue field is set.
*/
@java.lang.Override
public boolean hasThrottleUsageSnapshotsValue() {
return newValueCase_ == 9;
}
/**
*
**
* A change to the throttle usage snapshots singleton.
* <p>
* Throttle usage snapshots SHALL be updated for _every transaction_
* to reflect the amount used for each tps throttle and
* for the gas throttle.
*
*
* .proto.ThrottleUsageSnapshots throttle_usage_snapshots_value = 9;
* @return The throttleUsageSnapshotsValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots getThrottleUsageSnapshotsValue() {
if (throttleUsageSnapshotsValueBuilder_ == null) {
if (newValueCase_ == 9) {
return (com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots) newValue_;
}
return com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.getDefaultInstance();
} else {
if (newValueCase_ == 9) {
return throttleUsageSnapshotsValueBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.getDefaultInstance();
}
}
/**
*
**
* A change to the throttle usage snapshots singleton.
* <p>
* Throttle usage snapshots SHALL be updated for _every transaction_
* to reflect the amount used for each tps throttle and
* for the gas throttle.
*
*
* .proto.ThrottleUsageSnapshots throttle_usage_snapshots_value = 9;
*/
public Builder setThrottleUsageSnapshotsValue(com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots value) {
if (throttleUsageSnapshotsValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newValue_ = value;
onChanged();
} else {
throttleUsageSnapshotsValueBuilder_.setMessage(value);
}
newValueCase_ = 9;
return this;
}
/**
*
**
* A change to the throttle usage snapshots singleton.
* <p>
* Throttle usage snapshots SHALL be updated for _every transaction_
* to reflect the amount used for each tps throttle and
* for the gas throttle.
*
*
* .proto.ThrottleUsageSnapshots throttle_usage_snapshots_value = 9;
*/
public Builder setThrottleUsageSnapshotsValue(
com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.Builder builderForValue) {
if (throttleUsageSnapshotsValueBuilder_ == null) {
newValue_ = builderForValue.build();
onChanged();
} else {
throttleUsageSnapshotsValueBuilder_.setMessage(builderForValue.build());
}
newValueCase_ = 9;
return this;
}
/**
*
**
* A change to the throttle usage snapshots singleton.
* <p>
* Throttle usage snapshots SHALL be updated for _every transaction_
* to reflect the amount used for each tps throttle and
* for the gas throttle.
*
*
* .proto.ThrottleUsageSnapshots throttle_usage_snapshots_value = 9;
*/
public Builder mergeThrottleUsageSnapshotsValue(com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots value) {
if (throttleUsageSnapshotsValueBuilder_ == null) {
if (newValueCase_ == 9 &&
newValue_ != com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.getDefaultInstance()) {
newValue_ = com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.newBuilder((com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots) newValue_)
.mergeFrom(value).buildPartial();
} else {
newValue_ = value;
}
onChanged();
} else {
if (newValueCase_ == 9) {
throttleUsageSnapshotsValueBuilder_.mergeFrom(value);
}
throttleUsageSnapshotsValueBuilder_.setMessage(value);
}
newValueCase_ = 9;
return this;
}
/**
*
**
* A change to the throttle usage snapshots singleton.
* <p>
* Throttle usage snapshots SHALL be updated for _every transaction_
* to reflect the amount used for each tps throttle and
* for the gas throttle.
*
*
* .proto.ThrottleUsageSnapshots throttle_usage_snapshots_value = 9;
*/
public Builder clearThrottleUsageSnapshotsValue() {
if (throttleUsageSnapshotsValueBuilder_ == null) {
if (newValueCase_ == 9) {
newValueCase_ = 0;
newValue_ = null;
onChanged();
}
} else {
if (newValueCase_ == 9) {
newValueCase_ = 0;
newValue_ = null;
}
throttleUsageSnapshotsValueBuilder_.clear();
}
return this;
}
/**
*
**
* A change to the throttle usage snapshots singleton.
* <p>
* Throttle usage snapshots SHALL be updated for _every transaction_
* to reflect the amount used for each tps throttle and
* for the gas throttle.
*
*
* .proto.ThrottleUsageSnapshots throttle_usage_snapshots_value = 9;
*/
public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.Builder getThrottleUsageSnapshotsValueBuilder() {
return getThrottleUsageSnapshotsValueFieldBuilder().getBuilder();
}
/**
*
**
* A change to the throttle usage snapshots singleton.
* <p>
* Throttle usage snapshots SHALL be updated for _every transaction_
* to reflect the amount used for each tps throttle and
* for the gas throttle.
*
*
* .proto.ThrottleUsageSnapshots throttle_usage_snapshots_value = 9;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotsOrBuilder getThrottleUsageSnapshotsValueOrBuilder() {
if ((newValueCase_ == 9) && (throttleUsageSnapshotsValueBuilder_ != null)) {
return throttleUsageSnapshotsValueBuilder_.getMessageOrBuilder();
} else {
if (newValueCase_ == 9) {
return (com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots) newValue_;
}
return com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.getDefaultInstance();
}
}
/**
*
**
* A change to the throttle usage snapshots singleton.
* <p>
* Throttle usage snapshots SHALL be updated for _every transaction_
* to reflect the amount used for each tps throttle and
* for the gas throttle.
*
*
* .proto.ThrottleUsageSnapshots throttle_usage_snapshots_value = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.Builder, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotsOrBuilder>
getThrottleUsageSnapshotsValueFieldBuilder() {
if (throttleUsageSnapshotsValueBuilder_ == null) {
if (!(newValueCase_ == 9)) {
newValue_ = com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.getDefaultInstance();
}
throttleUsageSnapshotsValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.Builder, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotsOrBuilder>(
(com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots) newValue_,
getParentForChildren(),
isClean());
newValue_ = null;
}
newValueCase_ = 9;
onChanged();;
return throttleUsageSnapshotsValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> timestampValueBuilder_;
/**
*
**
* A change to a raw `Timestamp` singleton.<br/>
* An example of a raw `Timestamp` singleton is the
* "network freeze time" singleton state, which, if set, stores
* the time for the next scheduled freeze.
*
*
* .proto.Timestamp timestamp_value = 10;
* @return Whether the timestampValue field is set.
*/
@java.lang.Override
public boolean hasTimestampValue() {
return newValueCase_ == 10;
}
/**
*
**
* A change to a raw `Timestamp` singleton.<br/>
* An example of a raw `Timestamp` singleton is the
* "network freeze time" singleton state, which, if set, stores
* the time for the next scheduled freeze.
*
*
* .proto.Timestamp timestamp_value = 10;
* @return The timestampValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Timestamp getTimestampValue() {
if (timestampValueBuilder_ == null) {
if (newValueCase_ == 10) {
return (com.hederahashgraph.api.proto.java.Timestamp) newValue_;
}
return com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance();
} else {
if (newValueCase_ == 10) {
return timestampValueBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance();
}
}
/**
*
**
* A change to a raw `Timestamp` singleton.<br/>
* An example of a raw `Timestamp` singleton is the
* "network freeze time" singleton state, which, if set, stores
* the time for the next scheduled freeze.
*
*
* .proto.Timestamp timestamp_value = 10;
*/
public Builder setTimestampValue(com.hederahashgraph.api.proto.java.Timestamp value) {
if (timestampValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newValue_ = value;
onChanged();
} else {
timestampValueBuilder_.setMessage(value);
}
newValueCase_ = 10;
return this;
}
/**
*
**
* A change to a raw `Timestamp` singleton.<br/>
* An example of a raw `Timestamp` singleton is the
* "network freeze time" singleton state, which, if set, stores
* the time for the next scheduled freeze.
*
*
* .proto.Timestamp timestamp_value = 10;
*/
public Builder setTimestampValue(
com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (timestampValueBuilder_ == null) {
newValue_ = builderForValue.build();
onChanged();
} else {
timestampValueBuilder_.setMessage(builderForValue.build());
}
newValueCase_ = 10;
return this;
}
/**
*
**
* A change to a raw `Timestamp` singleton.<br/>
* An example of a raw `Timestamp` singleton is the
* "network freeze time" singleton state, which, if set, stores
* the time for the next scheduled freeze.
*
*
* .proto.Timestamp timestamp_value = 10;
*/
public Builder mergeTimestampValue(com.hederahashgraph.api.proto.java.Timestamp value) {
if (timestampValueBuilder_ == null) {
if (newValueCase_ == 10 &&
newValue_ != com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance()) {
newValue_ = com.hederahashgraph.api.proto.java.Timestamp.newBuilder((com.hederahashgraph.api.proto.java.Timestamp) newValue_)
.mergeFrom(value).buildPartial();
} else {
newValue_ = value;
}
onChanged();
} else {
if (newValueCase_ == 10) {
timestampValueBuilder_.mergeFrom(value);
}
timestampValueBuilder_.setMessage(value);
}
newValueCase_ = 10;
return this;
}
/**
*
**
* A change to a raw `Timestamp` singleton.<br/>
* An example of a raw `Timestamp` singleton is the
* "network freeze time" singleton state, which, if set, stores
* the time for the next scheduled freeze.
*
*
* .proto.Timestamp timestamp_value = 10;
*/
public Builder clearTimestampValue() {
if (timestampValueBuilder_ == null) {
if (newValueCase_ == 10) {
newValueCase_ = 0;
newValue_ = null;
onChanged();
}
} else {
if (newValueCase_ == 10) {
newValueCase_ = 0;
newValue_ = null;
}
timestampValueBuilder_.clear();
}
return this;
}
/**
*
**
* A change to a raw `Timestamp` singleton.<br/>
* An example of a raw `Timestamp` singleton is the
* "network freeze time" singleton state, which, if set, stores
* the time for the next scheduled freeze.
*
*
* .proto.Timestamp timestamp_value = 10;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getTimestampValueBuilder() {
return getTimestampValueFieldBuilder().getBuilder();
}
/**
*
**
* A change to a raw `Timestamp` singleton.<br/>
* An example of a raw `Timestamp` singleton is the
* "network freeze time" singleton state, which, if set, stores
* the time for the next scheduled freeze.
*
*
* .proto.Timestamp timestamp_value = 10;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getTimestampValueOrBuilder() {
if ((newValueCase_ == 10) && (timestampValueBuilder_ != null)) {
return timestampValueBuilder_.getMessageOrBuilder();
} else {
if (newValueCase_ == 10) {
return (com.hederahashgraph.api.proto.java.Timestamp) newValue_;
}
return com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance();
}
}
/**
*
**
* A change to a raw `Timestamp` singleton.<br/>
* An example of a raw `Timestamp` singleton is the
* "network freeze time" singleton state, which, if set, stores
* the time for the next scheduled freeze.
*
*
* .proto.Timestamp timestamp_value = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getTimestampValueFieldBuilder() {
if (timestampValueBuilder_ == null) {
if (!(newValueCase_ == 10)) {
newValue_ = com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance();
}
timestampValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>(
(com.hederahashgraph.api.proto.java.Timestamp) newValue_,
getParentForChildren(),
isClean());
newValue_ = null;
}
newValueCase_ = 10;
onChanged();;
return timestampValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.BlockStreamInfo, com.hederahashgraph.api.proto.java.BlockStreamInfo.Builder, com.hederahashgraph.api.proto.java.BlockStreamInfoOrBuilder> blockStreamInfoValueBuilder_;
/**
*
**
* A change to the block stream status singleton.
* <p>
* This MUST be updated at the beginning of a block, with the
* information for the immediately prior block.
*
*
* .com.hedera.hapi.node.state.blockstream.BlockStreamInfo block_stream_info_value = 11;
* @return Whether the blockStreamInfoValue field is set.
*/
@java.lang.Override
public boolean hasBlockStreamInfoValue() {
return newValueCase_ == 11;
}
/**
*
**
* A change to the block stream status singleton.
* <p>
* This MUST be updated at the beginning of a block, with the
* information for the immediately prior block.
*
*
* .com.hedera.hapi.node.state.blockstream.BlockStreamInfo block_stream_info_value = 11;
* @return The blockStreamInfoValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockStreamInfo getBlockStreamInfoValue() {
if (blockStreamInfoValueBuilder_ == null) {
if (newValueCase_ == 11) {
return (com.hederahashgraph.api.proto.java.BlockStreamInfo) newValue_;
}
return com.hederahashgraph.api.proto.java.BlockStreamInfo.getDefaultInstance();
} else {
if (newValueCase_ == 11) {
return blockStreamInfoValueBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.BlockStreamInfo.getDefaultInstance();
}
}
/**
*
**
* A change to the block stream status singleton.
* <p>
* This MUST be updated at the beginning of a block, with the
* information for the immediately prior block.
*
*
* .com.hedera.hapi.node.state.blockstream.BlockStreamInfo block_stream_info_value = 11;
*/
public Builder setBlockStreamInfoValue(com.hederahashgraph.api.proto.java.BlockStreamInfo value) {
if (blockStreamInfoValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newValue_ = value;
onChanged();
} else {
blockStreamInfoValueBuilder_.setMessage(value);
}
newValueCase_ = 11;
return this;
}
/**
*
**
* A change to the block stream status singleton.
* <p>
* This MUST be updated at the beginning of a block, with the
* information for the immediately prior block.
*
*
* .com.hedera.hapi.node.state.blockstream.BlockStreamInfo block_stream_info_value = 11;
*/
public Builder setBlockStreamInfoValue(
com.hederahashgraph.api.proto.java.BlockStreamInfo.Builder builderForValue) {
if (blockStreamInfoValueBuilder_ == null) {
newValue_ = builderForValue.build();
onChanged();
} else {
blockStreamInfoValueBuilder_.setMessage(builderForValue.build());
}
newValueCase_ = 11;
return this;
}
/**
*
**
* A change to the block stream status singleton.
* <p>
* This MUST be updated at the beginning of a block, with the
* information for the immediately prior block.
*
*
* .com.hedera.hapi.node.state.blockstream.BlockStreamInfo block_stream_info_value = 11;
*/
public Builder mergeBlockStreamInfoValue(com.hederahashgraph.api.proto.java.BlockStreamInfo value) {
if (blockStreamInfoValueBuilder_ == null) {
if (newValueCase_ == 11 &&
newValue_ != com.hederahashgraph.api.proto.java.BlockStreamInfo.getDefaultInstance()) {
newValue_ = com.hederahashgraph.api.proto.java.BlockStreamInfo.newBuilder((com.hederahashgraph.api.proto.java.BlockStreamInfo) newValue_)
.mergeFrom(value).buildPartial();
} else {
newValue_ = value;
}
onChanged();
} else {
if (newValueCase_ == 11) {
blockStreamInfoValueBuilder_.mergeFrom(value);
}
blockStreamInfoValueBuilder_.setMessage(value);
}
newValueCase_ = 11;
return this;
}
/**
*
**
* A change to the block stream status singleton.
* <p>
* This MUST be updated at the beginning of a block, with the
* information for the immediately prior block.
*
*
* .com.hedera.hapi.node.state.blockstream.BlockStreamInfo block_stream_info_value = 11;
*/
public Builder clearBlockStreamInfoValue() {
if (blockStreamInfoValueBuilder_ == null) {
if (newValueCase_ == 11) {
newValueCase_ = 0;
newValue_ = null;
onChanged();
}
} else {
if (newValueCase_ == 11) {
newValueCase_ = 0;
newValue_ = null;
}
blockStreamInfoValueBuilder_.clear();
}
return this;
}
/**
*
**
* A change to the block stream status singleton.
* <p>
* This MUST be updated at the beginning of a block, with the
* information for the immediately prior block.
*
*
* .com.hedera.hapi.node.state.blockstream.BlockStreamInfo block_stream_info_value = 11;
*/
public com.hederahashgraph.api.proto.java.BlockStreamInfo.Builder getBlockStreamInfoValueBuilder() {
return getBlockStreamInfoValueFieldBuilder().getBuilder();
}
/**
*
**
* A change to the block stream status singleton.
* <p>
* This MUST be updated at the beginning of a block, with the
* information for the immediately prior block.
*
*
* .com.hedera.hapi.node.state.blockstream.BlockStreamInfo block_stream_info_value = 11;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockStreamInfoOrBuilder getBlockStreamInfoValueOrBuilder() {
if ((newValueCase_ == 11) && (blockStreamInfoValueBuilder_ != null)) {
return blockStreamInfoValueBuilder_.getMessageOrBuilder();
} else {
if (newValueCase_ == 11) {
return (com.hederahashgraph.api.proto.java.BlockStreamInfo) newValue_;
}
return com.hederahashgraph.api.proto.java.BlockStreamInfo.getDefaultInstance();
}
}
/**
*
**
* A change to the block stream status singleton.
* <p>
* This MUST be updated at the beginning of a block, with the
* information for the immediately prior block.
*
*
* .com.hedera.hapi.node.state.blockstream.BlockStreamInfo block_stream_info_value = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.BlockStreamInfo, com.hederahashgraph.api.proto.java.BlockStreamInfo.Builder, com.hederahashgraph.api.proto.java.BlockStreamInfoOrBuilder>
getBlockStreamInfoValueFieldBuilder() {
if (blockStreamInfoValueBuilder_ == null) {
if (!(newValueCase_ == 11)) {
newValue_ = com.hederahashgraph.api.proto.java.BlockStreamInfo.getDefaultInstance();
}
blockStreamInfoValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.BlockStreamInfo, com.hederahashgraph.api.proto.java.BlockStreamInfo.Builder, com.hederahashgraph.api.proto.java.BlockStreamInfoOrBuilder>(
(com.hederahashgraph.api.proto.java.BlockStreamInfo) newValue_,
getParentForChildren(),
isClean());
newValue_ = null;
}
newValueCase_ = 11;
onChanged();;
return blockStreamInfoValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hapi.platform.state.legacy.PlatformState, com.hedera.hapi.platform.state.legacy.PlatformState.Builder, com.hedera.hapi.platform.state.legacy.PlatformStateOrBuilder> platformStateValueBuilder_;
/**
*
**
* A change to the platform state singleton.
*
*
* .com.hedera.hapi.platform.state.PlatformState platform_state_value = 12;
* @return Whether the platformStateValue field is set.
*/
@java.lang.Override
public boolean hasPlatformStateValue() {
return newValueCase_ == 12;
}
/**
*
**
* A change to the platform state singleton.
*
*
* .com.hedera.hapi.platform.state.PlatformState platform_state_value = 12;
* @return The platformStateValue.
*/
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.PlatformState getPlatformStateValue() {
if (platformStateValueBuilder_ == null) {
if (newValueCase_ == 12) {
return (com.hedera.hapi.platform.state.legacy.PlatformState) newValue_;
}
return com.hedera.hapi.platform.state.legacy.PlatformState.getDefaultInstance();
} else {
if (newValueCase_ == 12) {
return platformStateValueBuilder_.getMessage();
}
return com.hedera.hapi.platform.state.legacy.PlatformState.getDefaultInstance();
}
}
/**
*
**
* A change to the platform state singleton.
*
*
* .com.hedera.hapi.platform.state.PlatformState platform_state_value = 12;
*/
public Builder setPlatformStateValue(com.hedera.hapi.platform.state.legacy.PlatformState value) {
if (platformStateValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newValue_ = value;
onChanged();
} else {
platformStateValueBuilder_.setMessage(value);
}
newValueCase_ = 12;
return this;
}
/**
*
**
* A change to the platform state singleton.
*
*
* .com.hedera.hapi.platform.state.PlatformState platform_state_value = 12;
*/
public Builder setPlatformStateValue(
com.hedera.hapi.platform.state.legacy.PlatformState.Builder builderForValue) {
if (platformStateValueBuilder_ == null) {
newValue_ = builderForValue.build();
onChanged();
} else {
platformStateValueBuilder_.setMessage(builderForValue.build());
}
newValueCase_ = 12;
return this;
}
/**
*
**
* A change to the platform state singleton.
*
*
* .com.hedera.hapi.platform.state.PlatformState platform_state_value = 12;
*/
public Builder mergePlatformStateValue(com.hedera.hapi.platform.state.legacy.PlatformState value) {
if (platformStateValueBuilder_ == null) {
if (newValueCase_ == 12 &&
newValue_ != com.hedera.hapi.platform.state.legacy.PlatformState.getDefaultInstance()) {
newValue_ = com.hedera.hapi.platform.state.legacy.PlatformState.newBuilder((com.hedera.hapi.platform.state.legacy.PlatformState) newValue_)
.mergeFrom(value).buildPartial();
} else {
newValue_ = value;
}
onChanged();
} else {
if (newValueCase_ == 12) {
platformStateValueBuilder_.mergeFrom(value);
}
platformStateValueBuilder_.setMessage(value);
}
newValueCase_ = 12;
return this;
}
/**
*
**
* A change to the platform state singleton.
*
*
* .com.hedera.hapi.platform.state.PlatformState platform_state_value = 12;
*/
public Builder clearPlatformStateValue() {
if (platformStateValueBuilder_ == null) {
if (newValueCase_ == 12) {
newValueCase_ = 0;
newValue_ = null;
onChanged();
}
} else {
if (newValueCase_ == 12) {
newValueCase_ = 0;
newValue_ = null;
}
platformStateValueBuilder_.clear();
}
return this;
}
/**
*
**
* A change to the platform state singleton.
*
*
* .com.hedera.hapi.platform.state.PlatformState platform_state_value = 12;
*/
public com.hedera.hapi.platform.state.legacy.PlatformState.Builder getPlatformStateValueBuilder() {
return getPlatformStateValueFieldBuilder().getBuilder();
}
/**
*
**
* A change to the platform state singleton.
*
*
* .com.hedera.hapi.platform.state.PlatformState platform_state_value = 12;
*/
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.PlatformStateOrBuilder getPlatformStateValueOrBuilder() {
if ((newValueCase_ == 12) && (platformStateValueBuilder_ != null)) {
return platformStateValueBuilder_.getMessageOrBuilder();
} else {
if (newValueCase_ == 12) {
return (com.hedera.hapi.platform.state.legacy.PlatformState) newValue_;
}
return com.hedera.hapi.platform.state.legacy.PlatformState.getDefaultInstance();
}
}
/**
*
**
* A change to the platform state singleton.
*
*
* .com.hedera.hapi.platform.state.PlatformState platform_state_value = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hapi.platform.state.legacy.PlatformState, com.hedera.hapi.platform.state.legacy.PlatformState.Builder, com.hedera.hapi.platform.state.legacy.PlatformStateOrBuilder>
getPlatformStateValueFieldBuilder() {
if (platformStateValueBuilder_ == null) {
if (!(newValueCase_ == 12)) {
newValue_ = com.hedera.hapi.platform.state.legacy.PlatformState.getDefaultInstance();
}
platformStateValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hapi.platform.state.legacy.PlatformState, com.hedera.hapi.platform.state.legacy.PlatformState.Builder, com.hedera.hapi.platform.state.legacy.PlatformStateOrBuilder>(
(com.hedera.hapi.platform.state.legacy.PlatformState) newValue_,
getParentForChildren(),
isClean());
newValue_ = null;
}
newValueCase_ = 12;
onChanged();;
return platformStateValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.RosterState, com.hederahashgraph.api.proto.java.RosterState.Builder, com.hederahashgraph.api.proto.java.RosterStateOrBuilder> rosterStateValueBuilder_;
/**
*
**
* A change to the roster state singleton.
*
*
* .com.hedera.hapi.node.state.roster.RosterState roster_state_value = 13;
* @return Whether the rosterStateValue field is set.
*/
@java.lang.Override
public boolean hasRosterStateValue() {
return newValueCase_ == 13;
}
/**
*
**
* A change to the roster state singleton.
*
*
* .com.hedera.hapi.node.state.roster.RosterState roster_state_value = 13;
* @return The rosterStateValue.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.RosterState getRosterStateValue() {
if (rosterStateValueBuilder_ == null) {
if (newValueCase_ == 13) {
return (com.hederahashgraph.api.proto.java.RosterState) newValue_;
}
return com.hederahashgraph.api.proto.java.RosterState.getDefaultInstance();
} else {
if (newValueCase_ == 13) {
return rosterStateValueBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.RosterState.getDefaultInstance();
}
}
/**
*
**
* A change to the roster state singleton.
*
*
* .com.hedera.hapi.node.state.roster.RosterState roster_state_value = 13;
*/
public Builder setRosterStateValue(com.hederahashgraph.api.proto.java.RosterState value) {
if (rosterStateValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newValue_ = value;
onChanged();
} else {
rosterStateValueBuilder_.setMessage(value);
}
newValueCase_ = 13;
return this;
}
/**
*
**
* A change to the roster state singleton.
*
*
* .com.hedera.hapi.node.state.roster.RosterState roster_state_value = 13;
*/
public Builder setRosterStateValue(
com.hederahashgraph.api.proto.java.RosterState.Builder builderForValue) {
if (rosterStateValueBuilder_ == null) {
newValue_ = builderForValue.build();
onChanged();
} else {
rosterStateValueBuilder_.setMessage(builderForValue.build());
}
newValueCase_ = 13;
return this;
}
/**
*
**
* A change to the roster state singleton.
*
*
* .com.hedera.hapi.node.state.roster.RosterState roster_state_value = 13;
*/
public Builder mergeRosterStateValue(com.hederahashgraph.api.proto.java.RosterState value) {
if (rosterStateValueBuilder_ == null) {
if (newValueCase_ == 13 &&
newValue_ != com.hederahashgraph.api.proto.java.RosterState.getDefaultInstance()) {
newValue_ = com.hederahashgraph.api.proto.java.RosterState.newBuilder((com.hederahashgraph.api.proto.java.RosterState) newValue_)
.mergeFrom(value).buildPartial();
} else {
newValue_ = value;
}
onChanged();
} else {
if (newValueCase_ == 13) {
rosterStateValueBuilder_.mergeFrom(value);
}
rosterStateValueBuilder_.setMessage(value);
}
newValueCase_ = 13;
return this;
}
/**
*
**
* A change to the roster state singleton.
*
*
* .com.hedera.hapi.node.state.roster.RosterState roster_state_value = 13;
*/
public Builder clearRosterStateValue() {
if (rosterStateValueBuilder_ == null) {
if (newValueCase_ == 13) {
newValueCase_ = 0;
newValue_ = null;
onChanged();
}
} else {
if (newValueCase_ == 13) {
newValueCase_ = 0;
newValue_ = null;
}
rosterStateValueBuilder_.clear();
}
return this;
}
/**
*
**
* A change to the roster state singleton.
*
*
* .com.hedera.hapi.node.state.roster.RosterState roster_state_value = 13;
*/
public com.hederahashgraph.api.proto.java.RosterState.Builder getRosterStateValueBuilder() {
return getRosterStateValueFieldBuilder().getBuilder();
}
/**
*
**
* A change to the roster state singleton.
*
*
* .com.hedera.hapi.node.state.roster.RosterState roster_state_value = 13;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.RosterStateOrBuilder getRosterStateValueOrBuilder() {
if ((newValueCase_ == 13) && (rosterStateValueBuilder_ != null)) {
return rosterStateValueBuilder_.getMessageOrBuilder();
} else {
if (newValueCase_ == 13) {
return (com.hederahashgraph.api.proto.java.RosterState) newValue_;
}
return com.hederahashgraph.api.proto.java.RosterState.getDefaultInstance();
}
}
/**
*
**
* A change to the roster state singleton.
*
*
* .com.hedera.hapi.node.state.roster.RosterState roster_state_value = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.RosterState, com.hederahashgraph.api.proto.java.RosterState.Builder, com.hederahashgraph.api.proto.java.RosterStateOrBuilder>
getRosterStateValueFieldBuilder() {
if (rosterStateValueBuilder_ == null) {
if (!(newValueCase_ == 13)) {
newValue_ = com.hederahashgraph.api.proto.java.RosterState.getDefaultInstance();
}
rosterStateValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.RosterState, com.hederahashgraph.api.proto.java.RosterState.Builder, com.hederahashgraph.api.proto.java.RosterStateOrBuilder>(
(com.hederahashgraph.api.proto.java.RosterState) newValue_,
getParentForChildren(),
isClean());
newValue_ = null;
}
newValueCase_ = 13;
onChanged();;
return rosterStateValueBuilder_;
}
@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:com.hedera.hapi.block.stream.output.SingletonUpdateChange)
}
// @@protoc_insertion_point(class_scope:com.hedera.hapi.block.stream.output.SingletonUpdateChange)
private static final com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange();
}
public static com.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SingletonUpdateChange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SingletonUpdateChange(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.hedera.hapi.block.stream.output.protoc.SingletonUpdateChange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy