com.hedera.hashgraph.sdk.proto.TransactionReceipt 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
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: transaction_receipt.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* The summary of a transaction's result so far. If the transaction has not reached consensus, this
* result will be necessarily incomplete.
*
*
* Protobuf type {@code proto.TransactionReceipt}
*/
public final class TransactionReceipt extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.TransactionReceipt)
TransactionReceiptOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionReceipt.newBuilder() to construct.
private TransactionReceipt(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionReceipt() {
status_ = 0;
topicRunningHash_ = com.google.protobuf.ByteString.EMPTY;
serialNumbers_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionReceipt();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.TransactionReceiptOuterClass.internal_static_proto_TransactionReceipt_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.TransactionReceiptOuterClass.internal_static_proto_TransactionReceipt_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TransactionReceipt.class, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder.class);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private int status_ = 0;
/**
*
**
* The consensus status of the transaction; is UNKNOWN if consensus has not been reached, or if
* the associated transaction did not have a valid payer signature
*
*
* .proto.ResponseCodeEnum status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
**
* The consensus status of the transaction; is UNKNOWN if consensus has not been reached, or if
* the associated transaction did not have a valid payer signature
*
*
* .proto.ResponseCodeEnum status = 1;
* @return The status.
*/
@java.lang.Override public com.hedera.hashgraph.sdk.proto.ResponseCodeEnum getStatus() {
com.hedera.hashgraph.sdk.proto.ResponseCodeEnum result = com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.forNumber(status_);
return result == null ? com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.UNRECOGNIZED : result;
}
public static final int ACCOUNTID_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.AccountID accountID_;
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
* @return Whether the accountID field is set.
*/
@java.lang.Override
public boolean hasAccountID() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
* @return The accountID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAccountID() {
return accountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_;
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIDOrBuilder() {
return accountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_;
}
public static final int FILEID_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.FileID fileID_;
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
* @return Whether the fileID field is set.
*/
@java.lang.Override
public boolean hasFileID() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
* @return The fileID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileID getFileID() {
return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() {
return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
}
public static final int CONTRACTID_FIELD_NUMBER = 4;
private com.hedera.hashgraph.sdk.proto.ContractID contractID_;
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
* @return Whether the contractID field is set.
*/
@java.lang.Override
public boolean hasContractID() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
* @return The contractID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractID getContractID() {
return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_;
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() {
return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_;
}
public static final int EXCHANGERATE_FIELD_NUMBER = 5;
private com.hedera.hashgraph.sdk.proto.ExchangeRateSet exchangeRate_;
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
* @return Whether the exchangeRate field is set.
*/
@java.lang.Override
public boolean hasExchangeRate() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
* @return The exchangeRate.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ExchangeRateSet getExchangeRate() {
return exchangeRate_ == null ? com.hedera.hashgraph.sdk.proto.ExchangeRateSet.getDefaultInstance() : exchangeRate_;
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ExchangeRateSetOrBuilder getExchangeRateOrBuilder() {
return exchangeRate_ == null ? com.hedera.hashgraph.sdk.proto.ExchangeRateSet.getDefaultInstance() : exchangeRate_;
}
public static final int TOPICID_FIELD_NUMBER = 6;
private com.hedera.hashgraph.sdk.proto.TopicID topicID_;
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
* @return Whether the topicID field is set.
*/
@java.lang.Override
public boolean hasTopicID() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
* @return The topicID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TopicID getTopicID() {
return topicID_ == null ? com.hedera.hashgraph.sdk.proto.TopicID.getDefaultInstance() : topicID_;
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TopicIDOrBuilder getTopicIDOrBuilder() {
return topicID_ == null ? com.hedera.hashgraph.sdk.proto.TopicID.getDefaultInstance() : topicID_;
}
public static final int TOPICSEQUENCENUMBER_FIELD_NUMBER = 7;
private long topicSequenceNumber_ = 0L;
/**
*
**
* In the receipt of a ConsensusSubmitMessage, the new sequence number of the topic that
* received the message
*
*
* uint64 topicSequenceNumber = 7;
* @return The topicSequenceNumber.
*/
@java.lang.Override
public long getTopicSequenceNumber() {
return topicSequenceNumber_;
}
public static final int TOPICRUNNINGHASH_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString topicRunningHash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* In the receipt of a `ConsensusSubmitMessage`, the new running hash of the topic that
* received the message.<br/>
* This 48-byte field is the output of a SHA-384 digest with input data determined by the
* value of the `topicRunningHashVersion` field.<br/>
* All new transactions SHALL use `topicRunningHashVersion` `3`.<br/>
* The bytes of each uint64 or uint32 encoded for the hash input MUST be in Big-Endian format.
* <p>
* <hr/>
* If the `topicRunningHashVersion` is '0' or '1', then the input data to the SHA-384 digest are,
* in order:
* <ol>
* <li>The previous running hash of the topic (48 bytes)</li>
* <li>The topic's shard (8 bytes)</li>
* <li>The topic's realm (8 bytes)</li>
* <li>The topic's number (8 bytes)</li>
* <li>The number of seconds since the epoch when the `ConsensusSubmitMessage` reached
* consensus (8 bytes)</li>
* <li>The number of nanoseconds within the second when the `ConsensusSubmitMessage` reached
* consensus (4 bytes)</li>
* <li>The `topicSequenceNumber` (8 bytes)</li>
* <li>The message bytes from the `ConsensusSubmitMessage` (variable).</li>
* </ol>
* <hr/>
* If the `topicRunningHashVersion` is '2', then the input data to the SHA-384 digest are, in
* order:
* <ol>
* <li>The previous running hash of the topic (48 bytes)</li>
* <li>The `topicRunningHashVersion` (8 bytes)</li>
* <li>The topic's shard (8 bytes)</li>
* <li>The topic's realm (8 bytes)</li>
* <li>The topic's number (8 bytes)</li>
* <li>The number of seconds since the epoch when the `ConsensusSubmitMessage` reached
* consensus (8 bytes)</li>
* <li>The number of nanoseconds within the second when the `ConsensusSubmitMessage` reached
* consensus (4 bytes)</li>
* <li>The `topicSequenceNumber` (8 bytes)</li>
* <li>The output of a SHA-384 digest of the message bytes from the `ConsensusSubmitMessage`
* (48 bytes)</li>
* </ol>
* <hr/>
* If the `topicRunningHashVersion` is '3', then the input data to the SHA-384 digest
* are, in order:
* <ol>
* <li>The previous running hash of the topic (48 bytes)</li>
* <li>The `topicRunningHashVersion` (8 bytes)</li>
* <li>The payer account's shard (8 bytes)</li>
* <li>The payer account's realm (8 bytes)</li>
* <li>The payer account's number (8 bytes)</li>
* <li>The topic's shard (8 bytes)</li>
* <li>The topic's realm (8 bytes)</li>
* <li>The topic's number (8 bytes)</li>
* <li>The number of seconds since the epoch when the `ConsensusSubmitMessage` reached
* consensus (8 bytes)</li>
* <li>The number of nanoseconds within the second when the `ConsensusSubmitMessage` reached
* consensus (4 bytes)</li>
* <li>The `topicSequenceNumber` (8 bytes)</li>
* <li>The output of a SHA-384 digest of the message bytes from the `ConsensusSubmitMessage`
* (48 bytes)</li>
* </ol>
*
*
* bytes topicRunningHash = 8;
* @return The topicRunningHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTopicRunningHash() {
return topicRunningHash_;
}
public static final int TOPICRUNNINGHASHVERSION_FIELD_NUMBER = 9;
private long topicRunningHashVersion_ = 0L;
/**
*
**
* In the receipt of a ConsensusSubmitMessage, the version of the SHA-384 digest used to update
* the running hash.
*
*
* uint64 topicRunningHashVersion = 9;
* @return The topicRunningHashVersion.
*/
@java.lang.Override
public long getTopicRunningHashVersion() {
return topicRunningHashVersion_;
}
public static final int TOKENID_FIELD_NUMBER = 10;
private com.hedera.hashgraph.sdk.proto.TokenID tokenID_;
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
* @return Whether the tokenID field is set.
*/
@java.lang.Override
public boolean hasTokenID() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
* @return The tokenID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenID getTokenID() {
return tokenID_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenID_;
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getTokenIDOrBuilder() {
return tokenID_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenID_;
}
public static final int NEWTOTALSUPPLY_FIELD_NUMBER = 11;
private long newTotalSupply_ = 0L;
/**
*
**
* In the receipt of TokenMint, TokenWipe, TokenBurn, For fungible tokens - the current total
* supply of this token. For non fungible tokens - the total number of NFTs issued for a given
* tokenID
*
*
* uint64 newTotalSupply = 11;
* @return The newTotalSupply.
*/
@java.lang.Override
public long getNewTotalSupply() {
return newTotalSupply_;
}
public static final int SCHEDULEID_FIELD_NUMBER = 12;
private com.hedera.hashgraph.sdk.proto.ScheduleID scheduleID_;
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
* @return Whether the scheduleID field is set.
*/
@java.lang.Override
public boolean hasScheduleID() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
* @return The scheduleID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ScheduleID getScheduleID() {
return scheduleID_ == null ? com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance() : scheduleID_;
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder getScheduleIDOrBuilder() {
return scheduleID_ == null ? com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance() : scheduleID_;
}
public static final int SCHEDULEDTRANSACTIONID_FIELD_NUMBER = 13;
private com.hedera.hashgraph.sdk.proto.TransactionID scheduledTransactionID_;
/**
*
**
* In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the
* TransactionID that should be used to query for the receipt or record of the relevant
* scheduled transaction
*
*
* .proto.TransactionID scheduledTransactionID = 13;
* @return Whether the scheduledTransactionID field is set.
*/
@java.lang.Override
public boolean hasScheduledTransactionID() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
**
* In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the
* TransactionID that should be used to query for the receipt or record of the relevant
* scheduled transaction
*
*
* .proto.TransactionID scheduledTransactionID = 13;
* @return The scheduledTransactionID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionID getScheduledTransactionID() {
return scheduledTransactionID_ == null ? com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance() : scheduledTransactionID_;
}
/**
*
**
* In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the
* TransactionID that should be used to query for the receipt or record of the relevant
* scheduled transaction
*
*
* .proto.TransactionID scheduledTransactionID = 13;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder getScheduledTransactionIDOrBuilder() {
return scheduledTransactionID_ == null ? com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance() : scheduledTransactionID_;
}
public static final int SERIALNUMBERS_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList serialNumbers_ =
emptyLongList();
/**
*
**
* In the receipt of a TokenMint for tokens of type NON_FUNGIBLE_UNIQUE, the serial numbers of
* the newly created NFTs
*
*
* repeated int64 serialNumbers = 14;
* @return A list containing the serialNumbers.
*/
@java.lang.Override
public java.util.List
getSerialNumbersList() {
return serialNumbers_;
}
/**
*
**
* In the receipt of a TokenMint for tokens of type NON_FUNGIBLE_UNIQUE, the serial numbers of
* the newly created NFTs
*
*
* repeated int64 serialNumbers = 14;
* @return The count of serialNumbers.
*/
public int getSerialNumbersCount() {
return serialNumbers_.size();
}
/**
*
**
* In the receipt of a TokenMint for tokens of type NON_FUNGIBLE_UNIQUE, the serial numbers of
* the newly created NFTs
*
*
* repeated int64 serialNumbers = 14;
* @param index The index of the element to return.
* @return The serialNumbers at the given index.
*/
public long getSerialNumbers(int index) {
return serialNumbers_.getLong(index);
}
private int serialNumbersMemoizedSerializedSize = -1;
public static final int NODE_ID_FIELD_NUMBER = 15;
private long nodeId_ = 0L;
/**
*
**
* In the receipt of a NodeCreate, NodeUpdate, NodeDelete, the id of the newly created node.
* An affected node identifier.<br/>
* This value SHALL be set following a `createNode` transaction.<br/>
* This value SHALL be set following a `updateNode` transaction.<br/>
* This value SHALL be set following a `deleteNode` transaction.<br/>
* This value SHALL NOT be set following any other transaction.
*
*
* uint64 node_id = 15;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
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 {
getSerializedSize();
if (status_ != com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.OK.getNumber()) {
output.writeEnum(1, status_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getAccountID());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getFileID());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getContractID());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(5, getExchangeRate());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(6, getTopicID());
}
if (topicSequenceNumber_ != 0L) {
output.writeUInt64(7, topicSequenceNumber_);
}
if (!topicRunningHash_.isEmpty()) {
output.writeBytes(8, topicRunningHash_);
}
if (topicRunningHashVersion_ != 0L) {
output.writeUInt64(9, topicRunningHashVersion_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(10, getTokenID());
}
if (newTotalSupply_ != 0L) {
output.writeUInt64(11, newTotalSupply_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(12, getScheduleID());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(13, getScheduledTransactionID());
}
if (getSerialNumbersList().size() > 0) {
output.writeUInt32NoTag(114);
output.writeUInt32NoTag(serialNumbersMemoizedSerializedSize);
}
for (int i = 0; i < serialNumbers_.size(); i++) {
output.writeInt64NoTag(serialNumbers_.getLong(i));
}
if (nodeId_ != 0L) {
output.writeUInt64(15, nodeId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.OK.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAccountID());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getFileID());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getContractID());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getExchangeRate());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getTopicID());
}
if (topicSequenceNumber_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, topicSequenceNumber_);
}
if (!topicRunningHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, topicRunningHash_);
}
if (topicRunningHashVersion_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(9, topicRunningHashVersion_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getTokenID());
}
if (newTotalSupply_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(11, newTotalSupply_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getScheduleID());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getScheduledTransactionID());
}
{
int dataSize = 0;
for (int i = 0; i < serialNumbers_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(serialNumbers_.getLong(i));
}
size += dataSize;
if (!getSerialNumbersList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
serialNumbersMemoizedSerializedSize = dataSize;
}
if (nodeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(15, nodeId_);
}
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.TransactionReceipt)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.TransactionReceipt other = (com.hedera.hashgraph.sdk.proto.TransactionReceipt) obj;
if (status_ != other.status_) return false;
if (hasAccountID() != other.hasAccountID()) return false;
if (hasAccountID()) {
if (!getAccountID()
.equals(other.getAccountID())) return false;
}
if (hasFileID() != other.hasFileID()) return false;
if (hasFileID()) {
if (!getFileID()
.equals(other.getFileID())) return false;
}
if (hasContractID() != other.hasContractID()) return false;
if (hasContractID()) {
if (!getContractID()
.equals(other.getContractID())) return false;
}
if (hasExchangeRate() != other.hasExchangeRate()) return false;
if (hasExchangeRate()) {
if (!getExchangeRate()
.equals(other.getExchangeRate())) return false;
}
if (hasTopicID() != other.hasTopicID()) return false;
if (hasTopicID()) {
if (!getTopicID()
.equals(other.getTopicID())) return false;
}
if (getTopicSequenceNumber()
!= other.getTopicSequenceNumber()) return false;
if (!getTopicRunningHash()
.equals(other.getTopicRunningHash())) return false;
if (getTopicRunningHashVersion()
!= other.getTopicRunningHashVersion()) return false;
if (hasTokenID() != other.hasTokenID()) return false;
if (hasTokenID()) {
if (!getTokenID()
.equals(other.getTokenID())) return false;
}
if (getNewTotalSupply()
!= other.getNewTotalSupply()) return false;
if (hasScheduleID() != other.hasScheduleID()) return false;
if (hasScheduleID()) {
if (!getScheduleID()
.equals(other.getScheduleID())) return false;
}
if (hasScheduledTransactionID() != other.hasScheduledTransactionID()) return false;
if (hasScheduledTransactionID()) {
if (!getScheduledTransactionID()
.equals(other.getScheduledTransactionID())) return false;
}
if (!getSerialNumbersList()
.equals(other.getSerialNumbersList())) return false;
if (getNodeId()
!= other.getNodeId()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (hasAccountID()) {
hash = (37 * hash) + ACCOUNTID_FIELD_NUMBER;
hash = (53 * hash) + getAccountID().hashCode();
}
if (hasFileID()) {
hash = (37 * hash) + FILEID_FIELD_NUMBER;
hash = (53 * hash) + getFileID().hashCode();
}
if (hasContractID()) {
hash = (37 * hash) + CONTRACTID_FIELD_NUMBER;
hash = (53 * hash) + getContractID().hashCode();
}
if (hasExchangeRate()) {
hash = (37 * hash) + EXCHANGERATE_FIELD_NUMBER;
hash = (53 * hash) + getExchangeRate().hashCode();
}
if (hasTopicID()) {
hash = (37 * hash) + TOPICID_FIELD_NUMBER;
hash = (53 * hash) + getTopicID().hashCode();
}
hash = (37 * hash) + TOPICSEQUENCENUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTopicSequenceNumber());
hash = (37 * hash) + TOPICRUNNINGHASH_FIELD_NUMBER;
hash = (53 * hash) + getTopicRunningHash().hashCode();
hash = (37 * hash) + TOPICRUNNINGHASHVERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTopicRunningHashVersion());
if (hasTokenID()) {
hash = (37 * hash) + TOKENID_FIELD_NUMBER;
hash = (53 * hash) + getTokenID().hashCode();
}
hash = (37 * hash) + NEWTOTALSUPPLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNewTotalSupply());
if (hasScheduleID()) {
hash = (37 * hash) + SCHEDULEID_FIELD_NUMBER;
hash = (53 * hash) + getScheduleID().hashCode();
}
if (hasScheduledTransactionID()) {
hash = (37 * hash) + SCHEDULEDTRANSACTIONID_FIELD_NUMBER;
hash = (53 * hash) + getScheduledTransactionID().hashCode();
}
if (getSerialNumbersCount() > 0) {
hash = (37 * hash) + SERIALNUMBERS_FIELD_NUMBER;
hash = (53 * hash) + getSerialNumbersList().hashCode();
}
hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNodeId());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.TransactionReceipt parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionReceipt 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.TransactionReceipt parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionReceipt 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.TransactionReceipt parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionReceipt 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.TransactionReceipt parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.TransactionReceipt 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.TransactionReceipt parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.TransactionReceipt 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.TransactionReceipt 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.TransactionReceipt 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.TransactionReceipt 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;
}
/**
*
**
* The summary of a transaction's result so far. If the transaction has not reached consensus, this
* result will be necessarily incomplete.
*
*
* Protobuf type {@code proto.TransactionReceipt}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.TransactionReceipt)
com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.TransactionReceiptOuterClass.internal_static_proto_TransactionReceipt_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.TransactionReceiptOuterClass.internal_static_proto_TransactionReceipt_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TransactionReceipt.class, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.TransactionReceipt.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAccountIDFieldBuilder();
getFileIDFieldBuilder();
getContractIDFieldBuilder();
getExchangeRateFieldBuilder();
getTopicIDFieldBuilder();
getTokenIDFieldBuilder();
getScheduleIDFieldBuilder();
getScheduledTransactionIDFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
accountID_ = null;
if (accountIDBuilder_ != null) {
accountIDBuilder_.dispose();
accountIDBuilder_ = null;
}
fileID_ = null;
if (fileIDBuilder_ != null) {
fileIDBuilder_.dispose();
fileIDBuilder_ = null;
}
contractID_ = null;
if (contractIDBuilder_ != null) {
contractIDBuilder_.dispose();
contractIDBuilder_ = null;
}
exchangeRate_ = null;
if (exchangeRateBuilder_ != null) {
exchangeRateBuilder_.dispose();
exchangeRateBuilder_ = null;
}
topicID_ = null;
if (topicIDBuilder_ != null) {
topicIDBuilder_.dispose();
topicIDBuilder_ = null;
}
topicSequenceNumber_ = 0L;
topicRunningHash_ = com.google.protobuf.ByteString.EMPTY;
topicRunningHashVersion_ = 0L;
tokenID_ = null;
if (tokenIDBuilder_ != null) {
tokenIDBuilder_.dispose();
tokenIDBuilder_ = null;
}
newTotalSupply_ = 0L;
scheduleID_ = null;
if (scheduleIDBuilder_ != null) {
scheduleIDBuilder_.dispose();
scheduleIDBuilder_ = null;
}
scheduledTransactionID_ = null;
if (scheduledTransactionIDBuilder_ != null) {
scheduledTransactionIDBuilder_.dispose();
scheduledTransactionIDBuilder_ = null;
}
serialNumbers_ = emptyLongList();
nodeId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.TransactionReceiptOuterClass.internal_static_proto_TransactionReceipt_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceipt getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceipt build() {
com.hedera.hashgraph.sdk.proto.TransactionReceipt result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceipt buildPartial() {
com.hedera.hashgraph.sdk.proto.TransactionReceipt result = new com.hedera.hashgraph.sdk.proto.TransactionReceipt(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.TransactionReceipt result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.accountID_ = accountIDBuilder_ == null
? accountID_
: accountIDBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.fileID_ = fileIDBuilder_ == null
? fileID_
: fileIDBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.contractID_ = contractIDBuilder_ == null
? contractID_
: contractIDBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.exchangeRate_ = exchangeRateBuilder_ == null
? exchangeRate_
: exchangeRateBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.topicID_ = topicIDBuilder_ == null
? topicID_
: topicIDBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.topicSequenceNumber_ = topicSequenceNumber_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.topicRunningHash_ = topicRunningHash_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.topicRunningHashVersion_ = topicRunningHashVersion_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.tokenID_ = tokenIDBuilder_ == null
? tokenID_
: tokenIDBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.newTotalSupply_ = newTotalSupply_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.scheduleID_ = scheduleIDBuilder_ == null
? scheduleID_
: scheduleIDBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.scheduledTransactionID_ = scheduledTransactionIDBuilder_ == null
? scheduledTransactionID_
: scheduledTransactionIDBuilder_.build();
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
serialNumbers_.makeImmutable();
result.serialNumbers_ = serialNumbers_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.nodeId_ = nodeId_;
}
result.bitField0_ |= to_bitField0_;
}
@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.TransactionReceipt) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.TransactionReceipt)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.TransactionReceipt other) {
if (other == com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.hasAccountID()) {
mergeAccountID(other.getAccountID());
}
if (other.hasFileID()) {
mergeFileID(other.getFileID());
}
if (other.hasContractID()) {
mergeContractID(other.getContractID());
}
if (other.hasExchangeRate()) {
mergeExchangeRate(other.getExchangeRate());
}
if (other.hasTopicID()) {
mergeTopicID(other.getTopicID());
}
if (other.getTopicSequenceNumber() != 0L) {
setTopicSequenceNumber(other.getTopicSequenceNumber());
}
if (other.getTopicRunningHash() != com.google.protobuf.ByteString.EMPTY) {
setTopicRunningHash(other.getTopicRunningHash());
}
if (other.getTopicRunningHashVersion() != 0L) {
setTopicRunningHashVersion(other.getTopicRunningHashVersion());
}
if (other.hasTokenID()) {
mergeTokenID(other.getTokenID());
}
if (other.getNewTotalSupply() != 0L) {
setNewTotalSupply(other.getNewTotalSupply());
}
if (other.hasScheduleID()) {
mergeScheduleID(other.getScheduleID());
}
if (other.hasScheduledTransactionID()) {
mergeScheduledTransactionID(other.getScheduledTransactionID());
}
if (!other.serialNumbers_.isEmpty()) {
if (serialNumbers_.isEmpty()) {
serialNumbers_ = other.serialNumbers_;
serialNumbers_.makeImmutable();
bitField0_ |= 0x00002000;
} else {
ensureSerialNumbersIsMutable();
serialNumbers_.addAll(other.serialNumbers_);
}
onChanged();
}
if (other.getNodeId() != 0L) {
setNodeId(other.getNodeId());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getAccountIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getFileIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getContractIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getExchangeRateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getTopicIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
topicSequenceNumber_ = input.readUInt64();
bitField0_ |= 0x00000040;
break;
} // case 56
case 66: {
topicRunningHash_ = input.readBytes();
bitField0_ |= 0x00000080;
break;
} // case 66
case 72: {
topicRunningHashVersion_ = input.readUInt64();
bitField0_ |= 0x00000100;
break;
} // case 72
case 82: {
input.readMessage(
getTokenIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 82
case 88: {
newTotalSupply_ = input.readUInt64();
bitField0_ |= 0x00000400;
break;
} // case 88
case 98: {
input.readMessage(
getScheduleIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 98
case 106: {
input.readMessage(
getScheduledTransactionIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 106
case 112: {
long v = input.readInt64();
ensureSerialNumbersIsMutable();
serialNumbers_.addLong(v);
break;
} // case 112
case 114: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureSerialNumbersIsMutable();
while (input.getBytesUntilLimit() > 0) {
serialNumbers_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
} // case 114
case 120: {
nodeId_ = input.readUInt64();
bitField0_ |= 0x00004000;
break;
} // case 120
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int status_ = 0;
/**
*
**
* The consensus status of the transaction; is UNKNOWN if consensus has not been reached, or if
* the associated transaction did not have a valid payer signature
*
*
* .proto.ResponseCodeEnum status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
**
* The consensus status of the transaction; is UNKNOWN if consensus has not been reached, or if
* the associated transaction did not have a valid payer signature
*
*
* .proto.ResponseCodeEnum status = 1;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The consensus status of the transaction; is UNKNOWN if consensus has not been reached, or if
* the associated transaction did not have a valid payer signature
*
*
* .proto.ResponseCodeEnum status = 1;
* @return The status.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ResponseCodeEnum getStatus() {
com.hedera.hashgraph.sdk.proto.ResponseCodeEnum result = com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.forNumber(status_);
return result == null ? com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.UNRECOGNIZED : result;
}
/**
*
**
* The consensus status of the transaction; is UNKNOWN if consensus has not been reached, or if
* the associated transaction did not have a valid payer signature
*
*
* .proto.ResponseCodeEnum status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.hedera.hashgraph.sdk.proto.ResponseCodeEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* The consensus status of the transaction; is UNKNOWN if consensus has not been reached, or if
* the associated transaction did not have a valid payer signature
*
*
* .proto.ResponseCodeEnum status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.AccountID accountID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> accountIDBuilder_;
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
* @return Whether the accountID field is set.
*/
public boolean hasAccountID() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
* @return The accountID.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getAccountID() {
if (accountIDBuilder_ == null) {
return accountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_;
} else {
return accountIDBuilder_.getMessage();
}
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
public Builder setAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (accountIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accountID_ = value;
} else {
accountIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
public Builder setAccountID(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (accountIDBuilder_ == null) {
accountID_ = builderForValue.build();
} else {
accountIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
public Builder mergeAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (accountIDBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
accountID_ != null &&
accountID_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getAccountIDBuilder().mergeFrom(value);
} else {
accountID_ = value;
}
} else {
accountIDBuilder_.mergeFrom(value);
}
if (accountID_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
public Builder clearAccountID() {
bitField0_ = (bitField0_ & ~0x00000002);
accountID_ = null;
if (accountIDBuilder_ != null) {
accountIDBuilder_.dispose();
accountIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAccountIDBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAccountIDFieldBuilder().getBuilder();
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIDOrBuilder() {
if (accountIDBuilder_ != null) {
return accountIDBuilder_.getMessageOrBuilder();
} else {
return accountID_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_;
}
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 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>
getAccountIDFieldBuilder() {
if (accountIDBuilder_ == null) {
accountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getAccountID(),
getParentForChildren(),
isClean());
accountID_ = null;
}
return accountIDBuilder_;
}
private com.hedera.hashgraph.sdk.proto.FileID fileID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder> fileIDBuilder_;
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
* @return Whether the fileID field is set.
*/
public boolean hasFileID() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
* @return The fileID.
*/
public com.hedera.hashgraph.sdk.proto.FileID getFileID() {
if (fileIDBuilder_ == null) {
return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
} else {
return fileIDBuilder_.getMessage();
}
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
public Builder setFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
if (fileIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileID_ = value;
} else {
fileIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
public Builder setFileID(
com.hedera.hashgraph.sdk.proto.FileID.Builder builderForValue) {
if (fileIDBuilder_ == null) {
fileID_ = builderForValue.build();
} else {
fileIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
public Builder mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
if (fileIDBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
fileID_ != null &&
fileID_ != com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance()) {
getFileIDBuilder().mergeFrom(value);
} else {
fileID_ = value;
}
} else {
fileIDBuilder_.mergeFrom(value);
}
if (fileID_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
public Builder clearFileID() {
bitField0_ = (bitField0_ & ~0x00000004);
fileID_ = null;
if (fileIDBuilder_ != null) {
fileIDBuilder_.dispose();
fileIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
public com.hedera.hashgraph.sdk.proto.FileID.Builder getFileIDBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getFileIDFieldBuilder().getBuilder();
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() {
if (fileIDBuilder_ != null) {
return fileIDBuilder_.getMessageOrBuilder();
} else {
return fileID_ == null ?
com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
}
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder>
getFileIDFieldBuilder() {
if (fileIDBuilder_ == null) {
fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder>(
getFileID(),
getParentForChildren(),
isClean());
fileID_ = null;
}
return fileIDBuilder_;
}
private com.hedera.hashgraph.sdk.proto.ContractID contractID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder> contractIDBuilder_;
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
* @return Whether the contractID field is set.
*/
public boolean hasContractID() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
* @return The contractID.
*/
public com.hedera.hashgraph.sdk.proto.ContractID getContractID() {
if (contractIDBuilder_ == null) {
return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_;
} else {
return contractIDBuilder_.getMessage();
}
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
public Builder setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
if (contractIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractID_ = value;
} else {
contractIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
public Builder setContractID(
com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) {
if (contractIDBuilder_ == null) {
contractID_ = builderForValue.build();
} else {
contractIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
public Builder mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
if (contractIDBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
contractID_ != null &&
contractID_ != com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance()) {
getContractIDBuilder().mergeFrom(value);
} else {
contractID_ = value;
}
} else {
contractIDBuilder_.mergeFrom(value);
}
if (contractID_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
public Builder clearContractID() {
bitField0_ = (bitField0_ & ~0x00000008);
contractID_ = null;
if (contractIDBuilder_ != null) {
contractIDBuilder_.dispose();
contractIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
public com.hedera.hashgraph.sdk.proto.ContractID.Builder getContractIDBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getContractIDFieldBuilder().getBuilder();
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() {
if (contractIDBuilder_ != null) {
return contractIDBuilder_.getMessageOrBuilder();
} else {
return contractID_ == null ?
com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_;
}
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>
getContractIDFieldBuilder() {
if (contractIDBuilder_ == null) {
contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>(
getContractID(),
getParentForChildren(),
isClean());
contractID_ = null;
}
return contractIDBuilder_;
}
private com.hedera.hashgraph.sdk.proto.ExchangeRateSet exchangeRate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ExchangeRateSet, com.hedera.hashgraph.sdk.proto.ExchangeRateSet.Builder, com.hedera.hashgraph.sdk.proto.ExchangeRateSetOrBuilder> exchangeRateBuilder_;
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
* @return Whether the exchangeRate field is set.
*/
public boolean hasExchangeRate() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
* @return The exchangeRate.
*/
public com.hedera.hashgraph.sdk.proto.ExchangeRateSet getExchangeRate() {
if (exchangeRateBuilder_ == null) {
return exchangeRate_ == null ? com.hedera.hashgraph.sdk.proto.ExchangeRateSet.getDefaultInstance() : exchangeRate_;
} else {
return exchangeRateBuilder_.getMessage();
}
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
public Builder setExchangeRate(com.hedera.hashgraph.sdk.proto.ExchangeRateSet value) {
if (exchangeRateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exchangeRate_ = value;
} else {
exchangeRateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
public Builder setExchangeRate(
com.hedera.hashgraph.sdk.proto.ExchangeRateSet.Builder builderForValue) {
if (exchangeRateBuilder_ == null) {
exchangeRate_ = builderForValue.build();
} else {
exchangeRateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
public Builder mergeExchangeRate(com.hedera.hashgraph.sdk.proto.ExchangeRateSet value) {
if (exchangeRateBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
exchangeRate_ != null &&
exchangeRate_ != com.hedera.hashgraph.sdk.proto.ExchangeRateSet.getDefaultInstance()) {
getExchangeRateBuilder().mergeFrom(value);
} else {
exchangeRate_ = value;
}
} else {
exchangeRateBuilder_.mergeFrom(value);
}
if (exchangeRate_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
public Builder clearExchangeRate() {
bitField0_ = (bitField0_ & ~0x00000010);
exchangeRate_ = null;
if (exchangeRateBuilder_ != null) {
exchangeRateBuilder_.dispose();
exchangeRateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
public com.hedera.hashgraph.sdk.proto.ExchangeRateSet.Builder getExchangeRateBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getExchangeRateFieldBuilder().getBuilder();
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
public com.hedera.hashgraph.sdk.proto.ExchangeRateSetOrBuilder getExchangeRateOrBuilder() {
if (exchangeRateBuilder_ != null) {
return exchangeRateBuilder_.getMessageOrBuilder();
} else {
return exchangeRate_ == null ?
com.hedera.hashgraph.sdk.proto.ExchangeRateSet.getDefaultInstance() : exchangeRate_;
}
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ExchangeRateSet, com.hedera.hashgraph.sdk.proto.ExchangeRateSet.Builder, com.hedera.hashgraph.sdk.proto.ExchangeRateSetOrBuilder>
getExchangeRateFieldBuilder() {
if (exchangeRateBuilder_ == null) {
exchangeRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ExchangeRateSet, com.hedera.hashgraph.sdk.proto.ExchangeRateSet.Builder, com.hedera.hashgraph.sdk.proto.ExchangeRateSetOrBuilder>(
getExchangeRate(),
getParentForChildren(),
isClean());
exchangeRate_ = null;
}
return exchangeRateBuilder_;
}
private com.hedera.hashgraph.sdk.proto.TopicID topicID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TopicID, com.hedera.hashgraph.sdk.proto.TopicID.Builder, com.hedera.hashgraph.sdk.proto.TopicIDOrBuilder> topicIDBuilder_;
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
* @return Whether the topicID field is set.
*/
public boolean hasTopicID() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
* @return The topicID.
*/
public com.hedera.hashgraph.sdk.proto.TopicID getTopicID() {
if (topicIDBuilder_ == null) {
return topicID_ == null ? com.hedera.hashgraph.sdk.proto.TopicID.getDefaultInstance() : topicID_;
} else {
return topicIDBuilder_.getMessage();
}
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
public Builder setTopicID(com.hedera.hashgraph.sdk.proto.TopicID value) {
if (topicIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
topicID_ = value;
} else {
topicIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
public Builder setTopicID(
com.hedera.hashgraph.sdk.proto.TopicID.Builder builderForValue) {
if (topicIDBuilder_ == null) {
topicID_ = builderForValue.build();
} else {
topicIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
public Builder mergeTopicID(com.hedera.hashgraph.sdk.proto.TopicID value) {
if (topicIDBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
topicID_ != null &&
topicID_ != com.hedera.hashgraph.sdk.proto.TopicID.getDefaultInstance()) {
getTopicIDBuilder().mergeFrom(value);
} else {
topicID_ = value;
}
} else {
topicIDBuilder_.mergeFrom(value);
}
if (topicID_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
public Builder clearTopicID() {
bitField0_ = (bitField0_ & ~0x00000020);
topicID_ = null;
if (topicIDBuilder_ != null) {
topicIDBuilder_.dispose();
topicIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
public com.hedera.hashgraph.sdk.proto.TopicID.Builder getTopicIDBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getTopicIDFieldBuilder().getBuilder();
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
public com.hedera.hashgraph.sdk.proto.TopicIDOrBuilder getTopicIDOrBuilder() {
if (topicIDBuilder_ != null) {
return topicIDBuilder_.getMessageOrBuilder();
} else {
return topicID_ == null ?
com.hedera.hashgraph.sdk.proto.TopicID.getDefaultInstance() : topicID_;
}
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TopicID, com.hedera.hashgraph.sdk.proto.TopicID.Builder, com.hedera.hashgraph.sdk.proto.TopicIDOrBuilder>
getTopicIDFieldBuilder() {
if (topicIDBuilder_ == null) {
topicIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TopicID, com.hedera.hashgraph.sdk.proto.TopicID.Builder, com.hedera.hashgraph.sdk.proto.TopicIDOrBuilder>(
getTopicID(),
getParentForChildren(),
isClean());
topicID_ = null;
}
return topicIDBuilder_;
}
private long topicSequenceNumber_ ;
/**
*
**
* In the receipt of a ConsensusSubmitMessage, the new sequence number of the topic that
* received the message
*
*
* uint64 topicSequenceNumber = 7;
* @return The topicSequenceNumber.
*/
@java.lang.Override
public long getTopicSequenceNumber() {
return topicSequenceNumber_;
}
/**
*
**
* In the receipt of a ConsensusSubmitMessage, the new sequence number of the topic that
* received the message
*
*
* uint64 topicSequenceNumber = 7;
* @param value The topicSequenceNumber to set.
* @return This builder for chaining.
*/
public Builder setTopicSequenceNumber(long value) {
topicSequenceNumber_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
**
* In the receipt of a ConsensusSubmitMessage, the new sequence number of the topic that
* received the message
*
*
* uint64 topicSequenceNumber = 7;
* @return This builder for chaining.
*/
public Builder clearTopicSequenceNumber() {
bitField0_ = (bitField0_ & ~0x00000040);
topicSequenceNumber_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString topicRunningHash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* In the receipt of a `ConsensusSubmitMessage`, the new running hash of the topic that
* received the message.<br/>
* This 48-byte field is the output of a SHA-384 digest with input data determined by the
* value of the `topicRunningHashVersion` field.<br/>
* All new transactions SHALL use `topicRunningHashVersion` `3`.<br/>
* The bytes of each uint64 or uint32 encoded for the hash input MUST be in Big-Endian format.
* <p>
* <hr/>
* If the `topicRunningHashVersion` is '0' or '1', then the input data to the SHA-384 digest are,
* in order:
* <ol>
* <li>The previous running hash of the topic (48 bytes)</li>
* <li>The topic's shard (8 bytes)</li>
* <li>The topic's realm (8 bytes)</li>
* <li>The topic's number (8 bytes)</li>
* <li>The number of seconds since the epoch when the `ConsensusSubmitMessage` reached
* consensus (8 bytes)</li>
* <li>The number of nanoseconds within the second when the `ConsensusSubmitMessage` reached
* consensus (4 bytes)</li>
* <li>The `topicSequenceNumber` (8 bytes)</li>
* <li>The message bytes from the `ConsensusSubmitMessage` (variable).</li>
* </ol>
* <hr/>
* If the `topicRunningHashVersion` is '2', then the input data to the SHA-384 digest are, in
* order:
* <ol>
* <li>The previous running hash of the topic (48 bytes)</li>
* <li>The `topicRunningHashVersion` (8 bytes)</li>
* <li>The topic's shard (8 bytes)</li>
* <li>The topic's realm (8 bytes)</li>
* <li>The topic's number (8 bytes)</li>
* <li>The number of seconds since the epoch when the `ConsensusSubmitMessage` reached
* consensus (8 bytes)</li>
* <li>The number of nanoseconds within the second when the `ConsensusSubmitMessage` reached
* consensus (4 bytes)</li>
* <li>The `topicSequenceNumber` (8 bytes)</li>
* <li>The output of a SHA-384 digest of the message bytes from the `ConsensusSubmitMessage`
* (48 bytes)</li>
* </ol>
* <hr/>
* If the `topicRunningHashVersion` is '3', then the input data to the SHA-384 digest
* are, in order:
* <ol>
* <li>The previous running hash of the topic (48 bytes)</li>
* <li>The `topicRunningHashVersion` (8 bytes)</li>
* <li>The payer account's shard (8 bytes)</li>
* <li>The payer account's realm (8 bytes)</li>
* <li>The payer account's number (8 bytes)</li>
* <li>The topic's shard (8 bytes)</li>
* <li>The topic's realm (8 bytes)</li>
* <li>The topic's number (8 bytes)</li>
* <li>The number of seconds since the epoch when the `ConsensusSubmitMessage` reached
* consensus (8 bytes)</li>
* <li>The number of nanoseconds within the second when the `ConsensusSubmitMessage` reached
* consensus (4 bytes)</li>
* <li>The `topicSequenceNumber` (8 bytes)</li>
* <li>The output of a SHA-384 digest of the message bytes from the `ConsensusSubmitMessage`
* (48 bytes)</li>
* </ol>
*
*
* bytes topicRunningHash = 8;
* @return The topicRunningHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTopicRunningHash() {
return topicRunningHash_;
}
/**
*
**
* In the receipt of a `ConsensusSubmitMessage`, the new running hash of the topic that
* received the message.<br/>
* This 48-byte field is the output of a SHA-384 digest with input data determined by the
* value of the `topicRunningHashVersion` field.<br/>
* All new transactions SHALL use `topicRunningHashVersion` `3`.<br/>
* The bytes of each uint64 or uint32 encoded for the hash input MUST be in Big-Endian format.
* <p>
* <hr/>
* If the `topicRunningHashVersion` is '0' or '1', then the input data to the SHA-384 digest are,
* in order:
* <ol>
* <li>The previous running hash of the topic (48 bytes)</li>
* <li>The topic's shard (8 bytes)</li>
* <li>The topic's realm (8 bytes)</li>
* <li>The topic's number (8 bytes)</li>
* <li>The number of seconds since the epoch when the `ConsensusSubmitMessage` reached
* consensus (8 bytes)</li>
* <li>The number of nanoseconds within the second when the `ConsensusSubmitMessage` reached
* consensus (4 bytes)</li>
* <li>The `topicSequenceNumber` (8 bytes)</li>
* <li>The message bytes from the `ConsensusSubmitMessage` (variable).</li>
* </ol>
* <hr/>
* If the `topicRunningHashVersion` is '2', then the input data to the SHA-384 digest are, in
* order:
* <ol>
* <li>The previous running hash of the topic (48 bytes)</li>
* <li>The `topicRunningHashVersion` (8 bytes)</li>
* <li>The topic's shard (8 bytes)</li>
* <li>The topic's realm (8 bytes)</li>
* <li>The topic's number (8 bytes)</li>
* <li>The number of seconds since the epoch when the `ConsensusSubmitMessage` reached
* consensus (8 bytes)</li>
* <li>The number of nanoseconds within the second when the `ConsensusSubmitMessage` reached
* consensus (4 bytes)</li>
* <li>The `topicSequenceNumber` (8 bytes)</li>
* <li>The output of a SHA-384 digest of the message bytes from the `ConsensusSubmitMessage`
* (48 bytes)</li>
* </ol>
* <hr/>
* If the `topicRunningHashVersion` is '3', then the input data to the SHA-384 digest
* are, in order:
* <ol>
* <li>The previous running hash of the topic (48 bytes)</li>
* <li>The `topicRunningHashVersion` (8 bytes)</li>
* <li>The payer account's shard (8 bytes)</li>
* <li>The payer account's realm (8 bytes)</li>
* <li>The payer account's number (8 bytes)</li>
* <li>The topic's shard (8 bytes)</li>
* <li>The topic's realm (8 bytes)</li>
* <li>The topic's number (8 bytes)</li>
* <li>The number of seconds since the epoch when the `ConsensusSubmitMessage` reached
* consensus (8 bytes)</li>
* <li>The number of nanoseconds within the second when the `ConsensusSubmitMessage` reached
* consensus (4 bytes)</li>
* <li>The `topicSequenceNumber` (8 bytes)</li>
* <li>The output of a SHA-384 digest of the message bytes from the `ConsensusSubmitMessage`
* (48 bytes)</li>
* </ol>
*
*
* bytes topicRunningHash = 8;
* @param value The topicRunningHash to set.
* @return This builder for chaining.
*/
public Builder setTopicRunningHash(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
topicRunningHash_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
**
* In the receipt of a `ConsensusSubmitMessage`, the new running hash of the topic that
* received the message.<br/>
* This 48-byte field is the output of a SHA-384 digest with input data determined by the
* value of the `topicRunningHashVersion` field.<br/>
* All new transactions SHALL use `topicRunningHashVersion` `3`.<br/>
* The bytes of each uint64 or uint32 encoded for the hash input MUST be in Big-Endian format.
* <p>
* <hr/>
* If the `topicRunningHashVersion` is '0' or '1', then the input data to the SHA-384 digest are,
* in order:
* <ol>
* <li>The previous running hash of the topic (48 bytes)</li>
* <li>The topic's shard (8 bytes)</li>
* <li>The topic's realm (8 bytes)</li>
* <li>The topic's number (8 bytes)</li>
* <li>The number of seconds since the epoch when the `ConsensusSubmitMessage` reached
* consensus (8 bytes)</li>
* <li>The number of nanoseconds within the second when the `ConsensusSubmitMessage` reached
* consensus (4 bytes)</li>
* <li>The `topicSequenceNumber` (8 bytes)</li>
* <li>The message bytes from the `ConsensusSubmitMessage` (variable).</li>
* </ol>
* <hr/>
* If the `topicRunningHashVersion` is '2', then the input data to the SHA-384 digest are, in
* order:
* <ol>
* <li>The previous running hash of the topic (48 bytes)</li>
* <li>The `topicRunningHashVersion` (8 bytes)</li>
* <li>The topic's shard (8 bytes)</li>
* <li>The topic's realm (8 bytes)</li>
* <li>The topic's number (8 bytes)</li>
* <li>The number of seconds since the epoch when the `ConsensusSubmitMessage` reached
* consensus (8 bytes)</li>
* <li>The number of nanoseconds within the second when the `ConsensusSubmitMessage` reached
* consensus (4 bytes)</li>
* <li>The `topicSequenceNumber` (8 bytes)</li>
* <li>The output of a SHA-384 digest of the message bytes from the `ConsensusSubmitMessage`
* (48 bytes)</li>
* </ol>
* <hr/>
* If the `topicRunningHashVersion` is '3', then the input data to the SHA-384 digest
* are, in order:
* <ol>
* <li>The previous running hash of the topic (48 bytes)</li>
* <li>The `topicRunningHashVersion` (8 bytes)</li>
* <li>The payer account's shard (8 bytes)</li>
* <li>The payer account's realm (8 bytes)</li>
* <li>The payer account's number (8 bytes)</li>
* <li>The topic's shard (8 bytes)</li>
* <li>The topic's realm (8 bytes)</li>
* <li>The topic's number (8 bytes)</li>
* <li>The number of seconds since the epoch when the `ConsensusSubmitMessage` reached
* consensus (8 bytes)</li>
* <li>The number of nanoseconds within the second when the `ConsensusSubmitMessage` reached
* consensus (4 bytes)</li>
* <li>The `topicSequenceNumber` (8 bytes)</li>
* <li>The output of a SHA-384 digest of the message bytes from the `ConsensusSubmitMessage`
* (48 bytes)</li>
* </ol>
*
*
* bytes topicRunningHash = 8;
* @return This builder for chaining.
*/
public Builder clearTopicRunningHash() {
bitField0_ = (bitField0_ & ~0x00000080);
topicRunningHash_ = getDefaultInstance().getTopicRunningHash();
onChanged();
return this;
}
private long topicRunningHashVersion_ ;
/**
*
**
* In the receipt of a ConsensusSubmitMessage, the version of the SHA-384 digest used to update
* the running hash.
*
*
* uint64 topicRunningHashVersion = 9;
* @return The topicRunningHashVersion.
*/
@java.lang.Override
public long getTopicRunningHashVersion() {
return topicRunningHashVersion_;
}
/**
*
**
* In the receipt of a ConsensusSubmitMessage, the version of the SHA-384 digest used to update
* the running hash.
*
*
* uint64 topicRunningHashVersion = 9;
* @param value The topicRunningHashVersion to set.
* @return This builder for chaining.
*/
public Builder setTopicRunningHashVersion(long value) {
topicRunningHashVersion_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* In the receipt of a ConsensusSubmitMessage, the version of the SHA-384 digest used to update
* the running hash.
*
*
* uint64 topicRunningHashVersion = 9;
* @return This builder for chaining.
*/
public Builder clearTopicRunningHashVersion() {
bitField0_ = (bitField0_ & ~0x00000100);
topicRunningHashVersion_ = 0L;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.TokenID tokenID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> tokenIDBuilder_;
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
* @return Whether the tokenID field is set.
*/
public boolean hasTokenID() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
* @return The tokenID.
*/
public com.hedera.hashgraph.sdk.proto.TokenID getTokenID() {
if (tokenIDBuilder_ == null) {
return tokenID_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenID_;
} else {
return tokenIDBuilder_.getMessage();
}
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
*/
public Builder setTokenID(com.hedera.hashgraph.sdk.proto.TokenID value) {
if (tokenIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tokenID_ = value;
} else {
tokenIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
*/
public Builder setTokenID(
com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) {
if (tokenIDBuilder_ == null) {
tokenID_ = builderForValue.build();
} else {
tokenIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
*/
public Builder mergeTokenID(com.hedera.hashgraph.sdk.proto.TokenID value) {
if (tokenIDBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
tokenID_ != null &&
tokenID_ != com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance()) {
getTokenIDBuilder().mergeFrom(value);
} else {
tokenID_ = value;
}
} else {
tokenIDBuilder_.mergeFrom(value);
}
if (tokenID_ != null) {
bitField0_ |= 0x00000200;
onChanged();
}
return this;
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
*/
public Builder clearTokenID() {
bitField0_ = (bitField0_ & ~0x00000200);
tokenID_ = null;
if (tokenIDBuilder_ != null) {
tokenIDBuilder_.dispose();
tokenIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
*/
public com.hedera.hashgraph.sdk.proto.TokenID.Builder getTokenIDBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getTokenIDFieldBuilder().getBuilder();
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
*/
public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getTokenIDOrBuilder() {
if (tokenIDBuilder_ != null) {
return tokenIDBuilder_.getMessageOrBuilder();
} else {
return tokenID_ == null ?
com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenID_;
}
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder>
getTokenIDFieldBuilder() {
if (tokenIDBuilder_ == null) {
tokenIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder>(
getTokenID(),
getParentForChildren(),
isClean());
tokenID_ = null;
}
return tokenIDBuilder_;
}
private long newTotalSupply_ ;
/**
*
**
* In the receipt of TokenMint, TokenWipe, TokenBurn, For fungible tokens - the current total
* supply of this token. For non fungible tokens - the total number of NFTs issued for a given
* tokenID
*
*
* uint64 newTotalSupply = 11;
* @return The newTotalSupply.
*/
@java.lang.Override
public long getNewTotalSupply() {
return newTotalSupply_;
}
/**
*
**
* In the receipt of TokenMint, TokenWipe, TokenBurn, For fungible tokens - the current total
* supply of this token. For non fungible tokens - the total number of NFTs issued for a given
* tokenID
*
*
* uint64 newTotalSupply = 11;
* @param value The newTotalSupply to set.
* @return This builder for chaining.
*/
public Builder setNewTotalSupply(long value) {
newTotalSupply_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
**
* In the receipt of TokenMint, TokenWipe, TokenBurn, For fungible tokens - the current total
* supply of this token. For non fungible tokens - the total number of NFTs issued for a given
* tokenID
*
*
* uint64 newTotalSupply = 11;
* @return This builder for chaining.
*/
public Builder clearNewTotalSupply() {
bitField0_ = (bitField0_ & ~0x00000400);
newTotalSupply_ = 0L;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.ScheduleID scheduleID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ScheduleID, com.hedera.hashgraph.sdk.proto.ScheduleID.Builder, com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder> scheduleIDBuilder_;
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
* @return Whether the scheduleID field is set.
*/
public boolean hasScheduleID() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
* @return The scheduleID.
*/
public com.hedera.hashgraph.sdk.proto.ScheduleID getScheduleID() {
if (scheduleIDBuilder_ == null) {
return scheduleID_ == null ? com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance() : scheduleID_;
} else {
return scheduleIDBuilder_.getMessage();
}
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
*/
public Builder setScheduleID(com.hedera.hashgraph.sdk.proto.ScheduleID value) {
if (scheduleIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduleID_ = value;
} else {
scheduleIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
*/
public Builder setScheduleID(
com.hedera.hashgraph.sdk.proto.ScheduleID.Builder builderForValue) {
if (scheduleIDBuilder_ == null) {
scheduleID_ = builderForValue.build();
} else {
scheduleIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
*/
public Builder mergeScheduleID(com.hedera.hashgraph.sdk.proto.ScheduleID value) {
if (scheduleIDBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
scheduleID_ != null &&
scheduleID_ != com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance()) {
getScheduleIDBuilder().mergeFrom(value);
} else {
scheduleID_ = value;
}
} else {
scheduleIDBuilder_.mergeFrom(value);
}
if (scheduleID_ != null) {
bitField0_ |= 0x00000800;
onChanged();
}
return this;
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
*/
public Builder clearScheduleID() {
bitField0_ = (bitField0_ & ~0x00000800);
scheduleID_ = null;
if (scheduleIDBuilder_ != null) {
scheduleIDBuilder_.dispose();
scheduleIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
*/
public com.hedera.hashgraph.sdk.proto.ScheduleID.Builder getScheduleIDBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getScheduleIDFieldBuilder().getBuilder();
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
*/
public com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder getScheduleIDOrBuilder() {
if (scheduleIDBuilder_ != null) {
return scheduleIDBuilder_.getMessageOrBuilder();
} else {
return scheduleID_ == null ?
com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance() : scheduleID_;
}
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ScheduleID, com.hedera.hashgraph.sdk.proto.ScheduleID.Builder, com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder>
getScheduleIDFieldBuilder() {
if (scheduleIDBuilder_ == null) {
scheduleIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ScheduleID, com.hedera.hashgraph.sdk.proto.ScheduleID.Builder, com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder>(
getScheduleID(),
getParentForChildren(),
isClean());
scheduleID_ = null;
}
return scheduleIDBuilder_;
}
private com.hedera.hashgraph.sdk.proto.TransactionID scheduledTransactionID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionID, com.hedera.hashgraph.sdk.proto.TransactionID.Builder, com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder> scheduledTransactionIDBuilder_;
/**
*
**
* In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the
* TransactionID that should be used to query for the receipt or record of the relevant
* scheduled transaction
*
*
* .proto.TransactionID scheduledTransactionID = 13;
* @return Whether the scheduledTransactionID field is set.
*/
public boolean hasScheduledTransactionID() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
**
* In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the
* TransactionID that should be used to query for the receipt or record of the relevant
* scheduled transaction
*
*
* .proto.TransactionID scheduledTransactionID = 13;
* @return The scheduledTransactionID.
*/
public com.hedera.hashgraph.sdk.proto.TransactionID getScheduledTransactionID() {
if (scheduledTransactionIDBuilder_ == null) {
return scheduledTransactionID_ == null ? com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance() : scheduledTransactionID_;
} else {
return scheduledTransactionIDBuilder_.getMessage();
}
}
/**
*
**
* In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the
* TransactionID that should be used to query for the receipt or record of the relevant
* scheduled transaction
*
*
* .proto.TransactionID scheduledTransactionID = 13;
*/
public Builder setScheduledTransactionID(com.hedera.hashgraph.sdk.proto.TransactionID value) {
if (scheduledTransactionIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduledTransactionID_ = value;
} else {
scheduledTransactionIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
**
* In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the
* TransactionID that should be used to query for the receipt or record of the relevant
* scheduled transaction
*
*
* .proto.TransactionID scheduledTransactionID = 13;
*/
public Builder setScheduledTransactionID(
com.hedera.hashgraph.sdk.proto.TransactionID.Builder builderForValue) {
if (scheduledTransactionIDBuilder_ == null) {
scheduledTransactionID_ = builderForValue.build();
} else {
scheduledTransactionIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
**
* In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the
* TransactionID that should be used to query for the receipt or record of the relevant
* scheduled transaction
*
*
* .proto.TransactionID scheduledTransactionID = 13;
*/
public Builder mergeScheduledTransactionID(com.hedera.hashgraph.sdk.proto.TransactionID value) {
if (scheduledTransactionIDBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0) &&
scheduledTransactionID_ != null &&
scheduledTransactionID_ != com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance()) {
getScheduledTransactionIDBuilder().mergeFrom(value);
} else {
scheduledTransactionID_ = value;
}
} else {
scheduledTransactionIDBuilder_.mergeFrom(value);
}
if (scheduledTransactionID_ != null) {
bitField0_ |= 0x00001000;
onChanged();
}
return this;
}
/**
*
**
* In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the
* TransactionID that should be used to query for the receipt or record of the relevant
* scheduled transaction
*
*
* .proto.TransactionID scheduledTransactionID = 13;
*/
public Builder clearScheduledTransactionID() {
bitField0_ = (bitField0_ & ~0x00001000);
scheduledTransactionID_ = null;
if (scheduledTransactionIDBuilder_ != null) {
scheduledTransactionIDBuilder_.dispose();
scheduledTransactionIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the
* TransactionID that should be used to query for the receipt or record of the relevant
* scheduled transaction
*
*
* .proto.TransactionID scheduledTransactionID = 13;
*/
public com.hedera.hashgraph.sdk.proto.TransactionID.Builder getScheduledTransactionIDBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getScheduledTransactionIDFieldBuilder().getBuilder();
}
/**
*
**
* In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the
* TransactionID that should be used to query for the receipt or record of the relevant
* scheduled transaction
*
*
* .proto.TransactionID scheduledTransactionID = 13;
*/
public com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder getScheduledTransactionIDOrBuilder() {
if (scheduledTransactionIDBuilder_ != null) {
return scheduledTransactionIDBuilder_.getMessageOrBuilder();
} else {
return scheduledTransactionID_ == null ?
com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance() : scheduledTransactionID_;
}
}
/**
*
**
* In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the
* TransactionID that should be used to query for the receipt or record of the relevant
* scheduled transaction
*
*
* .proto.TransactionID scheduledTransactionID = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionID, com.hedera.hashgraph.sdk.proto.TransactionID.Builder, com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder>
getScheduledTransactionIDFieldBuilder() {
if (scheduledTransactionIDBuilder_ == null) {
scheduledTransactionIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionID, com.hedera.hashgraph.sdk.proto.TransactionID.Builder, com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder>(
getScheduledTransactionID(),
getParentForChildren(),
isClean());
scheduledTransactionID_ = null;
}
return scheduledTransactionIDBuilder_;
}
private com.google.protobuf.Internal.LongList serialNumbers_ = emptyLongList();
private void ensureSerialNumbersIsMutable() {
if (!serialNumbers_.isModifiable()) {
serialNumbers_ = makeMutableCopy(serialNumbers_);
}
bitField0_ |= 0x00002000;
}
/**
*
**
* In the receipt of a TokenMint for tokens of type NON_FUNGIBLE_UNIQUE, the serial numbers of
* the newly created NFTs
*
*
* repeated int64 serialNumbers = 14;
* @return A list containing the serialNumbers.
*/
public java.util.List
getSerialNumbersList() {
serialNumbers_.makeImmutable();
return serialNumbers_;
}
/**
*
**
* In the receipt of a TokenMint for tokens of type NON_FUNGIBLE_UNIQUE, the serial numbers of
* the newly created NFTs
*
*
* repeated int64 serialNumbers = 14;
* @return The count of serialNumbers.
*/
public int getSerialNumbersCount() {
return serialNumbers_.size();
}
/**
*
**
* In the receipt of a TokenMint for tokens of type NON_FUNGIBLE_UNIQUE, the serial numbers of
* the newly created NFTs
*
*
* repeated int64 serialNumbers = 14;
* @param index The index of the element to return.
* @return The serialNumbers at the given index.
*/
public long getSerialNumbers(int index) {
return serialNumbers_.getLong(index);
}
/**
*
**
* In the receipt of a TokenMint for tokens of type NON_FUNGIBLE_UNIQUE, the serial numbers of
* the newly created NFTs
*
*
* repeated int64 serialNumbers = 14;
* @param index The index to set the value at.
* @param value The serialNumbers to set.
* @return This builder for chaining.
*/
public Builder setSerialNumbers(
int index, long value) {
ensureSerialNumbersIsMutable();
serialNumbers_.setLong(index, value);
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* In the receipt of a TokenMint for tokens of type NON_FUNGIBLE_UNIQUE, the serial numbers of
* the newly created NFTs
*
*
* repeated int64 serialNumbers = 14;
* @param value The serialNumbers to add.
* @return This builder for chaining.
*/
public Builder addSerialNumbers(long value) {
ensureSerialNumbersIsMutable();
serialNumbers_.addLong(value);
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* In the receipt of a TokenMint for tokens of type NON_FUNGIBLE_UNIQUE, the serial numbers of
* the newly created NFTs
*
*
* repeated int64 serialNumbers = 14;
* @param values The serialNumbers to add.
* @return This builder for chaining.
*/
public Builder addAllSerialNumbers(
java.lang.Iterable extends java.lang.Long> values) {
ensureSerialNumbersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, serialNumbers_);
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* In the receipt of a TokenMint for tokens of type NON_FUNGIBLE_UNIQUE, the serial numbers of
* the newly created NFTs
*
*
* repeated int64 serialNumbers = 14;
* @return This builder for chaining.
*/
public Builder clearSerialNumbers() {
serialNumbers_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
private long nodeId_ ;
/**
*
**
* In the receipt of a NodeCreate, NodeUpdate, NodeDelete, the id of the newly created node.
* An affected node identifier.<br/>
* This value SHALL be set following a `createNode` transaction.<br/>
* This value SHALL be set following a `updateNode` transaction.<br/>
* This value SHALL be set following a `deleteNode` transaction.<br/>
* This value SHALL NOT be set following any other transaction.
*
*
* uint64 node_id = 15;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
/**
*
**
* In the receipt of a NodeCreate, NodeUpdate, NodeDelete, the id of the newly created node.
* An affected node identifier.<br/>
* This value SHALL be set following a `createNode` transaction.<br/>
* This value SHALL be set following a `updateNode` transaction.<br/>
* This value SHALL be set following a `deleteNode` transaction.<br/>
* This value SHALL NOT be set following any other transaction.
*
*
* uint64 node_id = 15;
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(long value) {
nodeId_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
**
* In the receipt of a NodeCreate, NodeUpdate, NodeDelete, the id of the newly created node.
* An affected node identifier.<br/>
* This value SHALL be set following a `createNode` transaction.<br/>
* This value SHALL be set following a `updateNode` transaction.<br/>
* This value SHALL be set following a `deleteNode` transaction.<br/>
* This value SHALL NOT be set following any other transaction.
*
*
* uint64 node_id = 15;
* @return This builder for chaining.
*/
public Builder clearNodeId() {
bitField0_ = (bitField0_ & ~0x00004000);
nodeId_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto.TransactionReceipt)
}
// @@protoc_insertion_point(class_scope:proto.TransactionReceipt)
private static final com.hedera.hashgraph.sdk.proto.TransactionReceipt DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.TransactionReceipt();
}
public static com.hedera.hashgraph.sdk.proto.TransactionReceipt getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionReceipt 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.TransactionReceipt getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}