implements
// @@protoc_insertion_point(builder_implements:proto.TransactionReceipt)
com.hederahashgraph.api.proto.java.TransactionReceiptOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.TransactionReceiptOuterClass.internal_static_proto_TransactionReceipt_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.TransactionReceiptOuterClass.internal_static_proto_TransactionReceipt_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.TransactionReceipt.class, com.hederahashgraph.api.proto.java.TransactionReceipt.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
status_ = 0;
if (accountIDBuilder_ == null) {
accountID_ = null;
} else {
accountID_ = null;
accountIDBuilder_ = null;
}
if (fileIDBuilder_ == null) {
fileID_ = null;
} else {
fileID_ = null;
fileIDBuilder_ = null;
}
if (contractIDBuilder_ == null) {
contractID_ = null;
} else {
contractID_ = null;
contractIDBuilder_ = null;
}
if (exchangeRateBuilder_ == null) {
exchangeRate_ = null;
} else {
exchangeRate_ = null;
exchangeRateBuilder_ = null;
}
if (topicIDBuilder_ == null) {
topicID_ = null;
} else {
topicID_ = null;
topicIDBuilder_ = null;
}
topicSequenceNumber_ = 0L;
topicRunningHash_ = com.google.protobuf.ByteString.EMPTY;
topicRunningHashVersion_ = 0L;
if (tokenIDBuilder_ == null) {
tokenID_ = null;
} else {
tokenID_ = null;
tokenIDBuilder_ = null;
}
newTotalSupply_ = 0L;
if (scheduleIDBuilder_ == null) {
scheduleID_ = null;
} else {
scheduleID_ = null;
scheduleIDBuilder_ = null;
}
if (scheduledTransactionIDBuilder_ == null) {
scheduledTransactionID_ = null;
} else {
scheduledTransactionID_ = null;
scheduledTransactionIDBuilder_ = null;
}
serialNumbers_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
nodeId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.TransactionReceiptOuterClass.internal_static_proto_TransactionReceipt_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionReceipt getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.TransactionReceipt.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionReceipt build() {
com.hederahashgraph.api.proto.java.TransactionReceipt result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionReceipt buildPartial() {
com.hederahashgraph.api.proto.java.TransactionReceipt result = new com.hederahashgraph.api.proto.java.TransactionReceipt(this);
int from_bitField0_ = bitField0_;
result.status_ = status_;
if (accountIDBuilder_ == null) {
result.accountID_ = accountID_;
} else {
result.accountID_ = accountIDBuilder_.build();
}
if (fileIDBuilder_ == null) {
result.fileID_ = fileID_;
} else {
result.fileID_ = fileIDBuilder_.build();
}
if (contractIDBuilder_ == null) {
result.contractID_ = contractID_;
} else {
result.contractID_ = contractIDBuilder_.build();
}
if (exchangeRateBuilder_ == null) {
result.exchangeRate_ = exchangeRate_;
} else {
result.exchangeRate_ = exchangeRateBuilder_.build();
}
if (topicIDBuilder_ == null) {
result.topicID_ = topicID_;
} else {
result.topicID_ = topicIDBuilder_.build();
}
result.topicSequenceNumber_ = topicSequenceNumber_;
result.topicRunningHash_ = topicRunningHash_;
result.topicRunningHashVersion_ = topicRunningHashVersion_;
if (tokenIDBuilder_ == null) {
result.tokenID_ = tokenID_;
} else {
result.tokenID_ = tokenIDBuilder_.build();
}
result.newTotalSupply_ = newTotalSupply_;
if (scheduleIDBuilder_ == null) {
result.scheduleID_ = scheduleID_;
} else {
result.scheduleID_ = scheduleIDBuilder_.build();
}
if (scheduledTransactionIDBuilder_ == null) {
result.scheduledTransactionID_ = scheduledTransactionID_;
} else {
result.scheduledTransactionID_ = scheduledTransactionIDBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
serialNumbers_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.serialNumbers_ = serialNumbers_;
result.nodeId_ = nodeId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hederahashgraph.api.proto.java.TransactionReceipt) {
return mergeFrom((com.hederahashgraph.api.proto.java.TransactionReceipt)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.TransactionReceipt other) {
if (other == com.hederahashgraph.api.proto.java.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_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSerialNumbersIsMutable();
serialNumbers_.addAll(other.serialNumbers_);
}
onChanged();
}
if (other.getNodeId() != 0L) {
setNodeId(other.getNodeId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.hederahashgraph.api.proto.java.TransactionReceipt parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.TransactionReceipt) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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;
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.hederahashgraph.api.proto.java.ResponseCodeEnum getStatus() {
@SuppressWarnings("deprecation")
com.hederahashgraph.api.proto.java.ResponseCodeEnum result = com.hederahashgraph.api.proto.java.ResponseCodeEnum.valueOf(status_);
return result == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ResponseCodeEnum value) {
if (value == null) {
throw new NullPointerException();
}
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() {
status_ = 0;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.AccountID accountID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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 accountIDBuilder_ != null || accountID_ != null;
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
* @return The accountID.
*/
public com.hederahashgraph.api.proto.java.AccountID getAccountID() {
if (accountIDBuilder_ == null) {
return accountID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) {
if (accountIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accountID_ = value;
onChanged();
} else {
accountIDBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
public Builder setAccountID(
com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (accountIDBuilder_ == null) {
accountID_ = builderForValue.build();
onChanged();
} else {
accountIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
public Builder mergeAccountID(com.hederahashgraph.api.proto.java.AccountID value) {
if (accountIDBuilder_ == null) {
if (accountID_ != null) {
accountID_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(accountID_).mergeFrom(value).buildPartial();
} else {
accountID_ = value;
}
onChanged();
} else {
accountIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
public Builder clearAccountID() {
if (accountIDBuilder_ == null) {
accountID_ = null;
onChanged();
} else {
accountID_ = null;
accountIDBuilder_ = null;
}
return this;
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
public com.hederahashgraph.api.proto.java.AccountID.Builder getAccountIDBuilder() {
onChanged();
return getAccountIDFieldBuilder().getBuilder();
}
/**
*
**
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIDOrBuilder() {
if (accountIDBuilder_ != null) {
return accountIDBuilder_.getMessageOrBuilder();
} else {
return accountID_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getAccountIDFieldBuilder() {
if (accountIDBuilder_ == null) {
accountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getAccountID(),
getParentForChildren(),
isClean());
accountID_ = null;
}
return accountIDBuilder_;
}
private com.hederahashgraph.api.proto.java.FileID fileID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.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 fileIDBuilder_ != null || fileID_ != null;
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
* @return The fileID.
*/
public com.hederahashgraph.api.proto.java.FileID getFileID() {
if (fileIDBuilder_ == null) {
return fileID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FileID value) {
if (fileIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileID_ = value;
onChanged();
} else {
fileIDBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
public Builder setFileID(
com.hederahashgraph.api.proto.java.FileID.Builder builderForValue) {
if (fileIDBuilder_ == null) {
fileID_ = builderForValue.build();
onChanged();
} else {
fileIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
public Builder mergeFileID(com.hederahashgraph.api.proto.java.FileID value) {
if (fileIDBuilder_ == null) {
if (fileID_ != null) {
fileID_ =
com.hederahashgraph.api.proto.java.FileID.newBuilder(fileID_).mergeFrom(value).buildPartial();
} else {
fileID_ = value;
}
onChanged();
} else {
fileIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
public Builder clearFileID() {
if (fileIDBuilder_ == null) {
fileID_ = null;
onChanged();
} else {
fileID_ = null;
fileIDBuilder_ = null;
}
return this;
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
public com.hederahashgraph.api.proto.java.FileID.Builder getFileIDBuilder() {
onChanged();
return getFileIDFieldBuilder().getBuilder();
}
/**
*
**
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() {
if (fileIDBuilder_ != null) {
return fileIDBuilder_.getMessageOrBuilder();
} else {
return fileID_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder>
getFileIDFieldBuilder() {
if (fileIDBuilder_ == null) {
fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder>(
getFileID(),
getParentForChildren(),
isClean());
fileID_ = null;
}
return fileIDBuilder_;
}
private com.hederahashgraph.api.proto.java.ContractID contractID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.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 contractIDBuilder_ != null || contractID_ != null;
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
* @return The contractID.
*/
public com.hederahashgraph.api.proto.java.ContractID getContractID() {
if (contractIDBuilder_ == null) {
return contractID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractID value) {
if (contractIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractID_ = value;
onChanged();
} else {
contractIDBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
public Builder setContractID(
com.hederahashgraph.api.proto.java.ContractID.Builder builderForValue) {
if (contractIDBuilder_ == null) {
contractID_ = builderForValue.build();
onChanged();
} else {
contractIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
public Builder mergeContractID(com.hederahashgraph.api.proto.java.ContractID value) {
if (contractIDBuilder_ == null) {
if (contractID_ != null) {
contractID_ =
com.hederahashgraph.api.proto.java.ContractID.newBuilder(contractID_).mergeFrom(value).buildPartial();
} else {
contractID_ = value;
}
onChanged();
} else {
contractIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
public Builder clearContractID() {
if (contractIDBuilder_ == null) {
contractID_ = null;
onChanged();
} else {
contractID_ = null;
contractIDBuilder_ = null;
}
return this;
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
public com.hederahashgraph.api.proto.java.ContractID.Builder getContractIDBuilder() {
onChanged();
return getContractIDFieldBuilder().getBuilder();
}
/**
*
**
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() {
if (contractIDBuilder_ != null) {
return contractIDBuilder_.getMessageOrBuilder();
} else {
return contractID_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>
getContractIDFieldBuilder() {
if (contractIDBuilder_ == null) {
contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>(
getContractID(),
getParentForChildren(),
isClean());
contractID_ = null;
}
return contractIDBuilder_;
}
private com.hederahashgraph.api.proto.java.ExchangeRateSet exchangeRate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ExchangeRateSet, com.hederahashgraph.api.proto.java.ExchangeRateSet.Builder, com.hederahashgraph.api.proto.java.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 exchangeRateBuilder_ != null || exchangeRate_ != null;
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
* @return The exchangeRate.
*/
public com.hederahashgraph.api.proto.java.ExchangeRateSet getExchangeRate() {
if (exchangeRateBuilder_ == null) {
return exchangeRate_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ExchangeRateSet value) {
if (exchangeRateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exchangeRate_ = value;
onChanged();
} else {
exchangeRateBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
public Builder setExchangeRate(
com.hederahashgraph.api.proto.java.ExchangeRateSet.Builder builderForValue) {
if (exchangeRateBuilder_ == null) {
exchangeRate_ = builderForValue.build();
onChanged();
} else {
exchangeRateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
public Builder mergeExchangeRate(com.hederahashgraph.api.proto.java.ExchangeRateSet value) {
if (exchangeRateBuilder_ == null) {
if (exchangeRate_ != null) {
exchangeRate_ =
com.hederahashgraph.api.proto.java.ExchangeRateSet.newBuilder(exchangeRate_).mergeFrom(value).buildPartial();
} else {
exchangeRate_ = value;
}
onChanged();
} else {
exchangeRateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
public Builder clearExchangeRate() {
if (exchangeRateBuilder_ == null) {
exchangeRate_ = null;
onChanged();
} else {
exchangeRate_ = null;
exchangeRateBuilder_ = null;
}
return this;
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
public com.hederahashgraph.api.proto.java.ExchangeRateSet.Builder getExchangeRateBuilder() {
onChanged();
return getExchangeRateFieldBuilder().getBuilder();
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
public com.hederahashgraph.api.proto.java.ExchangeRateSetOrBuilder getExchangeRateOrBuilder() {
if (exchangeRateBuilder_ != null) {
return exchangeRateBuilder_.getMessageOrBuilder();
} else {
return exchangeRate_ == null ?
com.hederahashgraph.api.proto.java.ExchangeRateSet.getDefaultInstance() : exchangeRate_;
}
}
/**
*
**
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ExchangeRateSet, com.hederahashgraph.api.proto.java.ExchangeRateSet.Builder, com.hederahashgraph.api.proto.java.ExchangeRateSetOrBuilder>
getExchangeRateFieldBuilder() {
if (exchangeRateBuilder_ == null) {
exchangeRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ExchangeRateSet, com.hederahashgraph.api.proto.java.ExchangeRateSet.Builder, com.hederahashgraph.api.proto.java.ExchangeRateSetOrBuilder>(
getExchangeRate(),
getParentForChildren(),
isClean());
exchangeRate_ = null;
}
return exchangeRateBuilder_;
}
private com.hederahashgraph.api.proto.java.TopicID topicID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TopicID, com.hederahashgraph.api.proto.java.TopicID.Builder, com.hederahashgraph.api.proto.java.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 topicIDBuilder_ != null || topicID_ != null;
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
* @return The topicID.
*/
public com.hederahashgraph.api.proto.java.TopicID getTopicID() {
if (topicIDBuilder_ == null) {
return topicID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TopicID value) {
if (topicIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
topicID_ = value;
onChanged();
} else {
topicIDBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
public Builder setTopicID(
com.hederahashgraph.api.proto.java.TopicID.Builder builderForValue) {
if (topicIDBuilder_ == null) {
topicID_ = builderForValue.build();
onChanged();
} else {
topicIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
public Builder mergeTopicID(com.hederahashgraph.api.proto.java.TopicID value) {
if (topicIDBuilder_ == null) {
if (topicID_ != null) {
topicID_ =
com.hederahashgraph.api.proto.java.TopicID.newBuilder(topicID_).mergeFrom(value).buildPartial();
} else {
topicID_ = value;
}
onChanged();
} else {
topicIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
public Builder clearTopicID() {
if (topicIDBuilder_ == null) {
topicID_ = null;
onChanged();
} else {
topicID_ = null;
topicIDBuilder_ = null;
}
return this;
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
public com.hederahashgraph.api.proto.java.TopicID.Builder getTopicIDBuilder() {
onChanged();
return getTopicIDFieldBuilder().getBuilder();
}
/**
*
**
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
public com.hederahashgraph.api.proto.java.TopicIDOrBuilder getTopicIDOrBuilder() {
if (topicIDBuilder_ != null) {
return topicIDBuilder_.getMessageOrBuilder();
} else {
return topicID_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TopicID, com.hederahashgraph.api.proto.java.TopicID.Builder, com.hederahashgraph.api.proto.java.TopicIDOrBuilder>
getTopicIDFieldBuilder() {
if (topicIDBuilder_ == null) {
topicIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TopicID, com.hederahashgraph.api.proto.java.TopicID.Builder, com.hederahashgraph.api.proto.java.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;
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() {
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;
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() {
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;
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() {
topicRunningHashVersion_ = 0L;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.TokenID tokenID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.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 tokenIDBuilder_ != null || tokenID_ != null;
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
* @return The tokenID.
*/
public com.hederahashgraph.api.proto.java.TokenID getTokenID() {
if (tokenIDBuilder_ == null) {
return tokenID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TokenID value) {
if (tokenIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tokenID_ = value;
onChanged();
} else {
tokenIDBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
*/
public Builder setTokenID(
com.hederahashgraph.api.proto.java.TokenID.Builder builderForValue) {
if (tokenIDBuilder_ == null) {
tokenID_ = builderForValue.build();
onChanged();
} else {
tokenIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
*/
public Builder mergeTokenID(com.hederahashgraph.api.proto.java.TokenID value) {
if (tokenIDBuilder_ == null) {
if (tokenID_ != null) {
tokenID_ =
com.hederahashgraph.api.proto.java.TokenID.newBuilder(tokenID_).mergeFrom(value).buildPartial();
} else {
tokenID_ = value;
}
onChanged();
} else {
tokenIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
*/
public Builder clearTokenID() {
if (tokenIDBuilder_ == null) {
tokenID_ = null;
onChanged();
} else {
tokenID_ = null;
tokenIDBuilder_ = null;
}
return this;
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
*/
public com.hederahashgraph.api.proto.java.TokenID.Builder getTokenIDBuilder() {
onChanged();
return getTokenIDFieldBuilder().getBuilder();
}
/**
*
**
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenID = 10;
*/
public com.hederahashgraph.api.proto.java.TokenIDOrBuilder getTokenIDOrBuilder() {
if (tokenIDBuilder_ != null) {
return tokenIDBuilder_.getMessageOrBuilder();
} else {
return tokenID_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.TokenIDOrBuilder>
getTokenIDFieldBuilder() {
if (tokenIDBuilder_ == null) {
tokenIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.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;
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() {
newTotalSupply_ = 0L;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.ScheduleID scheduleID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ScheduleID, com.hederahashgraph.api.proto.java.ScheduleID.Builder, com.hederahashgraph.api.proto.java.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 scheduleIDBuilder_ != null || scheduleID_ != null;
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
* @return The scheduleID.
*/
public com.hederahashgraph.api.proto.java.ScheduleID getScheduleID() {
if (scheduleIDBuilder_ == null) {
return scheduleID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ScheduleID value) {
if (scheduleIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduleID_ = value;
onChanged();
} else {
scheduleIDBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
*/
public Builder setScheduleID(
com.hederahashgraph.api.proto.java.ScheduleID.Builder builderForValue) {
if (scheduleIDBuilder_ == null) {
scheduleID_ = builderForValue.build();
onChanged();
} else {
scheduleIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
*/
public Builder mergeScheduleID(com.hederahashgraph.api.proto.java.ScheduleID value) {
if (scheduleIDBuilder_ == null) {
if (scheduleID_ != null) {
scheduleID_ =
com.hederahashgraph.api.proto.java.ScheduleID.newBuilder(scheduleID_).mergeFrom(value).buildPartial();
} else {
scheduleID_ = value;
}
onChanged();
} else {
scheduleIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
*/
public Builder clearScheduleID() {
if (scheduleIDBuilder_ == null) {
scheduleID_ = null;
onChanged();
} else {
scheduleID_ = null;
scheduleIDBuilder_ = null;
}
return this;
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
*/
public com.hederahashgraph.api.proto.java.ScheduleID.Builder getScheduleIDBuilder() {
onChanged();
return getScheduleIDFieldBuilder().getBuilder();
}
/**
*
**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
*
*
* .proto.ScheduleID scheduleID = 12;
*/
public com.hederahashgraph.api.proto.java.ScheduleIDOrBuilder getScheduleIDOrBuilder() {
if (scheduleIDBuilder_ != null) {
return scheduleIDBuilder_.getMessageOrBuilder();
} else {
return scheduleID_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ScheduleID, com.hederahashgraph.api.proto.java.ScheduleID.Builder, com.hederahashgraph.api.proto.java.ScheduleIDOrBuilder>
getScheduleIDFieldBuilder() {
if (scheduleIDBuilder_ == null) {
scheduleIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ScheduleID, com.hederahashgraph.api.proto.java.ScheduleID.Builder, com.hederahashgraph.api.proto.java.ScheduleIDOrBuilder>(
getScheduleID(),
getParentForChildren(),
isClean());
scheduleID_ = null;
}
return scheduleIDBuilder_;
}
private com.hederahashgraph.api.proto.java.TransactionID scheduledTransactionID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionID, com.hederahashgraph.api.proto.java.TransactionID.Builder, com.hederahashgraph.api.proto.java.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 scheduledTransactionIDBuilder_ != null || scheduledTransactionID_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.TransactionID getScheduledTransactionID() {
if (scheduledTransactionIDBuilder_ == null) {
return scheduledTransactionID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionID value) {
if (scheduledTransactionIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduledTransactionID_ = value;
onChanged();
} else {
scheduledTransactionIDBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.TransactionID.Builder builderForValue) {
if (scheduledTransactionIDBuilder_ == null) {
scheduledTransactionID_ = builderForValue.build();
onChanged();
} else {
scheduledTransactionIDBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.TransactionID value) {
if (scheduledTransactionIDBuilder_ == null) {
if (scheduledTransactionID_ != null) {
scheduledTransactionID_ =
com.hederahashgraph.api.proto.java.TransactionID.newBuilder(scheduledTransactionID_).mergeFrom(value).buildPartial();
} else {
scheduledTransactionID_ = value;
}
onChanged();
} else {
scheduledTransactionIDBuilder_.mergeFrom(value);
}
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() {
if (scheduledTransactionIDBuilder_ == null) {
scheduledTransactionID_ = null;
onChanged();
} else {
scheduledTransactionID_ = null;
scheduledTransactionIDBuilder_ = null;
}
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.hederahashgraph.api.proto.java.TransactionID.Builder getScheduledTransactionIDBuilder() {
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.hederahashgraph.api.proto.java.TransactionIDOrBuilder getScheduledTransactionIDOrBuilder() {
if (scheduledTransactionIDBuilder_ != null) {
return scheduledTransactionIDBuilder_.getMessageOrBuilder();
} else {
return scheduledTransactionID_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionID, com.hederahashgraph.api.proto.java.TransactionID.Builder, com.hederahashgraph.api.proto.java.TransactionIDOrBuilder>
getScheduledTransactionIDFieldBuilder() {
if (scheduledTransactionIDBuilder_ == null) {
scheduledTransactionIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionID, com.hederahashgraph.api.proto.java.TransactionID.Builder, com.hederahashgraph.api.proto.java.TransactionIDOrBuilder>(
getScheduledTransactionID(),
getParentForChildren(),
isClean());
scheduledTransactionID_ = null;
}
return scheduledTransactionIDBuilder_;
}
private com.google.protobuf.Internal.LongList serialNumbers_ = emptyLongList();
private void ensureSerialNumbersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
serialNumbers_ = mutableCopy(serialNumbers_);
bitField0_ |= 0x00000001;
}
}
/**
*
**
* 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() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(serialNumbers_) : 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);
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);
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_);
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_ & ~0x00000001);
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;
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() {
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.hederahashgraph.api.proto.java.TransactionReceipt DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.TransactionReceipt();
}
public static com.hederahashgraph.api.proto.java.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 {
return new TransactionReceipt(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionReceipt getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}