com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: crypto_update.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Change properties for the given account. Any null field is ignored (left unchanged). This
* transaction must be signed by the existing key for this account. If the transaction is changing
* the key field, then the transaction must be signed by both the old key (from before the change)
* and the new key. The old key must sign for security. The new key must sign as a safeguard to
* avoid accidentally changing to an invalid key, and then having no way to recover.
* If the update transaction sets the <tt>auto_renew_account</tt> field to anything other
* than the sentinel <tt>0.0.0</tt>, the key of the referenced account must sign.
*
*
* Protobuf type {@code proto.CryptoUpdateTransactionBody}
*/
public final class CryptoUpdateTransactionBody extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.CryptoUpdateTransactionBody)
CryptoUpdateTransactionBodyOrBuilder {
private static final long serialVersionUID = 0L;
// Use CryptoUpdateTransactionBody.newBuilder() to construct.
private CryptoUpdateTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CryptoUpdateTransactionBody() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CryptoUpdateTransactionBody();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.CryptoUpdate.internal_static_proto_CryptoUpdateTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.CryptoUpdate.internal_static_proto_CryptoUpdateTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody.class, com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody.Builder.class);
}
private int bitField0_;
private int sendRecordThresholdFieldCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object sendRecordThresholdField_;
public enum SendRecordThresholdFieldCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
@java.lang.Deprecated SENDRECORDTHRESHOLD(6),
@java.lang.Deprecated SENDRECORDTHRESHOLDWRAPPER(11),
SENDRECORDTHRESHOLDFIELD_NOT_SET(0);
private final int value;
private SendRecordThresholdFieldCase(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 SendRecordThresholdFieldCase valueOf(int value) {
return forNumber(value);
}
public static SendRecordThresholdFieldCase forNumber(int value) {
switch (value) {
case 6: return SENDRECORDTHRESHOLD;
case 11: return SENDRECORDTHRESHOLDWRAPPER;
case 0: return SENDRECORDTHRESHOLDFIELD_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SendRecordThresholdFieldCase
getSendRecordThresholdFieldCase() {
return SendRecordThresholdFieldCase.forNumber(
sendRecordThresholdFieldCase_);
}
private int receiveRecordThresholdFieldCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object receiveRecordThresholdField_;
public enum ReceiveRecordThresholdFieldCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
@java.lang.Deprecated RECEIVERECORDTHRESHOLD(7),
@java.lang.Deprecated RECEIVERECORDTHRESHOLDWRAPPER(12),
RECEIVERECORDTHRESHOLDFIELD_NOT_SET(0);
private final int value;
private ReceiveRecordThresholdFieldCase(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 ReceiveRecordThresholdFieldCase valueOf(int value) {
return forNumber(value);
}
public static ReceiveRecordThresholdFieldCase forNumber(int value) {
switch (value) {
case 7: return RECEIVERECORDTHRESHOLD;
case 12: return RECEIVERECORDTHRESHOLDWRAPPER;
case 0: return RECEIVERECORDTHRESHOLDFIELD_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ReceiveRecordThresholdFieldCase
getReceiveRecordThresholdFieldCase() {
return ReceiveRecordThresholdFieldCase.forNumber(
receiveRecordThresholdFieldCase_);
}
private int receiverSigRequiredFieldCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object receiverSigRequiredField_;
public enum ReceiverSigRequiredFieldCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
@java.lang.Deprecated RECEIVERSIGREQUIRED(10),
RECEIVERSIGREQUIREDWRAPPER(13),
RECEIVERSIGREQUIREDFIELD_NOT_SET(0);
private final int value;
private ReceiverSigRequiredFieldCase(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 ReceiverSigRequiredFieldCase valueOf(int value) {
return forNumber(value);
}
public static ReceiverSigRequiredFieldCase forNumber(int value) {
switch (value) {
case 10: return RECEIVERSIGREQUIRED;
case 13: return RECEIVERSIGREQUIREDWRAPPER;
case 0: return RECEIVERSIGREQUIREDFIELD_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ReceiverSigRequiredFieldCase
getReceiverSigRequiredFieldCase() {
return ReceiverSigRequiredFieldCase.forNumber(
receiverSigRequiredFieldCase_);
}
private int stakedIdCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object stakedId_;
public enum StakedIdCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
STAKED_ACCOUNT_ID(16),
STAKED_NODE_ID(17),
STAKEDID_NOT_SET(0);
private final int value;
private StakedIdCase(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 StakedIdCase valueOf(int value) {
return forNumber(value);
}
public static StakedIdCase forNumber(int value) {
switch (value) {
case 16: return STAKED_ACCOUNT_ID;
case 17: return STAKED_NODE_ID;
case 0: return STAKEDID_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public StakedIdCase
getStakedIdCase() {
return StakedIdCase.forNumber(
stakedIdCase_);
}
public static final int ACCOUNTIDTOUPDATE_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.AccountID accountIDToUpdate_;
/**
*
**
* The account ID which is being updated in this transaction
*
*
* .proto.AccountID accountIDToUpdate = 2;
* @return Whether the accountIDToUpdate field is set.
*/
@java.lang.Override
public boolean hasAccountIDToUpdate() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The account ID which is being updated in this transaction
*
*
* .proto.AccountID accountIDToUpdate = 2;
* @return The accountIDToUpdate.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAccountIDToUpdate() {
return accountIDToUpdate_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountIDToUpdate_;
}
/**
*
**
* The account ID which is being updated in this transaction
*
*
* .proto.AccountID accountIDToUpdate = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIDToUpdateOrBuilder() {
return accountIDToUpdate_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountIDToUpdate_;
}
public static final int KEY_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.Key key_;
/**
*
**
* The new key
*
*
* .proto.Key key = 3;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The new key
*
*
* .proto.Key key = 3;
* @return The key.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getKey() {
return key_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : key_;
}
/**
*
**
* The new key
*
*
* .proto.Key key = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getKeyOrBuilder() {
return key_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : key_;
}
public static final int PROXYACCOUNTID_FIELD_NUMBER = 4;
private com.hedera.hashgraph.sdk.proto.AccountID proxyAccountID_;
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 4 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.proxyAccountID is deprecated.
* See crypto_update.proto;l=60
* @return Whether the proxyAccountID field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasProxyAccountID() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 4 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.proxyAccountID is deprecated.
* See crypto_update.proto;l=60
* @return The proxyAccountID.
*/
@java.lang.Override
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountID getProxyAccountID() {
return proxyAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : proxyAccountID_;
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 4 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getProxyAccountIDOrBuilder() {
return proxyAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : proxyAccountID_;
}
public static final int PROXYFRACTION_FIELD_NUMBER = 5;
private int proxyFraction_ = 0;
/**
*
**
* [Deprecated]. Payments earned from proxy staking are shared between the node and this
* account, with proxyFraction / 10000 going to this account
*
*
* int32 proxyFraction = 5 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.proxyFraction is deprecated.
* See crypto_update.proto;l=66
* @return The proxyFraction.
*/
@java.lang.Override
@java.lang.Deprecated public int getProxyFraction() {
return proxyFraction_;
}
public static final int SENDRECORDTHRESHOLD_FIELD_NUMBER = 6;
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* uint64 sendRecordThreshold = 6 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.sendRecordThreshold is deprecated.
* See crypto_update.proto;l=73
* @return Whether the sendRecordThreshold field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasSendRecordThreshold() {
return sendRecordThresholdFieldCase_ == 6;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* uint64 sendRecordThreshold = 6 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.sendRecordThreshold is deprecated.
* See crypto_update.proto;l=73
* @return The sendRecordThreshold.
*/
@java.lang.Override
@java.lang.Deprecated public long getSendRecordThreshold() {
if (sendRecordThresholdFieldCase_ == 6) {
return (java.lang.Long) sendRecordThresholdField_;
}
return 0L;
}
public static final int SENDRECORDTHRESHOLDWRAPPER_FIELD_NUMBER = 11;
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* .google.protobuf.UInt64Value sendRecordThresholdWrapper = 11 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.sendRecordThresholdWrapper is deprecated.
* See crypto_update.proto;l=79
* @return Whether the sendRecordThresholdWrapper field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasSendRecordThresholdWrapper() {
return sendRecordThresholdFieldCase_ == 11;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* .google.protobuf.UInt64Value sendRecordThresholdWrapper = 11 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.sendRecordThresholdWrapper is deprecated.
* See crypto_update.proto;l=79
* @return The sendRecordThresholdWrapper.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.UInt64Value getSendRecordThresholdWrapper() {
if (sendRecordThresholdFieldCase_ == 11) {
return (com.google.protobuf.UInt64Value) sendRecordThresholdField_;
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* .google.protobuf.UInt64Value sendRecordThresholdWrapper = 11 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.UInt64ValueOrBuilder getSendRecordThresholdWrapperOrBuilder() {
if (sendRecordThresholdFieldCase_ == 11) {
return (com.google.protobuf.UInt64Value) sendRecordThresholdField_;
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
}
public static final int RECEIVERECORDTHRESHOLD_FIELD_NUMBER = 7;
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* uint64 receiveRecordThreshold = 7 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiveRecordThreshold is deprecated.
* See crypto_update.proto;l=88
* @return Whether the receiveRecordThreshold field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasReceiveRecordThreshold() {
return receiveRecordThresholdFieldCase_ == 7;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* uint64 receiveRecordThreshold = 7 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiveRecordThreshold is deprecated.
* See crypto_update.proto;l=88
* @return The receiveRecordThreshold.
*/
@java.lang.Override
@java.lang.Deprecated public long getReceiveRecordThreshold() {
if (receiveRecordThresholdFieldCase_ == 7) {
return (java.lang.Long) receiveRecordThresholdField_;
}
return 0L;
}
public static final int RECEIVERECORDTHRESHOLDWRAPPER_FIELD_NUMBER = 12;
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* .google.protobuf.UInt64Value receiveRecordThresholdWrapper = 12 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiveRecordThresholdWrapper is deprecated.
* See crypto_update.proto;l=94
* @return Whether the receiveRecordThresholdWrapper field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasReceiveRecordThresholdWrapper() {
return receiveRecordThresholdFieldCase_ == 12;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* .google.protobuf.UInt64Value receiveRecordThresholdWrapper = 12 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiveRecordThresholdWrapper is deprecated.
* See crypto_update.proto;l=94
* @return The receiveRecordThresholdWrapper.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.UInt64Value getReceiveRecordThresholdWrapper() {
if (receiveRecordThresholdFieldCase_ == 12) {
return (com.google.protobuf.UInt64Value) receiveRecordThresholdField_;
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* .google.protobuf.UInt64Value receiveRecordThresholdWrapper = 12 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.UInt64ValueOrBuilder getReceiveRecordThresholdWrapperOrBuilder() {
if (receiveRecordThresholdFieldCase_ == 12) {
return (com.google.protobuf.UInt64Value) receiveRecordThresholdField_;
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
}
public static final int AUTORENEWPERIOD_FIELD_NUMBER = 8;
private com.hedera.hashgraph.sdk.proto.Duration autoRenewPeriod_;
/**
*
**
* The duration in which it will automatically extend the expiration period. If it doesn't have
* enough balance, it extends as long as possible. If it is empty when it expires, then it is
* deleted.
*
*
* .proto.Duration autoRenewPeriod = 8;
* @return Whether the autoRenewPeriod field is set.
*/
@java.lang.Override
public boolean hasAutoRenewPeriod() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* The duration in which it will automatically extend the expiration period. If it doesn't have
* enough balance, it extends as long as possible. If it is empty when it expires, then it is
* deleted.
*
*
* .proto.Duration autoRenewPeriod = 8;
* @return The autoRenewPeriod.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() {
return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
}
/**
*
**
* The duration in which it will automatically extend the expiration period. If it doesn't have
* enough balance, it extends as long as possible. If it is empty when it expires, then it is
* deleted.
*
*
* .proto.Duration autoRenewPeriod = 8;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder() {
return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
}
public static final int EXPIRATIONTIME_FIELD_NUMBER = 9;
private com.hedera.hashgraph.sdk.proto.Timestamp expirationTime_;
/**
*
**
* The new expiration time to extend to (ignored if equal to or before the current one)
*
*
* .proto.Timestamp expirationTime = 9;
* @return Whether the expirationTime field is set.
*/
@java.lang.Override
public boolean hasExpirationTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
**
* The new expiration time to extend to (ignored if equal to or before the current one)
*
*
* .proto.Timestamp expirationTime = 9;
* @return The expirationTime.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
}
/**
*
**
* The new expiration time to extend to (ignored if equal to or before the current one)
*
*
* .proto.Timestamp expirationTime = 9;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
}
public static final int RECEIVERSIGREQUIRED_FIELD_NUMBER = 10;
/**
*
**
* [Deprecated] Do NOT use this field to set a false value because the server cannot
* distinguish from the default value. Use receiverSigRequiredWrapper field for this
* purpose.
*
*
* bool receiverSigRequired = 10 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiverSigRequired is deprecated.
* See crypto_update.proto;l=115
* @return Whether the receiverSigRequired field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasReceiverSigRequired() {
return receiverSigRequiredFieldCase_ == 10;
}
/**
*
**
* [Deprecated] Do NOT use this field to set a false value because the server cannot
* distinguish from the default value. Use receiverSigRequiredWrapper field for this
* purpose.
*
*
* bool receiverSigRequired = 10 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiverSigRequired is deprecated.
* See crypto_update.proto;l=115
* @return The receiverSigRequired.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getReceiverSigRequired() {
if (receiverSigRequiredFieldCase_ == 10) {
return (java.lang.Boolean) receiverSigRequiredField_;
}
return false;
}
public static final int RECEIVERSIGREQUIREDWRAPPER_FIELD_NUMBER = 13;
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* .google.protobuf.BoolValue receiverSigRequiredWrapper = 13;
* @return Whether the receiverSigRequiredWrapper field is set.
*/
@java.lang.Override
public boolean hasReceiverSigRequiredWrapper() {
return receiverSigRequiredFieldCase_ == 13;
}
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* .google.protobuf.BoolValue receiverSigRequiredWrapper = 13;
* @return The receiverSigRequiredWrapper.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getReceiverSigRequiredWrapper() {
if (receiverSigRequiredFieldCase_ == 13) {
return (com.google.protobuf.BoolValue) receiverSigRequiredField_;
}
return com.google.protobuf.BoolValue.getDefaultInstance();
}
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* .google.protobuf.BoolValue receiverSigRequiredWrapper = 13;
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getReceiverSigRequiredWrapperOrBuilder() {
if (receiverSigRequiredFieldCase_ == 13) {
return (com.google.protobuf.BoolValue) receiverSigRequiredField_;
}
return com.google.protobuf.BoolValue.getDefaultInstance();
}
public static final int MEMO_FIELD_NUMBER = 14;
private com.google.protobuf.StringValue memo_;
/**
*
**
* If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 14;
* @return Whether the memo field is set.
*/
@java.lang.Override
public boolean hasMemo() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 14;
* @return The memo.
*/
@java.lang.Override
public com.google.protobuf.StringValue getMemo() {
return memo_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : memo_;
}
/**
*
**
* If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 14;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getMemoOrBuilder() {
return memo_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : memo_;
}
public static final int MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER = 15;
private com.google.protobuf.Int32Value maxAutomaticTokenAssociations_;
/**
*
**
* If set, modify the maximum number of tokens that can be auto-associated with the
* account.<br/>
* If this is set and less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.
*
*
* .google.protobuf.Int32Value max_automatic_token_associations = 15;
* @return Whether the maxAutomaticTokenAssociations field is set.
*/
@java.lang.Override
public boolean hasMaxAutomaticTokenAssociations() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
**
* If set, modify the maximum number of tokens that can be auto-associated with the
* account.<br/>
* If this is set and less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.
*
*
* .google.protobuf.Int32Value max_automatic_token_associations = 15;
* @return The maxAutomaticTokenAssociations.
*/
@java.lang.Override
public com.google.protobuf.Int32Value getMaxAutomaticTokenAssociations() {
return maxAutomaticTokenAssociations_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : maxAutomaticTokenAssociations_;
}
/**
*
**
* If set, modify the maximum number of tokens that can be auto-associated with the
* account.<br/>
* If this is set and less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.
*
*
* .google.protobuf.Int32Value max_automatic_token_associations = 15;
*/
@java.lang.Override
public com.google.protobuf.Int32ValueOrBuilder getMaxAutomaticTokenAssociationsOrBuilder() {
return maxAutomaticTokenAssociations_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : maxAutomaticTokenAssociations_;
}
public static final int STAKED_ACCOUNT_ID_FIELD_NUMBER = 16;
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 16;
* @return Whether the stakedAccountId field is set.
*/
@java.lang.Override
public boolean hasStakedAccountId() {
return stakedIdCase_ == 16;
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 16;
* @return The stakedAccountId.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getStakedAccountId() {
if (stakedIdCase_ == 16) {
return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_;
}
return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance();
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 16;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getStakedAccountIdOrBuilder() {
if (stakedIdCase_ == 16) {
return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_;
}
return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance();
}
public static final int STAKED_NODE_ID_FIELD_NUMBER = 17;
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 17;
* @return Whether the stakedNodeId field is set.
*/
@java.lang.Override
public boolean hasStakedNodeId() {
return stakedIdCase_ == 17;
}
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 17;
* @return The stakedNodeId.
*/
@java.lang.Override
public long getStakedNodeId() {
if (stakedIdCase_ == 17) {
return (java.lang.Long) stakedId_;
}
return 0L;
}
public static final int DECLINE_REWARD_FIELD_NUMBER = 18;
private com.google.protobuf.BoolValue declineReward_;
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* .google.protobuf.BoolValue decline_reward = 18;
* @return Whether the declineReward field is set.
*/
@java.lang.Override
public boolean hasDeclineReward() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* .google.protobuf.BoolValue decline_reward = 18;
* @return The declineReward.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getDeclineReward() {
return declineReward_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : declineReward_;
}
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* .google.protobuf.BoolValue decline_reward = 18;
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getDeclineRewardOrBuilder() {
return declineReward_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : declineReward_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getAccountIDToUpdate());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getKey());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getProxyAccountID());
}
if (proxyFraction_ != 0) {
output.writeInt32(5, proxyFraction_);
}
if (sendRecordThresholdFieldCase_ == 6) {
output.writeUInt64(
6, (long)((java.lang.Long) sendRecordThresholdField_));
}
if (receiveRecordThresholdFieldCase_ == 7) {
output.writeUInt64(
7, (long)((java.lang.Long) receiveRecordThresholdField_));
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(8, getAutoRenewPeriod());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(9, getExpirationTime());
}
if (receiverSigRequiredFieldCase_ == 10) {
output.writeBool(
10, (boolean)((java.lang.Boolean) receiverSigRequiredField_));
}
if (sendRecordThresholdFieldCase_ == 11) {
output.writeMessage(11, (com.google.protobuf.UInt64Value) sendRecordThresholdField_);
}
if (receiveRecordThresholdFieldCase_ == 12) {
output.writeMessage(12, (com.google.protobuf.UInt64Value) receiveRecordThresholdField_);
}
if (receiverSigRequiredFieldCase_ == 13) {
output.writeMessage(13, (com.google.protobuf.BoolValue) receiverSigRequiredField_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(14, getMemo());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(15, getMaxAutomaticTokenAssociations());
}
if (stakedIdCase_ == 16) {
output.writeMessage(16, (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_);
}
if (stakedIdCase_ == 17) {
output.writeInt64(
17, (long)((java.lang.Long) stakedId_));
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(18, getDeclineReward());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAccountIDToUpdate());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getKey());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getProxyAccountID());
}
if (proxyFraction_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, proxyFraction_);
}
if (sendRecordThresholdFieldCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
6, (long)((java.lang.Long) sendRecordThresholdField_));
}
if (receiveRecordThresholdFieldCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
7, (long)((java.lang.Long) receiveRecordThresholdField_));
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getAutoRenewPeriod());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getExpirationTime());
}
if (receiverSigRequiredFieldCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
10, (boolean)((java.lang.Boolean) receiverSigRequiredField_));
}
if (sendRecordThresholdFieldCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (com.google.protobuf.UInt64Value) sendRecordThresholdField_);
}
if (receiveRecordThresholdFieldCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (com.google.protobuf.UInt64Value) receiveRecordThresholdField_);
}
if (receiverSigRequiredFieldCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (com.google.protobuf.BoolValue) receiverSigRequiredField_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getMemo());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getMaxAutomaticTokenAssociations());
}
if (stakedIdCase_ == 16) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_);
}
if (stakedIdCase_ == 17) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
17, (long)((java.lang.Long) stakedId_));
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getDeclineReward());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody other = (com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody) obj;
if (hasAccountIDToUpdate() != other.hasAccountIDToUpdate()) return false;
if (hasAccountIDToUpdate()) {
if (!getAccountIDToUpdate()
.equals(other.getAccountIDToUpdate())) return false;
}
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasProxyAccountID() != other.hasProxyAccountID()) return false;
if (hasProxyAccountID()) {
if (!getProxyAccountID()
.equals(other.getProxyAccountID())) return false;
}
if (getProxyFraction()
!= other.getProxyFraction()) return false;
if (hasAutoRenewPeriod() != other.hasAutoRenewPeriod()) return false;
if (hasAutoRenewPeriod()) {
if (!getAutoRenewPeriod()
.equals(other.getAutoRenewPeriod())) return false;
}
if (hasExpirationTime() != other.hasExpirationTime()) return false;
if (hasExpirationTime()) {
if (!getExpirationTime()
.equals(other.getExpirationTime())) return false;
}
if (hasMemo() != other.hasMemo()) return false;
if (hasMemo()) {
if (!getMemo()
.equals(other.getMemo())) return false;
}
if (hasMaxAutomaticTokenAssociations() != other.hasMaxAutomaticTokenAssociations()) return false;
if (hasMaxAutomaticTokenAssociations()) {
if (!getMaxAutomaticTokenAssociations()
.equals(other.getMaxAutomaticTokenAssociations())) return false;
}
if (hasDeclineReward() != other.hasDeclineReward()) return false;
if (hasDeclineReward()) {
if (!getDeclineReward()
.equals(other.getDeclineReward())) return false;
}
if (!getSendRecordThresholdFieldCase().equals(other.getSendRecordThresholdFieldCase())) return false;
switch (sendRecordThresholdFieldCase_) {
case 6:
if (getSendRecordThreshold()
!= other.getSendRecordThreshold()) return false;
break;
case 11:
if (!getSendRecordThresholdWrapper()
.equals(other.getSendRecordThresholdWrapper())) return false;
break;
case 0:
default:
}
if (!getReceiveRecordThresholdFieldCase().equals(other.getReceiveRecordThresholdFieldCase())) return false;
switch (receiveRecordThresholdFieldCase_) {
case 7:
if (getReceiveRecordThreshold()
!= other.getReceiveRecordThreshold()) return false;
break;
case 12:
if (!getReceiveRecordThresholdWrapper()
.equals(other.getReceiveRecordThresholdWrapper())) return false;
break;
case 0:
default:
}
if (!getReceiverSigRequiredFieldCase().equals(other.getReceiverSigRequiredFieldCase())) return false;
switch (receiverSigRequiredFieldCase_) {
case 10:
if (getReceiverSigRequired()
!= other.getReceiverSigRequired()) return false;
break;
case 13:
if (!getReceiverSigRequiredWrapper()
.equals(other.getReceiverSigRequiredWrapper())) return false;
break;
case 0:
default:
}
if (!getStakedIdCase().equals(other.getStakedIdCase())) return false;
switch (stakedIdCase_) {
case 16:
if (!getStakedAccountId()
.equals(other.getStakedAccountId())) return false;
break;
case 17:
if (getStakedNodeId()
!= other.getStakedNodeId()) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAccountIDToUpdate()) {
hash = (37 * hash) + ACCOUNTIDTOUPDATE_FIELD_NUMBER;
hash = (53 * hash) + getAccountIDToUpdate().hashCode();
}
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasProxyAccountID()) {
hash = (37 * hash) + PROXYACCOUNTID_FIELD_NUMBER;
hash = (53 * hash) + getProxyAccountID().hashCode();
}
hash = (37 * hash) + PROXYFRACTION_FIELD_NUMBER;
hash = (53 * hash) + getProxyFraction();
if (hasAutoRenewPeriod()) {
hash = (37 * hash) + AUTORENEWPERIOD_FIELD_NUMBER;
hash = (53 * hash) + getAutoRenewPeriod().hashCode();
}
if (hasExpirationTime()) {
hash = (37 * hash) + EXPIRATIONTIME_FIELD_NUMBER;
hash = (53 * hash) + getExpirationTime().hashCode();
}
if (hasMemo()) {
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
}
if (hasMaxAutomaticTokenAssociations()) {
hash = (37 * hash) + MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER;
hash = (53 * hash) + getMaxAutomaticTokenAssociations().hashCode();
}
if (hasDeclineReward()) {
hash = (37 * hash) + DECLINE_REWARD_FIELD_NUMBER;
hash = (53 * hash) + getDeclineReward().hashCode();
}
switch (sendRecordThresholdFieldCase_) {
case 6:
hash = (37 * hash) + SENDRECORDTHRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSendRecordThreshold());
break;
case 11:
hash = (37 * hash) + SENDRECORDTHRESHOLDWRAPPER_FIELD_NUMBER;
hash = (53 * hash) + getSendRecordThresholdWrapper().hashCode();
break;
case 0:
default:
}
switch (receiveRecordThresholdFieldCase_) {
case 7:
hash = (37 * hash) + RECEIVERECORDTHRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReceiveRecordThreshold());
break;
case 12:
hash = (37 * hash) + RECEIVERECORDTHRESHOLDWRAPPER_FIELD_NUMBER;
hash = (53 * hash) + getReceiveRecordThresholdWrapper().hashCode();
break;
case 0:
default:
}
switch (receiverSigRequiredFieldCase_) {
case 10:
hash = (37 * hash) + RECEIVERSIGREQUIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReceiverSigRequired());
break;
case 13:
hash = (37 * hash) + RECEIVERSIGREQUIREDWRAPPER_FIELD_NUMBER;
hash = (53 * hash) + getReceiverSigRequiredWrapper().hashCode();
break;
case 0:
default:
}
switch (stakedIdCase_) {
case 16:
hash = (37 * hash) + STAKED_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getStakedAccountId().hashCode();
break;
case 17:
hash = (37 * hash) + STAKED_NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStakedNodeId());
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody 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;
}
/**
*
**
* Change properties for the given account. Any null field is ignored (left unchanged). This
* transaction must be signed by the existing key for this account. If the transaction is changing
* the key field, then the transaction must be signed by both the old key (from before the change)
* and the new key. The old key must sign for security. The new key must sign as a safeguard to
* avoid accidentally changing to an invalid key, and then having no way to recover.
* If the update transaction sets the <tt>auto_renew_account</tt> field to anything other
* than the sentinel <tt>0.0.0</tt>, the key of the referenced account must sign.
*
*
* Protobuf type {@code proto.CryptoUpdateTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.CryptoUpdateTransactionBody)
com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.CryptoUpdate.internal_static_proto_CryptoUpdateTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.CryptoUpdate.internal_static_proto_CryptoUpdateTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody.class, com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAccountIDToUpdateFieldBuilder();
getKeyFieldBuilder();
getProxyAccountIDFieldBuilder();
getAutoRenewPeriodFieldBuilder();
getExpirationTimeFieldBuilder();
getMemoFieldBuilder();
getMaxAutomaticTokenAssociationsFieldBuilder();
getDeclineRewardFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
accountIDToUpdate_ = null;
if (accountIDToUpdateBuilder_ != null) {
accountIDToUpdateBuilder_.dispose();
accountIDToUpdateBuilder_ = null;
}
key_ = null;
if (keyBuilder_ != null) {
keyBuilder_.dispose();
keyBuilder_ = null;
}
proxyAccountID_ = null;
if (proxyAccountIDBuilder_ != null) {
proxyAccountIDBuilder_.dispose();
proxyAccountIDBuilder_ = null;
}
proxyFraction_ = 0;
if (sendRecordThresholdWrapperBuilder_ != null) {
sendRecordThresholdWrapperBuilder_.clear();
}
if (receiveRecordThresholdWrapperBuilder_ != null) {
receiveRecordThresholdWrapperBuilder_.clear();
}
autoRenewPeriod_ = null;
if (autoRenewPeriodBuilder_ != null) {
autoRenewPeriodBuilder_.dispose();
autoRenewPeriodBuilder_ = null;
}
expirationTime_ = null;
if (expirationTimeBuilder_ != null) {
expirationTimeBuilder_.dispose();
expirationTimeBuilder_ = null;
}
if (receiverSigRequiredWrapperBuilder_ != null) {
receiverSigRequiredWrapperBuilder_.clear();
}
memo_ = null;
if (memoBuilder_ != null) {
memoBuilder_.dispose();
memoBuilder_ = null;
}
maxAutomaticTokenAssociations_ = null;
if (maxAutomaticTokenAssociationsBuilder_ != null) {
maxAutomaticTokenAssociationsBuilder_.dispose();
maxAutomaticTokenAssociationsBuilder_ = null;
}
if (stakedAccountIdBuilder_ != null) {
stakedAccountIdBuilder_.clear();
}
declineReward_ = null;
if (declineRewardBuilder_ != null) {
declineRewardBuilder_.dispose();
declineRewardBuilder_ = null;
}
sendRecordThresholdFieldCase_ = 0;
sendRecordThresholdField_ = null;
receiveRecordThresholdFieldCase_ = 0;
receiveRecordThresholdField_ = null;
receiverSigRequiredFieldCase_ = 0;
receiverSigRequiredField_ = null;
stakedIdCase_ = 0;
stakedId_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.CryptoUpdate.internal_static_proto_CryptoUpdateTransactionBody_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody build() {
com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody buildPartial() {
com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody result = new com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.accountIDToUpdate_ = accountIDToUpdateBuilder_ == null
? accountIDToUpdate_
: accountIDToUpdateBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.key_ = keyBuilder_ == null
? key_
: keyBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.proxyAccountID_ = proxyAccountIDBuilder_ == null
? proxyAccountID_
: proxyAccountIDBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.proxyFraction_ = proxyFraction_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.autoRenewPeriod_ = autoRenewPeriodBuilder_ == null
? autoRenewPeriod_
: autoRenewPeriodBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.expirationTime_ = expirationTimeBuilder_ == null
? expirationTime_
: expirationTimeBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.memo_ = memoBuilder_ == null
? memo_
: memoBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.maxAutomaticTokenAssociations_ = maxAutomaticTokenAssociationsBuilder_ == null
? maxAutomaticTokenAssociations_
: maxAutomaticTokenAssociationsBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.declineReward_ = declineRewardBuilder_ == null
? declineReward_
: declineRewardBuilder_.build();
to_bitField0_ |= 0x00000080;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody result) {
result.sendRecordThresholdFieldCase_ = sendRecordThresholdFieldCase_;
result.sendRecordThresholdField_ = this.sendRecordThresholdField_;
if (sendRecordThresholdFieldCase_ == 11 &&
sendRecordThresholdWrapperBuilder_ != null) {
result.sendRecordThresholdField_ = sendRecordThresholdWrapperBuilder_.build();
}
result.receiveRecordThresholdFieldCase_ = receiveRecordThresholdFieldCase_;
result.receiveRecordThresholdField_ = this.receiveRecordThresholdField_;
if (receiveRecordThresholdFieldCase_ == 12 &&
receiveRecordThresholdWrapperBuilder_ != null) {
result.receiveRecordThresholdField_ = receiveRecordThresholdWrapperBuilder_.build();
}
result.receiverSigRequiredFieldCase_ = receiverSigRequiredFieldCase_;
result.receiverSigRequiredField_ = this.receiverSigRequiredField_;
if (receiverSigRequiredFieldCase_ == 13 &&
receiverSigRequiredWrapperBuilder_ != null) {
result.receiverSigRequiredField_ = receiverSigRequiredWrapperBuilder_.build();
}
result.stakedIdCase_ = stakedIdCase_;
result.stakedId_ = this.stakedId_;
if (stakedIdCase_ == 16 &&
stakedAccountIdBuilder_ != null) {
result.stakedId_ = stakedAccountIdBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody other) {
if (other == com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody.getDefaultInstance()) return this;
if (other.hasAccountIDToUpdate()) {
mergeAccountIDToUpdate(other.getAccountIDToUpdate());
}
if (other.hasKey()) {
mergeKey(other.getKey());
}
if (other.hasProxyAccountID()) {
mergeProxyAccountID(other.getProxyAccountID());
}
if (other.getProxyFraction() != 0) {
setProxyFraction(other.getProxyFraction());
}
if (other.hasAutoRenewPeriod()) {
mergeAutoRenewPeriod(other.getAutoRenewPeriod());
}
if (other.hasExpirationTime()) {
mergeExpirationTime(other.getExpirationTime());
}
if (other.hasMemo()) {
mergeMemo(other.getMemo());
}
if (other.hasMaxAutomaticTokenAssociations()) {
mergeMaxAutomaticTokenAssociations(other.getMaxAutomaticTokenAssociations());
}
if (other.hasDeclineReward()) {
mergeDeclineReward(other.getDeclineReward());
}
switch (other.getSendRecordThresholdFieldCase()) {
case SENDRECORDTHRESHOLD: {
setSendRecordThreshold(other.getSendRecordThreshold());
break;
}
case SENDRECORDTHRESHOLDWRAPPER: {
mergeSendRecordThresholdWrapper(other.getSendRecordThresholdWrapper());
break;
}
case SENDRECORDTHRESHOLDFIELD_NOT_SET: {
break;
}
}
switch (other.getReceiveRecordThresholdFieldCase()) {
case RECEIVERECORDTHRESHOLD: {
setReceiveRecordThreshold(other.getReceiveRecordThreshold());
break;
}
case RECEIVERECORDTHRESHOLDWRAPPER: {
mergeReceiveRecordThresholdWrapper(other.getReceiveRecordThresholdWrapper());
break;
}
case RECEIVERECORDTHRESHOLDFIELD_NOT_SET: {
break;
}
}
switch (other.getReceiverSigRequiredFieldCase()) {
case RECEIVERSIGREQUIRED: {
setReceiverSigRequired(other.getReceiverSigRequired());
break;
}
case RECEIVERSIGREQUIREDWRAPPER: {
mergeReceiverSigRequiredWrapper(other.getReceiverSigRequiredWrapper());
break;
}
case RECEIVERSIGREQUIREDFIELD_NOT_SET: {
break;
}
}
switch (other.getStakedIdCase()) {
case STAKED_ACCOUNT_ID: {
mergeStakedAccountId(other.getStakedAccountId());
break;
}
case STAKED_NODE_ID: {
setStakedNodeId(other.getStakedNodeId());
break;
}
case STAKEDID_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18: {
input.readMessage(
getAccountIDToUpdateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 18
case 26: {
input.readMessage(
getKeyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 26
case 34: {
input.readMessage(
getProxyAccountIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 34
case 40: {
proxyFraction_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 40
case 48: {
sendRecordThresholdField_ = input.readUInt64();
sendRecordThresholdFieldCase_ = 6;
break;
} // case 48
case 56: {
receiveRecordThresholdField_ = input.readUInt64();
receiveRecordThresholdFieldCase_ = 7;
break;
} // case 56
case 66: {
input.readMessage(
getAutoRenewPeriodFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 66
case 74: {
input.readMessage(
getExpirationTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 74
case 80: {
receiverSigRequiredField_ = input.readBool();
receiverSigRequiredFieldCase_ = 10;
break;
} // case 80
case 90: {
input.readMessage(
getSendRecordThresholdWrapperFieldBuilder().getBuilder(),
extensionRegistry);
sendRecordThresholdFieldCase_ = 11;
break;
} // case 90
case 98: {
input.readMessage(
getReceiveRecordThresholdWrapperFieldBuilder().getBuilder(),
extensionRegistry);
receiveRecordThresholdFieldCase_ = 12;
break;
} // case 98
case 106: {
input.readMessage(
getReceiverSigRequiredWrapperFieldBuilder().getBuilder(),
extensionRegistry);
receiverSigRequiredFieldCase_ = 13;
break;
} // case 106
case 114: {
input.readMessage(
getMemoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 114
case 122: {
input.readMessage(
getMaxAutomaticTokenAssociationsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00002000;
break;
} // case 122
case 130: {
input.readMessage(
getStakedAccountIdFieldBuilder().getBuilder(),
extensionRegistry);
stakedIdCase_ = 16;
break;
} // case 130
case 136: {
stakedId_ = input.readInt64();
stakedIdCase_ = 17;
break;
} // case 136
case 146: {
input.readMessage(
getDeclineRewardFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00010000;
break;
} // case 146
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int sendRecordThresholdFieldCase_ = 0;
private java.lang.Object sendRecordThresholdField_;
public SendRecordThresholdFieldCase
getSendRecordThresholdFieldCase() {
return SendRecordThresholdFieldCase.forNumber(
sendRecordThresholdFieldCase_);
}
public Builder clearSendRecordThresholdField() {
sendRecordThresholdFieldCase_ = 0;
sendRecordThresholdField_ = null;
onChanged();
return this;
}
private int receiveRecordThresholdFieldCase_ = 0;
private java.lang.Object receiveRecordThresholdField_;
public ReceiveRecordThresholdFieldCase
getReceiveRecordThresholdFieldCase() {
return ReceiveRecordThresholdFieldCase.forNumber(
receiveRecordThresholdFieldCase_);
}
public Builder clearReceiveRecordThresholdField() {
receiveRecordThresholdFieldCase_ = 0;
receiveRecordThresholdField_ = null;
onChanged();
return this;
}
private int receiverSigRequiredFieldCase_ = 0;
private java.lang.Object receiverSigRequiredField_;
public ReceiverSigRequiredFieldCase
getReceiverSigRequiredFieldCase() {
return ReceiverSigRequiredFieldCase.forNumber(
receiverSigRequiredFieldCase_);
}
public Builder clearReceiverSigRequiredField() {
receiverSigRequiredFieldCase_ = 0;
receiverSigRequiredField_ = null;
onChanged();
return this;
}
private int stakedIdCase_ = 0;
private java.lang.Object stakedId_;
public StakedIdCase
getStakedIdCase() {
return StakedIdCase.forNumber(
stakedIdCase_);
}
public Builder clearStakedId() {
stakedIdCase_ = 0;
stakedId_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.hedera.hashgraph.sdk.proto.AccountID accountIDToUpdate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> accountIDToUpdateBuilder_;
/**
*
**
* The account ID which is being updated in this transaction
*
*
* .proto.AccountID accountIDToUpdate = 2;
* @return Whether the accountIDToUpdate field is set.
*/
public boolean hasAccountIDToUpdate() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The account ID which is being updated in this transaction
*
*
* .proto.AccountID accountIDToUpdate = 2;
* @return The accountIDToUpdate.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getAccountIDToUpdate() {
if (accountIDToUpdateBuilder_ == null) {
return accountIDToUpdate_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountIDToUpdate_;
} else {
return accountIDToUpdateBuilder_.getMessage();
}
}
/**
*
**
* The account ID which is being updated in this transaction
*
*
* .proto.AccountID accountIDToUpdate = 2;
*/
public Builder setAccountIDToUpdate(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (accountIDToUpdateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accountIDToUpdate_ = value;
} else {
accountIDToUpdateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The account ID which is being updated in this transaction
*
*
* .proto.AccountID accountIDToUpdate = 2;
*/
public Builder setAccountIDToUpdate(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (accountIDToUpdateBuilder_ == null) {
accountIDToUpdate_ = builderForValue.build();
} else {
accountIDToUpdateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The account ID which is being updated in this transaction
*
*
* .proto.AccountID accountIDToUpdate = 2;
*/
public Builder mergeAccountIDToUpdate(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (accountIDToUpdateBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
accountIDToUpdate_ != null &&
accountIDToUpdate_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getAccountIDToUpdateBuilder().mergeFrom(value);
} else {
accountIDToUpdate_ = value;
}
} else {
accountIDToUpdateBuilder_.mergeFrom(value);
}
if (accountIDToUpdate_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The account ID which is being updated in this transaction
*
*
* .proto.AccountID accountIDToUpdate = 2;
*/
public Builder clearAccountIDToUpdate() {
bitField0_ = (bitField0_ & ~0x00000001);
accountIDToUpdate_ = null;
if (accountIDToUpdateBuilder_ != null) {
accountIDToUpdateBuilder_.dispose();
accountIDToUpdateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The account ID which is being updated in this transaction
*
*
* .proto.AccountID accountIDToUpdate = 2;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAccountIDToUpdateBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAccountIDToUpdateFieldBuilder().getBuilder();
}
/**
*
**
* The account ID which is being updated in this transaction
*
*
* .proto.AccountID accountIDToUpdate = 2;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIDToUpdateOrBuilder() {
if (accountIDToUpdateBuilder_ != null) {
return accountIDToUpdateBuilder_.getMessageOrBuilder();
} else {
return accountIDToUpdate_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountIDToUpdate_;
}
}
/**
*
**
* The account ID which is being updated in this transaction
*
*
* .proto.AccountID accountIDToUpdate = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>
getAccountIDToUpdateFieldBuilder() {
if (accountIDToUpdateBuilder_ == null) {
accountIDToUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getAccountIDToUpdate(),
getParentForChildren(),
isClean());
accountIDToUpdate_ = null;
}
return accountIDToUpdateBuilder_;
}
private com.hedera.hashgraph.sdk.proto.Key key_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> keyBuilder_;
/**
*
**
* The new key
*
*
* .proto.Key key = 3;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The new key
*
*
* .proto.Key key = 3;
* @return The key.
*/
public com.hedera.hashgraph.sdk.proto.Key getKey() {
if (keyBuilder_ == null) {
return key_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : key_;
} else {
return keyBuilder_.getMessage();
}
}
/**
*
**
* The new key
*
*
* .proto.Key key = 3;
*/
public Builder setKey(com.hedera.hashgraph.sdk.proto.Key value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
} else {
keyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The new key
*
*
* .proto.Key key = 3;
*/
public Builder setKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
if (keyBuilder_ == null) {
key_ = builderForValue.build();
} else {
keyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The new key
*
*
* .proto.Key key = 3;
*/
public Builder mergeKey(com.hedera.hashgraph.sdk.proto.Key value) {
if (keyBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
key_ != null &&
key_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
getKeyBuilder().mergeFrom(value);
} else {
key_ = value;
}
} else {
keyBuilder_.mergeFrom(value);
}
if (key_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* The new key
*
*
* .proto.Key key = 3;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000002);
key_ = null;
if (keyBuilder_ != null) {
keyBuilder_.dispose();
keyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The new key
*
*
* .proto.Key key = 3;
*/
public com.hedera.hashgraph.sdk.proto.Key.Builder getKeyBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getKeyFieldBuilder().getBuilder();
}
/**
*
**
* The new key
*
*
* .proto.Key key = 3;
*/
public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getKeyOrBuilder() {
if (keyBuilder_ != null) {
return keyBuilder_.getMessageOrBuilder();
} else {
return key_ == null ?
com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : key_;
}
}
/**
*
**
* The new key
*
*
* .proto.Key key = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>
getKeyFieldBuilder() {
if (keyBuilder_ == null) {
keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>(
getKey(),
getParentForChildren(),
isClean());
key_ = null;
}
return keyBuilder_;
}
private com.hedera.hashgraph.sdk.proto.AccountID proxyAccountID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> proxyAccountIDBuilder_;
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 4 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.proxyAccountID is deprecated.
* See crypto_update.proto;l=60
* @return Whether the proxyAccountID field is set.
*/
@java.lang.Deprecated public boolean hasProxyAccountID() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 4 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.proxyAccountID is deprecated.
* See crypto_update.proto;l=60
* @return The proxyAccountID.
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountID getProxyAccountID() {
if (proxyAccountIDBuilder_ == null) {
return proxyAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : proxyAccountID_;
} else {
return proxyAccountIDBuilder_.getMessage();
}
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder setProxyAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (proxyAccountIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proxyAccountID_ = value;
} else {
proxyAccountIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder setProxyAccountID(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (proxyAccountIDBuilder_ == null) {
proxyAccountID_ = builderForValue.build();
} else {
proxyAccountIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeProxyAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (proxyAccountIDBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
proxyAccountID_ != null &&
proxyAccountID_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getProxyAccountIDBuilder().mergeFrom(value);
} else {
proxyAccountID_ = value;
}
} else {
proxyAccountIDBuilder_.mergeFrom(value);
}
if (proxyAccountID_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearProxyAccountID() {
bitField0_ = (bitField0_ & ~0x00000004);
proxyAccountID_ = null;
if (proxyAccountIDBuilder_ != null) {
proxyAccountIDBuilder_.dispose();
proxyAccountIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 4 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountID.Builder getProxyAccountIDBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getProxyAccountIDFieldBuilder().getBuilder();
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 4 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getProxyAccountIDOrBuilder() {
if (proxyAccountIDBuilder_ != null) {
return proxyAccountIDBuilder_.getMessageOrBuilder();
} else {
return proxyAccountID_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : proxyAccountID_;
}
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 4 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>
getProxyAccountIDFieldBuilder() {
if (proxyAccountIDBuilder_ == null) {
proxyAccountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getProxyAccountID(),
getParentForChildren(),
isClean());
proxyAccountID_ = null;
}
return proxyAccountIDBuilder_;
}
private int proxyFraction_ ;
/**
*
**
* [Deprecated]. Payments earned from proxy staking are shared between the node and this
* account, with proxyFraction / 10000 going to this account
*
*
* int32 proxyFraction = 5 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.proxyFraction is deprecated.
* See crypto_update.proto;l=66
* @return The proxyFraction.
*/
@java.lang.Override
@java.lang.Deprecated public int getProxyFraction() {
return proxyFraction_;
}
/**
*
**
* [Deprecated]. Payments earned from proxy staking are shared between the node and this
* account, with proxyFraction / 10000 going to this account
*
*
* int32 proxyFraction = 5 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.proxyFraction is deprecated.
* See crypto_update.proto;l=66
* @param value The proxyFraction to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setProxyFraction(int value) {
proxyFraction_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* [Deprecated]. Payments earned from proxy staking are shared between the node and this
* account, with proxyFraction / 10000 going to this account
*
*
* int32 proxyFraction = 5 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.proxyFraction is deprecated.
* See crypto_update.proto;l=66
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearProxyFraction() {
bitField0_ = (bitField0_ & ~0x00000008);
proxyFraction_ = 0;
onChanged();
return this;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* uint64 sendRecordThreshold = 6 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.sendRecordThreshold is deprecated.
* See crypto_update.proto;l=73
* @return Whether the sendRecordThreshold field is set.
*/
@java.lang.Deprecated public boolean hasSendRecordThreshold() {
return sendRecordThresholdFieldCase_ == 6;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* uint64 sendRecordThreshold = 6 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.sendRecordThreshold is deprecated.
* See crypto_update.proto;l=73
* @return The sendRecordThreshold.
*/
@java.lang.Deprecated public long getSendRecordThreshold() {
if (sendRecordThresholdFieldCase_ == 6) {
return (java.lang.Long) sendRecordThresholdField_;
}
return 0L;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* uint64 sendRecordThreshold = 6 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.sendRecordThreshold is deprecated.
* See crypto_update.proto;l=73
* @param value The sendRecordThreshold to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setSendRecordThreshold(long value) {
sendRecordThresholdFieldCase_ = 6;
sendRecordThresholdField_ = value;
onChanged();
return this;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* uint64 sendRecordThreshold = 6 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.sendRecordThreshold is deprecated.
* See crypto_update.proto;l=73
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearSendRecordThreshold() {
if (sendRecordThresholdFieldCase_ == 6) {
sendRecordThresholdFieldCase_ = 0;
sendRecordThresholdField_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> sendRecordThresholdWrapperBuilder_;
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* .google.protobuf.UInt64Value sendRecordThresholdWrapper = 11 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.sendRecordThresholdWrapper is deprecated.
* See crypto_update.proto;l=79
* @return Whether the sendRecordThresholdWrapper field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasSendRecordThresholdWrapper() {
return sendRecordThresholdFieldCase_ == 11;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* .google.protobuf.UInt64Value sendRecordThresholdWrapper = 11 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.sendRecordThresholdWrapper is deprecated.
* See crypto_update.proto;l=79
* @return The sendRecordThresholdWrapper.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.UInt64Value getSendRecordThresholdWrapper() {
if (sendRecordThresholdWrapperBuilder_ == null) {
if (sendRecordThresholdFieldCase_ == 11) {
return (com.google.protobuf.UInt64Value) sendRecordThresholdField_;
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
} else {
if (sendRecordThresholdFieldCase_ == 11) {
return sendRecordThresholdWrapperBuilder_.getMessage();
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
}
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* .google.protobuf.UInt64Value sendRecordThresholdWrapper = 11 [deprecated = true];
*/
@java.lang.Deprecated public Builder setSendRecordThresholdWrapper(com.google.protobuf.UInt64Value value) {
if (sendRecordThresholdWrapperBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sendRecordThresholdField_ = value;
onChanged();
} else {
sendRecordThresholdWrapperBuilder_.setMessage(value);
}
sendRecordThresholdFieldCase_ = 11;
return this;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* .google.protobuf.UInt64Value sendRecordThresholdWrapper = 11 [deprecated = true];
*/
@java.lang.Deprecated public Builder setSendRecordThresholdWrapper(
com.google.protobuf.UInt64Value.Builder builderForValue) {
if (sendRecordThresholdWrapperBuilder_ == null) {
sendRecordThresholdField_ = builderForValue.build();
onChanged();
} else {
sendRecordThresholdWrapperBuilder_.setMessage(builderForValue.build());
}
sendRecordThresholdFieldCase_ = 11;
return this;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* .google.protobuf.UInt64Value sendRecordThresholdWrapper = 11 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeSendRecordThresholdWrapper(com.google.protobuf.UInt64Value value) {
if (sendRecordThresholdWrapperBuilder_ == null) {
if (sendRecordThresholdFieldCase_ == 11 &&
sendRecordThresholdField_ != com.google.protobuf.UInt64Value.getDefaultInstance()) {
sendRecordThresholdField_ = com.google.protobuf.UInt64Value.newBuilder((com.google.protobuf.UInt64Value) sendRecordThresholdField_)
.mergeFrom(value).buildPartial();
} else {
sendRecordThresholdField_ = value;
}
onChanged();
} else {
if (sendRecordThresholdFieldCase_ == 11) {
sendRecordThresholdWrapperBuilder_.mergeFrom(value);
} else {
sendRecordThresholdWrapperBuilder_.setMessage(value);
}
}
sendRecordThresholdFieldCase_ = 11;
return this;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* .google.protobuf.UInt64Value sendRecordThresholdWrapper = 11 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearSendRecordThresholdWrapper() {
if (sendRecordThresholdWrapperBuilder_ == null) {
if (sendRecordThresholdFieldCase_ == 11) {
sendRecordThresholdFieldCase_ = 0;
sendRecordThresholdField_ = null;
onChanged();
}
} else {
if (sendRecordThresholdFieldCase_ == 11) {
sendRecordThresholdFieldCase_ = 0;
sendRecordThresholdField_ = null;
}
sendRecordThresholdWrapperBuilder_.clear();
}
return this;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* .google.protobuf.UInt64Value sendRecordThresholdWrapper = 11 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.UInt64Value.Builder getSendRecordThresholdWrapperBuilder() {
return getSendRecordThresholdWrapperFieldBuilder().getBuilder();
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* .google.protobuf.UInt64Value sendRecordThresholdWrapper = 11 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.UInt64ValueOrBuilder getSendRecordThresholdWrapperOrBuilder() {
if ((sendRecordThresholdFieldCase_ == 11) && (sendRecordThresholdWrapperBuilder_ != null)) {
return sendRecordThresholdWrapperBuilder_.getMessageOrBuilder();
} else {
if (sendRecordThresholdFieldCase_ == 11) {
return (com.google.protobuf.UInt64Value) sendRecordThresholdField_;
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
}
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any send/withdraw transaction
*
*
* .google.protobuf.UInt64Value sendRecordThresholdWrapper = 11 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>
getSendRecordThresholdWrapperFieldBuilder() {
if (sendRecordThresholdWrapperBuilder_ == null) {
if (!(sendRecordThresholdFieldCase_ == 11)) {
sendRecordThresholdField_ = com.google.protobuf.UInt64Value.getDefaultInstance();
}
sendRecordThresholdWrapperBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>(
(com.google.protobuf.UInt64Value) sendRecordThresholdField_,
getParentForChildren(),
isClean());
sendRecordThresholdField_ = null;
}
sendRecordThresholdFieldCase_ = 11;
onChanged();
return sendRecordThresholdWrapperBuilder_;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* uint64 receiveRecordThreshold = 7 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiveRecordThreshold is deprecated.
* See crypto_update.proto;l=88
* @return Whether the receiveRecordThreshold field is set.
*/
@java.lang.Deprecated public boolean hasReceiveRecordThreshold() {
return receiveRecordThresholdFieldCase_ == 7;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* uint64 receiveRecordThreshold = 7 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiveRecordThreshold is deprecated.
* See crypto_update.proto;l=88
* @return The receiveRecordThreshold.
*/
@java.lang.Deprecated public long getReceiveRecordThreshold() {
if (receiveRecordThresholdFieldCase_ == 7) {
return (java.lang.Long) receiveRecordThresholdField_;
}
return 0L;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* uint64 receiveRecordThreshold = 7 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiveRecordThreshold is deprecated.
* See crypto_update.proto;l=88
* @param value The receiveRecordThreshold to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setReceiveRecordThreshold(long value) {
receiveRecordThresholdFieldCase_ = 7;
receiveRecordThresholdField_ = value;
onChanged();
return this;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* uint64 receiveRecordThreshold = 7 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiveRecordThreshold is deprecated.
* See crypto_update.proto;l=88
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearReceiveRecordThreshold() {
if (receiveRecordThresholdFieldCase_ == 7) {
receiveRecordThresholdFieldCase_ = 0;
receiveRecordThresholdField_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> receiveRecordThresholdWrapperBuilder_;
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* .google.protobuf.UInt64Value receiveRecordThresholdWrapper = 12 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiveRecordThresholdWrapper is deprecated.
* See crypto_update.proto;l=94
* @return Whether the receiveRecordThresholdWrapper field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasReceiveRecordThresholdWrapper() {
return receiveRecordThresholdFieldCase_ == 12;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* .google.protobuf.UInt64Value receiveRecordThresholdWrapper = 12 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiveRecordThresholdWrapper is deprecated.
* See crypto_update.proto;l=94
* @return The receiveRecordThresholdWrapper.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.UInt64Value getReceiveRecordThresholdWrapper() {
if (receiveRecordThresholdWrapperBuilder_ == null) {
if (receiveRecordThresholdFieldCase_ == 12) {
return (com.google.protobuf.UInt64Value) receiveRecordThresholdField_;
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
} else {
if (receiveRecordThresholdFieldCase_ == 12) {
return receiveRecordThresholdWrapperBuilder_.getMessage();
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
}
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* .google.protobuf.UInt64Value receiveRecordThresholdWrapper = 12 [deprecated = true];
*/
@java.lang.Deprecated public Builder setReceiveRecordThresholdWrapper(com.google.protobuf.UInt64Value value) {
if (receiveRecordThresholdWrapperBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
receiveRecordThresholdField_ = value;
onChanged();
} else {
receiveRecordThresholdWrapperBuilder_.setMessage(value);
}
receiveRecordThresholdFieldCase_ = 12;
return this;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* .google.protobuf.UInt64Value receiveRecordThresholdWrapper = 12 [deprecated = true];
*/
@java.lang.Deprecated public Builder setReceiveRecordThresholdWrapper(
com.google.protobuf.UInt64Value.Builder builderForValue) {
if (receiveRecordThresholdWrapperBuilder_ == null) {
receiveRecordThresholdField_ = builderForValue.build();
onChanged();
} else {
receiveRecordThresholdWrapperBuilder_.setMessage(builderForValue.build());
}
receiveRecordThresholdFieldCase_ = 12;
return this;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* .google.protobuf.UInt64Value receiveRecordThresholdWrapper = 12 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeReceiveRecordThresholdWrapper(com.google.protobuf.UInt64Value value) {
if (receiveRecordThresholdWrapperBuilder_ == null) {
if (receiveRecordThresholdFieldCase_ == 12 &&
receiveRecordThresholdField_ != com.google.protobuf.UInt64Value.getDefaultInstance()) {
receiveRecordThresholdField_ = com.google.protobuf.UInt64Value.newBuilder((com.google.protobuf.UInt64Value) receiveRecordThresholdField_)
.mergeFrom(value).buildPartial();
} else {
receiveRecordThresholdField_ = value;
}
onChanged();
} else {
if (receiveRecordThresholdFieldCase_ == 12) {
receiveRecordThresholdWrapperBuilder_.mergeFrom(value);
} else {
receiveRecordThresholdWrapperBuilder_.setMessage(value);
}
}
receiveRecordThresholdFieldCase_ = 12;
return this;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* .google.protobuf.UInt64Value receiveRecordThresholdWrapper = 12 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearReceiveRecordThresholdWrapper() {
if (receiveRecordThresholdWrapperBuilder_ == null) {
if (receiveRecordThresholdFieldCase_ == 12) {
receiveRecordThresholdFieldCase_ = 0;
receiveRecordThresholdField_ = null;
onChanged();
}
} else {
if (receiveRecordThresholdFieldCase_ == 12) {
receiveRecordThresholdFieldCase_ = 0;
receiveRecordThresholdField_ = null;
}
receiveRecordThresholdWrapperBuilder_.clear();
}
return this;
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* .google.protobuf.UInt64Value receiveRecordThresholdWrapper = 12 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.UInt64Value.Builder getReceiveRecordThresholdWrapperBuilder() {
return getReceiveRecordThresholdWrapperFieldBuilder().getBuilder();
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* .google.protobuf.UInt64Value receiveRecordThresholdWrapper = 12 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.UInt64ValueOrBuilder getReceiveRecordThresholdWrapperOrBuilder() {
if ((receiveRecordThresholdFieldCase_ == 12) && (receiveRecordThresholdWrapperBuilder_ != null)) {
return receiveRecordThresholdWrapperBuilder_.getMessageOrBuilder();
} else {
if (receiveRecordThresholdFieldCase_ == 12) {
return (com.google.protobuf.UInt64Value) receiveRecordThresholdField_;
}
return com.google.protobuf.UInt64Value.getDefaultInstance();
}
}
/**
*
**
* [Deprecated]. The new threshold amount (in tinybars) for which an account record is
* created for any receive/deposit transaction.
*
*
* .google.protobuf.UInt64Value receiveRecordThresholdWrapper = 12 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>
getReceiveRecordThresholdWrapperFieldBuilder() {
if (receiveRecordThresholdWrapperBuilder_ == null) {
if (!(receiveRecordThresholdFieldCase_ == 12)) {
receiveRecordThresholdField_ = com.google.protobuf.UInt64Value.getDefaultInstance();
}
receiveRecordThresholdWrapperBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>(
(com.google.protobuf.UInt64Value) receiveRecordThresholdField_,
getParentForChildren(),
isClean());
receiveRecordThresholdField_ = null;
}
receiveRecordThresholdFieldCase_ = 12;
onChanged();
return receiveRecordThresholdWrapperBuilder_;
}
private com.hedera.hashgraph.sdk.proto.Duration autoRenewPeriod_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder> autoRenewPeriodBuilder_;
/**
*
**
* The duration in which it will automatically extend the expiration period. If it doesn't have
* enough balance, it extends as long as possible. If it is empty when it expires, then it is
* deleted.
*
*
* .proto.Duration autoRenewPeriod = 8;
* @return Whether the autoRenewPeriod field is set.
*/
public boolean hasAutoRenewPeriod() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
**
* The duration in which it will automatically extend the expiration period. If it doesn't have
* enough balance, it extends as long as possible. If it is empty when it expires, then it is
* deleted.
*
*
* .proto.Duration autoRenewPeriod = 8;
* @return The autoRenewPeriod.
*/
public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() {
if (autoRenewPeriodBuilder_ == null) {
return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
} else {
return autoRenewPeriodBuilder_.getMessage();
}
}
/**
*
**
* The duration in which it will automatically extend the expiration period. If it doesn't have
* enough balance, it extends as long as possible. If it is empty when it expires, then it is
* deleted.
*
*
* .proto.Duration autoRenewPeriod = 8;
*/
public Builder setAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
if (autoRenewPeriodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoRenewPeriod_ = value;
} else {
autoRenewPeriodBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* The duration in which it will automatically extend the expiration period. If it doesn't have
* enough balance, it extends as long as possible. If it is empty when it expires, then it is
* deleted.
*
*
* .proto.Duration autoRenewPeriod = 8;
*/
public Builder setAutoRenewPeriod(
com.hedera.hashgraph.sdk.proto.Duration.Builder builderForValue) {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = builderForValue.build();
} else {
autoRenewPeriodBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* The duration in which it will automatically extend the expiration period. If it doesn't have
* enough balance, it extends as long as possible. If it is empty when it expires, then it is
* deleted.
*
*
* .proto.Duration autoRenewPeriod = 8;
*/
public Builder mergeAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
if (autoRenewPeriodBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
autoRenewPeriod_ != null &&
autoRenewPeriod_ != com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance()) {
getAutoRenewPeriodBuilder().mergeFrom(value);
} else {
autoRenewPeriod_ = value;
}
} else {
autoRenewPeriodBuilder_.mergeFrom(value);
}
if (autoRenewPeriod_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
*
**
* The duration in which it will automatically extend the expiration period. If it doesn't have
* enough balance, it extends as long as possible. If it is empty when it expires, then it is
* deleted.
*
*
* .proto.Duration autoRenewPeriod = 8;
*/
public Builder clearAutoRenewPeriod() {
bitField0_ = (bitField0_ & ~0x00000100);
autoRenewPeriod_ = null;
if (autoRenewPeriodBuilder_ != null) {
autoRenewPeriodBuilder_.dispose();
autoRenewPeriodBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The duration in which it will automatically extend the expiration period. If it doesn't have
* enough balance, it extends as long as possible. If it is empty when it expires, then it is
* deleted.
*
*
* .proto.Duration autoRenewPeriod = 8;
*/
public com.hedera.hashgraph.sdk.proto.Duration.Builder getAutoRenewPeriodBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getAutoRenewPeriodFieldBuilder().getBuilder();
}
/**
*
**
* The duration in which it will automatically extend the expiration period. If it doesn't have
* enough balance, it extends as long as possible. If it is empty when it expires, then it is
* deleted.
*
*
* .proto.Duration autoRenewPeriod = 8;
*/
public com.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder() {
if (autoRenewPeriodBuilder_ != null) {
return autoRenewPeriodBuilder_.getMessageOrBuilder();
} else {
return autoRenewPeriod_ == null ?
com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
}
}
/**
*
**
* The duration in which it will automatically extend the expiration period. If it doesn't have
* enough balance, it extends as long as possible. If it is empty when it expires, then it is
* deleted.
*
*
* .proto.Duration autoRenewPeriod = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder>
getAutoRenewPeriodFieldBuilder() {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder>(
getAutoRenewPeriod(),
getParentForChildren(),
isClean());
autoRenewPeriod_ = null;
}
return autoRenewPeriodBuilder_;
}
private com.hedera.hashgraph.sdk.proto.Timestamp expirationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> expirationTimeBuilder_;
/**
*
**
* The new expiration time to extend to (ignored if equal to or before the current one)
*
*
* .proto.Timestamp expirationTime = 9;
* @return Whether the expirationTime field is set.
*/
public boolean hasExpirationTime() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
**
* The new expiration time to extend to (ignored if equal to or before the current one)
*
*
* .proto.Timestamp expirationTime = 9;
* @return The expirationTime.
*/
public com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() {
if (expirationTimeBuilder_ == null) {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
} else {
return expirationTimeBuilder_.getMessage();
}
}
/**
*
**
* The new expiration time to extend to (ignored if equal to or before the current one)
*
*
* .proto.Timestamp expirationTime = 9;
*/
public Builder setExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expirationTime_ = value;
} else {
expirationTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
**
* The new expiration time to extend to (ignored if equal to or before the current one)
*
*
* .proto.Timestamp expirationTime = 9;
*/
public Builder setExpirationTime(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (expirationTimeBuilder_ == null) {
expirationTime_ = builderForValue.build();
} else {
expirationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
**
* The new expiration time to extend to (ignored if equal to or before the current one)
*
*
* .proto.Timestamp expirationTime = 9;
*/
public Builder mergeExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
expirationTime_ != null &&
expirationTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
getExpirationTimeBuilder().mergeFrom(value);
} else {
expirationTime_ = value;
}
} else {
expirationTimeBuilder_.mergeFrom(value);
}
if (expirationTime_ != null) {
bitField0_ |= 0x00000200;
onChanged();
}
return this;
}
/**
*
**
* The new expiration time to extend to (ignored if equal to or before the current one)
*
*
* .proto.Timestamp expirationTime = 9;
*/
public Builder clearExpirationTime() {
bitField0_ = (bitField0_ & ~0x00000200);
expirationTime_ = null;
if (expirationTimeBuilder_ != null) {
expirationTimeBuilder_.dispose();
expirationTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The new expiration time to extend to (ignored if equal to or before the current one)
*
*
* .proto.Timestamp expirationTime = 9;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getExpirationTimeBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getExpirationTimeFieldBuilder().getBuilder();
}
/**
*
**
* The new expiration time to extend to (ignored if equal to or before the current one)
*
*
* .proto.Timestamp expirationTime = 9;
*/
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() {
if (expirationTimeBuilder_ != null) {
return expirationTimeBuilder_.getMessageOrBuilder();
} else {
return expirationTime_ == null ?
com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
}
}
/**
*
**
* The new expiration time to extend to (ignored if equal to or before the current one)
*
*
* .proto.Timestamp expirationTime = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getExpirationTimeFieldBuilder() {
if (expirationTimeBuilder_ == null) {
expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>(
getExpirationTime(),
getParentForChildren(),
isClean());
expirationTime_ = null;
}
return expirationTimeBuilder_;
}
/**
*
**
* [Deprecated] Do NOT use this field to set a false value because the server cannot
* distinguish from the default value. Use receiverSigRequiredWrapper field for this
* purpose.
*
*
* bool receiverSigRequired = 10 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiverSigRequired is deprecated.
* See crypto_update.proto;l=115
* @return Whether the receiverSigRequired field is set.
*/
@java.lang.Deprecated public boolean hasReceiverSigRequired() {
return receiverSigRequiredFieldCase_ == 10;
}
/**
*
**
* [Deprecated] Do NOT use this field to set a false value because the server cannot
* distinguish from the default value. Use receiverSigRequiredWrapper field for this
* purpose.
*
*
* bool receiverSigRequired = 10 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiverSigRequired is deprecated.
* See crypto_update.proto;l=115
* @return The receiverSigRequired.
*/
@java.lang.Deprecated public boolean getReceiverSigRequired() {
if (receiverSigRequiredFieldCase_ == 10) {
return (java.lang.Boolean) receiverSigRequiredField_;
}
return false;
}
/**
*
**
* [Deprecated] Do NOT use this field to set a false value because the server cannot
* distinguish from the default value. Use receiverSigRequiredWrapper field for this
* purpose.
*
*
* bool receiverSigRequired = 10 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiverSigRequired is deprecated.
* See crypto_update.proto;l=115
* @param value The receiverSigRequired to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setReceiverSigRequired(boolean value) {
receiverSigRequiredFieldCase_ = 10;
receiverSigRequiredField_ = value;
onChanged();
return this;
}
/**
*
**
* [Deprecated] Do NOT use this field to set a false value because the server cannot
* distinguish from the default value. Use receiverSigRequiredWrapper field for this
* purpose.
*
*
* bool receiverSigRequired = 10 [deprecated = true];
* @deprecated proto.CryptoUpdateTransactionBody.receiverSigRequired is deprecated.
* See crypto_update.proto;l=115
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearReceiverSigRequired() {
if (receiverSigRequiredFieldCase_ == 10) {
receiverSigRequiredFieldCase_ = 0;
receiverSigRequiredField_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> receiverSigRequiredWrapperBuilder_;
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* .google.protobuf.BoolValue receiverSigRequiredWrapper = 13;
* @return Whether the receiverSigRequiredWrapper field is set.
*/
@java.lang.Override
public boolean hasReceiverSigRequiredWrapper() {
return receiverSigRequiredFieldCase_ == 13;
}
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* .google.protobuf.BoolValue receiverSigRequiredWrapper = 13;
* @return The receiverSigRequiredWrapper.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getReceiverSigRequiredWrapper() {
if (receiverSigRequiredWrapperBuilder_ == null) {
if (receiverSigRequiredFieldCase_ == 13) {
return (com.google.protobuf.BoolValue) receiverSigRequiredField_;
}
return com.google.protobuf.BoolValue.getDefaultInstance();
} else {
if (receiverSigRequiredFieldCase_ == 13) {
return receiverSigRequiredWrapperBuilder_.getMessage();
}
return com.google.protobuf.BoolValue.getDefaultInstance();
}
}
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* .google.protobuf.BoolValue receiverSigRequiredWrapper = 13;
*/
public Builder setReceiverSigRequiredWrapper(com.google.protobuf.BoolValue value) {
if (receiverSigRequiredWrapperBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
receiverSigRequiredField_ = value;
onChanged();
} else {
receiverSigRequiredWrapperBuilder_.setMessage(value);
}
receiverSigRequiredFieldCase_ = 13;
return this;
}
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* .google.protobuf.BoolValue receiverSigRequiredWrapper = 13;
*/
public Builder setReceiverSigRequiredWrapper(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (receiverSigRequiredWrapperBuilder_ == null) {
receiverSigRequiredField_ = builderForValue.build();
onChanged();
} else {
receiverSigRequiredWrapperBuilder_.setMessage(builderForValue.build());
}
receiverSigRequiredFieldCase_ = 13;
return this;
}
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* .google.protobuf.BoolValue receiverSigRequiredWrapper = 13;
*/
public Builder mergeReceiverSigRequiredWrapper(com.google.protobuf.BoolValue value) {
if (receiverSigRequiredWrapperBuilder_ == null) {
if (receiverSigRequiredFieldCase_ == 13 &&
receiverSigRequiredField_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
receiverSigRequiredField_ = com.google.protobuf.BoolValue.newBuilder((com.google.protobuf.BoolValue) receiverSigRequiredField_)
.mergeFrom(value).buildPartial();
} else {
receiverSigRequiredField_ = value;
}
onChanged();
} else {
if (receiverSigRequiredFieldCase_ == 13) {
receiverSigRequiredWrapperBuilder_.mergeFrom(value);
} else {
receiverSigRequiredWrapperBuilder_.setMessage(value);
}
}
receiverSigRequiredFieldCase_ = 13;
return this;
}
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* .google.protobuf.BoolValue receiverSigRequiredWrapper = 13;
*/
public Builder clearReceiverSigRequiredWrapper() {
if (receiverSigRequiredWrapperBuilder_ == null) {
if (receiverSigRequiredFieldCase_ == 13) {
receiverSigRequiredFieldCase_ = 0;
receiverSigRequiredField_ = null;
onChanged();
}
} else {
if (receiverSigRequiredFieldCase_ == 13) {
receiverSigRequiredFieldCase_ = 0;
receiverSigRequiredField_ = null;
}
receiverSigRequiredWrapperBuilder_.clear();
}
return this;
}
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* .google.protobuf.BoolValue receiverSigRequiredWrapper = 13;
*/
public com.google.protobuf.BoolValue.Builder getReceiverSigRequiredWrapperBuilder() {
return getReceiverSigRequiredWrapperFieldBuilder().getBuilder();
}
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* .google.protobuf.BoolValue receiverSigRequiredWrapper = 13;
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getReceiverSigRequiredWrapperOrBuilder() {
if ((receiverSigRequiredFieldCase_ == 13) && (receiverSigRequiredWrapperBuilder_ != null)) {
return receiverSigRequiredWrapperBuilder_.getMessageOrBuilder();
} else {
if (receiverSigRequiredFieldCase_ == 13) {
return (com.google.protobuf.BoolValue) receiverSigRequiredField_;
}
return com.google.protobuf.BoolValue.getDefaultInstance();
}
}
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* .google.protobuf.BoolValue receiverSigRequiredWrapper = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getReceiverSigRequiredWrapperFieldBuilder() {
if (receiverSigRequiredWrapperBuilder_ == null) {
if (!(receiverSigRequiredFieldCase_ == 13)) {
receiverSigRequiredField_ = com.google.protobuf.BoolValue.getDefaultInstance();
}
receiverSigRequiredWrapperBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
(com.google.protobuf.BoolValue) receiverSigRequiredField_,
getParentForChildren(),
isClean());
receiverSigRequiredField_ = null;
}
receiverSigRequiredFieldCase_ = 13;
onChanged();
return receiverSigRequiredWrapperBuilder_;
}
private com.google.protobuf.StringValue memo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> memoBuilder_;
/**
*
**
* If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 14;
* @return Whether the memo field is set.
*/
public boolean hasMemo() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
**
* If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 14;
* @return The memo.
*/
public com.google.protobuf.StringValue getMemo() {
if (memoBuilder_ == null) {
return memo_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : memo_;
} else {
return memoBuilder_.getMessage();
}
}
/**
*
**
* If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 14;
*/
public Builder setMemo(com.google.protobuf.StringValue value) {
if (memoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
memo_ = value;
} else {
memoBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
**
* If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 14;
*/
public Builder setMemo(
com.google.protobuf.StringValue.Builder builderForValue) {
if (memoBuilder_ == null) {
memo_ = builderForValue.build();
} else {
memoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
**
* If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 14;
*/
public Builder mergeMemo(com.google.protobuf.StringValue value) {
if (memoBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0) &&
memo_ != null &&
memo_ != com.google.protobuf.StringValue.getDefaultInstance()) {
getMemoBuilder().mergeFrom(value);
} else {
memo_ = value;
}
} else {
memoBuilder_.mergeFrom(value);
}
if (memo_ != null) {
bitField0_ |= 0x00001000;
onChanged();
}
return this;
}
/**
*
**
* If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 14;
*/
public Builder clearMemo() {
bitField0_ = (bitField0_ & ~0x00001000);
memo_ = null;
if (memoBuilder_ != null) {
memoBuilder_.dispose();
memoBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 14;
*/
public com.google.protobuf.StringValue.Builder getMemoBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getMemoFieldBuilder().getBuilder();
}
/**
*
**
* If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 14;
*/
public com.google.protobuf.StringValueOrBuilder getMemoOrBuilder() {
if (memoBuilder_ != null) {
return memoBuilder_.getMessageOrBuilder();
} else {
return memo_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : memo_;
}
}
/**
*
**
* If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getMemoFieldBuilder() {
if (memoBuilder_ == null) {
memoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getMemo(),
getParentForChildren(),
isClean());
memo_ = null;
}
return memoBuilder_;
}
private com.google.protobuf.Int32Value maxAutomaticTokenAssociations_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> maxAutomaticTokenAssociationsBuilder_;
/**
*
**
* If set, modify the maximum number of tokens that can be auto-associated with the
* account.<br/>
* If this is set and less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.
*
*
* .google.protobuf.Int32Value max_automatic_token_associations = 15;
* @return Whether the maxAutomaticTokenAssociations field is set.
*/
public boolean hasMaxAutomaticTokenAssociations() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
**
* If set, modify the maximum number of tokens that can be auto-associated with the
* account.<br/>
* If this is set and less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.
*
*
* .google.protobuf.Int32Value max_automatic_token_associations = 15;
* @return The maxAutomaticTokenAssociations.
*/
public com.google.protobuf.Int32Value getMaxAutomaticTokenAssociations() {
if (maxAutomaticTokenAssociationsBuilder_ == null) {
return maxAutomaticTokenAssociations_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : maxAutomaticTokenAssociations_;
} else {
return maxAutomaticTokenAssociationsBuilder_.getMessage();
}
}
/**
*
**
* If set, modify the maximum number of tokens that can be auto-associated with the
* account.<br/>
* If this is set and less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.
*
*
* .google.protobuf.Int32Value max_automatic_token_associations = 15;
*/
public Builder setMaxAutomaticTokenAssociations(com.google.protobuf.Int32Value value) {
if (maxAutomaticTokenAssociationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxAutomaticTokenAssociations_ = value;
} else {
maxAutomaticTokenAssociationsBuilder_.setMessage(value);
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* If set, modify the maximum number of tokens that can be auto-associated with the
* account.<br/>
* If this is set and less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.
*
*
* .google.protobuf.Int32Value max_automatic_token_associations = 15;
*/
public Builder setMaxAutomaticTokenAssociations(
com.google.protobuf.Int32Value.Builder builderForValue) {
if (maxAutomaticTokenAssociationsBuilder_ == null) {
maxAutomaticTokenAssociations_ = builderForValue.build();
} else {
maxAutomaticTokenAssociationsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* If set, modify the maximum number of tokens that can be auto-associated with the
* account.<br/>
* If this is set and less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.
*
*
* .google.protobuf.Int32Value max_automatic_token_associations = 15;
*/
public Builder mergeMaxAutomaticTokenAssociations(com.google.protobuf.Int32Value value) {
if (maxAutomaticTokenAssociationsBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0) &&
maxAutomaticTokenAssociations_ != null &&
maxAutomaticTokenAssociations_ != com.google.protobuf.Int32Value.getDefaultInstance()) {
getMaxAutomaticTokenAssociationsBuilder().mergeFrom(value);
} else {
maxAutomaticTokenAssociations_ = value;
}
} else {
maxAutomaticTokenAssociationsBuilder_.mergeFrom(value);
}
if (maxAutomaticTokenAssociations_ != null) {
bitField0_ |= 0x00002000;
onChanged();
}
return this;
}
/**
*
**
* If set, modify the maximum number of tokens that can be auto-associated with the
* account.<br/>
* If this is set and less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.
*
*
* .google.protobuf.Int32Value max_automatic_token_associations = 15;
*/
public Builder clearMaxAutomaticTokenAssociations() {
bitField0_ = (bitField0_ & ~0x00002000);
maxAutomaticTokenAssociations_ = null;
if (maxAutomaticTokenAssociationsBuilder_ != null) {
maxAutomaticTokenAssociationsBuilder_.dispose();
maxAutomaticTokenAssociationsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* If set, modify the maximum number of tokens that can be auto-associated with the
* account.<br/>
* If this is set and less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.
*
*
* .google.protobuf.Int32Value max_automatic_token_associations = 15;
*/
public com.google.protobuf.Int32Value.Builder getMaxAutomaticTokenAssociationsBuilder() {
bitField0_ |= 0x00002000;
onChanged();
return getMaxAutomaticTokenAssociationsFieldBuilder().getBuilder();
}
/**
*
**
* If set, modify the maximum number of tokens that can be auto-associated with the
* account.<br/>
* If this is set and less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.
*
*
* .google.protobuf.Int32Value max_automatic_token_associations = 15;
*/
public com.google.protobuf.Int32ValueOrBuilder getMaxAutomaticTokenAssociationsOrBuilder() {
if (maxAutomaticTokenAssociationsBuilder_ != null) {
return maxAutomaticTokenAssociationsBuilder_.getMessageOrBuilder();
} else {
return maxAutomaticTokenAssociations_ == null ?
com.google.protobuf.Int32Value.getDefaultInstance() : maxAutomaticTokenAssociations_;
}
}
/**
*
**
* If set, modify the maximum number of tokens that can be auto-associated with the
* account.<br/>
* If this is set and less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.
*
*
* .google.protobuf.Int32Value max_automatic_token_associations = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>
getMaxAutomaticTokenAssociationsFieldBuilder() {
if (maxAutomaticTokenAssociationsBuilder_ == null) {
maxAutomaticTokenAssociationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>(
getMaxAutomaticTokenAssociations(),
getParentForChildren(),
isClean());
maxAutomaticTokenAssociations_ = null;
}
return maxAutomaticTokenAssociationsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> stakedAccountIdBuilder_;
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 16;
* @return Whether the stakedAccountId field is set.
*/
@java.lang.Override
public boolean hasStakedAccountId() {
return stakedIdCase_ == 16;
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 16;
* @return The stakedAccountId.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getStakedAccountId() {
if (stakedAccountIdBuilder_ == null) {
if (stakedIdCase_ == 16) {
return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_;
}
return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance();
} else {
if (stakedIdCase_ == 16) {
return stakedAccountIdBuilder_.getMessage();
}
return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance();
}
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 16;
*/
public Builder setStakedAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (stakedAccountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stakedId_ = value;
onChanged();
} else {
stakedAccountIdBuilder_.setMessage(value);
}
stakedIdCase_ = 16;
return this;
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 16;
*/
public Builder setStakedAccountId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (stakedAccountIdBuilder_ == null) {
stakedId_ = builderForValue.build();
onChanged();
} else {
stakedAccountIdBuilder_.setMessage(builderForValue.build());
}
stakedIdCase_ = 16;
return this;
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 16;
*/
public Builder mergeStakedAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (stakedAccountIdBuilder_ == null) {
if (stakedIdCase_ == 16 &&
stakedId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
stakedId_ = com.hedera.hashgraph.sdk.proto.AccountID.newBuilder((com.hedera.hashgraph.sdk.proto.AccountID) stakedId_)
.mergeFrom(value).buildPartial();
} else {
stakedId_ = value;
}
onChanged();
} else {
if (stakedIdCase_ == 16) {
stakedAccountIdBuilder_.mergeFrom(value);
} else {
stakedAccountIdBuilder_.setMessage(value);
}
}
stakedIdCase_ = 16;
return this;
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 16;
*/
public Builder clearStakedAccountId() {
if (stakedAccountIdBuilder_ == null) {
if (stakedIdCase_ == 16) {
stakedIdCase_ = 0;
stakedId_ = null;
onChanged();
}
} else {
if (stakedIdCase_ == 16) {
stakedIdCase_ = 0;
stakedId_ = null;
}
stakedAccountIdBuilder_.clear();
}
return this;
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 16;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getStakedAccountIdBuilder() {
return getStakedAccountIdFieldBuilder().getBuilder();
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 16;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getStakedAccountIdOrBuilder() {
if ((stakedIdCase_ == 16) && (stakedAccountIdBuilder_ != null)) {
return stakedAccountIdBuilder_.getMessageOrBuilder();
} else {
if (stakedIdCase_ == 16) {
return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_;
}
return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance();
}
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>
getStakedAccountIdFieldBuilder() {
if (stakedAccountIdBuilder_ == null) {
if (!(stakedIdCase_ == 16)) {
stakedId_ = com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance();
}
stakedAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
(com.hedera.hashgraph.sdk.proto.AccountID) stakedId_,
getParentForChildren(),
isClean());
stakedId_ = null;
}
stakedIdCase_ = 16;
onChanged();
return stakedAccountIdBuilder_;
}
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 17;
* @return Whether the stakedNodeId field is set.
*/
public boolean hasStakedNodeId() {
return stakedIdCase_ == 17;
}
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 17;
* @return The stakedNodeId.
*/
public long getStakedNodeId() {
if (stakedIdCase_ == 17) {
return (java.lang.Long) stakedId_;
}
return 0L;
}
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 17;
* @param value The stakedNodeId to set.
* @return This builder for chaining.
*/
public Builder setStakedNodeId(long value) {
stakedIdCase_ = 17;
stakedId_ = value;
onChanged();
return this;
}
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 17;
* @return This builder for chaining.
*/
public Builder clearStakedNodeId() {
if (stakedIdCase_ == 17) {
stakedIdCase_ = 0;
stakedId_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.BoolValue declineReward_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> declineRewardBuilder_;
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* .google.protobuf.BoolValue decline_reward = 18;
* @return Whether the declineReward field is set.
*/
public boolean hasDeclineReward() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* .google.protobuf.BoolValue decline_reward = 18;
* @return The declineReward.
*/
public com.google.protobuf.BoolValue getDeclineReward() {
if (declineRewardBuilder_ == null) {
return declineReward_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : declineReward_;
} else {
return declineRewardBuilder_.getMessage();
}
}
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* .google.protobuf.BoolValue decline_reward = 18;
*/
public Builder setDeclineReward(com.google.protobuf.BoolValue value) {
if (declineRewardBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
declineReward_ = value;
} else {
declineRewardBuilder_.setMessage(value);
}
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* .google.protobuf.BoolValue decline_reward = 18;
*/
public Builder setDeclineReward(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (declineRewardBuilder_ == null) {
declineReward_ = builderForValue.build();
} else {
declineRewardBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* .google.protobuf.BoolValue decline_reward = 18;
*/
public Builder mergeDeclineReward(com.google.protobuf.BoolValue value) {
if (declineRewardBuilder_ == null) {
if (((bitField0_ & 0x00010000) != 0) &&
declineReward_ != null &&
declineReward_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
getDeclineRewardBuilder().mergeFrom(value);
} else {
declineReward_ = value;
}
} else {
declineRewardBuilder_.mergeFrom(value);
}
if (declineReward_ != null) {
bitField0_ |= 0x00010000;
onChanged();
}
return this;
}
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* .google.protobuf.BoolValue decline_reward = 18;
*/
public Builder clearDeclineReward() {
bitField0_ = (bitField0_ & ~0x00010000);
declineReward_ = null;
if (declineRewardBuilder_ != null) {
declineRewardBuilder_.dispose();
declineRewardBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* .google.protobuf.BoolValue decline_reward = 18;
*/
public com.google.protobuf.BoolValue.Builder getDeclineRewardBuilder() {
bitField0_ |= 0x00010000;
onChanged();
return getDeclineRewardFieldBuilder().getBuilder();
}
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* .google.protobuf.BoolValue decline_reward = 18;
*/
public com.google.protobuf.BoolValueOrBuilder getDeclineRewardOrBuilder() {
if (declineRewardBuilder_ != null) {
return declineRewardBuilder_.getMessageOrBuilder();
} else {
return declineReward_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : declineReward_;
}
}
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* .google.protobuf.BoolValue decline_reward = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getDeclineRewardFieldBuilder() {
if (declineRewardBuilder_ == null) {
declineRewardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getDeclineReward(),
getParentForChildren(),
isClean());
declineReward_ = null;
}
return declineRewardBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto.CryptoUpdateTransactionBody)
}
// @@protoc_insertion_point(class_scope:proto.CryptoUpdateTransactionBody)
private static final com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody();
}
public static com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CryptoUpdateTransactionBody parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}