
com.hederahashgraph.api.proto.java.TransactionReceipt Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TransactionReceipt.proto
package com.hederahashgraph.api.proto.java;
/**
*
*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;
topicSequenceNumber_ = 0L;
topicRunningHash_ = com.google.protobuf.ByteString.EMPTY;
topicRunningHashVersion_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionReceipt(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 18: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (accountID_ != null) {
subBuilder = accountID_.toBuilder();
}
accountID_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(accountID_);
accountID_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.hederahashgraph.api.proto.java.FileID.Builder subBuilder = null;
if (fileID_ != null) {
subBuilder = fileID_.toBuilder();
}
fileID_ = input.readMessage(com.hederahashgraph.api.proto.java.FileID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fileID_);
fileID_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.hederahashgraph.api.proto.java.ContractID.Builder subBuilder = null;
if (contractID_ != null) {
subBuilder = contractID_.toBuilder();
}
contractID_ = input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contractID_);
contractID_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.hederahashgraph.api.proto.java.ExchangeRateSet.Builder subBuilder = null;
if (exchangeRate_ != null) {
subBuilder = exchangeRate_.toBuilder();
}
exchangeRate_ = input.readMessage(com.hederahashgraph.api.proto.java.ExchangeRateSet.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(exchangeRate_);
exchangeRate_ = subBuilder.buildPartial();
}
break;
}
case 50: {
com.hederahashgraph.api.proto.java.TopicID.Builder subBuilder = null;
if (topicID_ != null) {
subBuilder = topicID_.toBuilder();
}
topicID_ = input.readMessage(com.hederahashgraph.api.proto.java.TopicID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(topicID_);
topicID_ = subBuilder.buildPartial();
}
break;
}
case 56: {
topicSequenceNumber_ = input.readUInt64();
break;
}
case 66: {
topicRunningHash_ = input.readBytes();
break;
}
case 72: {
topicRunningHashVersion_ = input.readUInt64();
break;
}
case 82: {
com.hederahashgraph.api.proto.java.TokenID.Builder subBuilder = null;
if (tokenId_ != null) {
subBuilder = tokenId_.toBuilder();
}
tokenId_ = input.readMessage(com.hederahashgraph.api.proto.java.TokenID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tokenId_);
tokenId_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.TransactionReceiptOuterClass.internal_static_proto_TransactionReceipt_descriptor;
}
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);
}
public static final int STATUS_FIELD_NUMBER = 1;
private int 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;
*/
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;
*/
public com.hederahashgraph.api.proto.java.ResponseCodeEnum getStatus() {
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;
}
public static final int ACCOUNTID_FIELD_NUMBER = 2;
private com.hederahashgraph.api.proto.java.AccountID accountID_;
/**
*
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
public boolean hasAccountID() {
return accountID_ != null;
}
/**
*
* In the receipt of a CryptoCreate, the id of the newly created account
*
*
* .proto.AccountID accountID = 2;
*/
public com.hederahashgraph.api.proto.java.AccountID getAccountID() {
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;
*/
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIDOrBuilder() {
return getAccountID();
}
public static final int FILEID_FIELD_NUMBER = 3;
private com.hederahashgraph.api.proto.java.FileID fileID_;
/**
*
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
public boolean hasFileID() {
return fileID_ != null;
}
/**
*
* In the receipt of a FileCreate, the id of the newly created file
*
*
* .proto.FileID fileID = 3;
*/
public com.hederahashgraph.api.proto.java.FileID getFileID() {
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;
*/
public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() {
return getFileID();
}
public static final int CONTRACTID_FIELD_NUMBER = 4;
private com.hederahashgraph.api.proto.java.ContractID contractID_;
/**
*
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
public boolean hasContractID() {
return contractID_ != null;
}
/**
*
* In the receipt of a ContractCreate, the id of the newly created contract
*
*
* .proto.ContractID contractID = 4;
*/
public com.hederahashgraph.api.proto.java.ContractID getContractID() {
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;
*/
public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() {
return getContractID();
}
public static final int EXCHANGERATE_FIELD_NUMBER = 5;
private com.hederahashgraph.api.proto.java.ExchangeRateSet exchangeRate_;
/**
*
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
public boolean hasExchangeRate() {
return exchangeRate_ != null;
}
/**
*
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
public com.hederahashgraph.api.proto.java.ExchangeRateSet getExchangeRate() {
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;
*/
public com.hederahashgraph.api.proto.java.ExchangeRateSetOrBuilder getExchangeRateOrBuilder() {
return getExchangeRate();
}
public static final int TOPICID_FIELD_NUMBER = 6;
private com.hederahashgraph.api.proto.java.TopicID topicID_;
/**
*
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
public boolean hasTopicID() {
return topicID_ != null;
}
/**
*
* In the receipt of a ConsensusCreateTopic, the id of the newly created topic.
*
*
* .proto.TopicID topicID = 6;
*/
public com.hederahashgraph.api.proto.java.TopicID getTopicID() {
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;
*/
public com.hederahashgraph.api.proto.java.TopicIDOrBuilder getTopicIDOrBuilder() {
return getTopicID();
}
public static final int TOPICSEQUENCENUMBER_FIELD_NUMBER = 7;
private long topicSequenceNumber_;
/**
*
* In the receipt of a ConsensusSubmitMessage, the new sequence number of the topic that received the message
*
*
* uint64 topicSequenceNumber = 7;
*/
public long getTopicSequenceNumber() {
return topicSequenceNumber_;
}
public static final int TOPICRUNNINGHASH_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString topicRunningHash_;
/**
*
* In the receipt of a ConsensusSubmitMessage, the new running hash of the topic that received the message.
* This 48-byte field is the output of a particular SHA-384 digest whose input data are determined by the
* value of the topicRunningHashVersion below. The bytes of each uint64 or uint32 are to be in Big-Endian
* format.
* IF the topicRunningHashVersion is '0' or '1', then the input data to the SHA-384 digest are, in order:
* ---
* 1. The previous running hash of the topic (48 bytes)
* 2. The topic's shard (8 bytes)
* 3. The topic's realm (8 bytes)
* 4. The topic's number (8 bytes)
* 5. The number of seconds since the epoch before the ConsensusSubmitMessage reached consensus (8 bytes)
* 6. The number of nanoseconds since 5. before the ConsensusSubmitMessage reached consensus (4 bytes)
* 7. The topicSequenceNumber from above (8 bytes)
* 8. The message bytes from the ConsensusSubmitMessage (variable).
* IF the topicRunningHashVersion is '2', then the input data to the SHA-384 digest are, in order:
* ---
* 1. The previous running hash of the topic (48 bytes)
* 2. The topicRunningHashVersion below (8 bytes)
* 3. The topic's shard (8 bytes)
* 4. The topic's realm (8 bytes)
* 5. The topic's number (8 bytes)
* 6. The number of seconds since the epoch before the ConsensusSubmitMessage reached consensus (8 bytes)
* 7. The number of nanoseconds since 6. before the ConsensusSubmitMessage reached consensus (4 bytes)
* 8. The topicSequenceNumber from above (8 bytes)
* 9. The output of the SHA-384 digest of the message bytes from the consensusSubmitMessage (48 bytes)
* Otherwise, IF the topicRunningHashVersion is '3', then the input data to the SHA-384 digest are, in order:
* ---
* 1. The previous running hash of the topic (48 bytes)
* 2. The topicRunningHashVersion below (8 bytes)
* 3. The payer account's shard (8 bytes)
* 4. The payer account's realm (8 bytes)
* 5. The payer account's number (8 bytes)
* 6. The topic's shard (8 bytes)
* 7. The topic's realm (8 bytes)
* 8. The topic's number (8 bytes)
* 9. The number of seconds since the epoch before the ConsensusSubmitMessage reached consensus (8 bytes)
* 10. The number of nanoseconds since 9. before the ConsensusSubmitMessage reached consensus (4 bytes)
* 11. The topicSequenceNumber from above (8 bytes)
* 12. The output of the SHA-384 digest of the message bytes from the consensusSubmitMessage (48 bytes)
*
*
* bytes topicRunningHash = 8;
*/
public com.google.protobuf.ByteString getTopicRunningHash() {
return topicRunningHash_;
}
public static final int TOPICRUNNINGHASHVERSION_FIELD_NUMBER = 9;
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;
*/
public long getTopicRunningHashVersion() {
return topicRunningHashVersion_;
}
public static final int TOKENID_FIELD_NUMBER = 10;
private com.hederahashgraph.api.proto.java.TokenID tokenId_;
/**
*
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenId = 10;
*/
public boolean hasTokenId() {
return tokenId_ != null;
}
/**
*
* In the receipt of a CreateToken, the id of the newly created token
*
*
* .proto.TokenID tokenId = 10;
*/
public com.hederahashgraph.api.proto.java.TokenID getTokenId() {
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;
*/
public com.hederahashgraph.api.proto.java.TokenIDOrBuilder getTokenIdOrBuilder() {
return getTokenId();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != com.hederahashgraph.api.proto.java.ResponseCodeEnum.OK.getNumber()) {
output.writeEnum(1, status_);
}
if (accountID_ != null) {
output.writeMessage(2, getAccountID());
}
if (fileID_ != null) {
output.writeMessage(3, getFileID());
}
if (contractID_ != null) {
output.writeMessage(4, getContractID());
}
if (exchangeRate_ != null) {
output.writeMessage(5, getExchangeRate());
}
if (topicID_ != null) {
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 (tokenId_ != null) {
output.writeMessage(10, getTokenId());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != com.hederahashgraph.api.proto.java.ResponseCodeEnum.OK.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
if (accountID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAccountID());
}
if (fileID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getFileID());
}
if (contractID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getContractID());
}
if (exchangeRate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getExchangeRate());
}
if (topicID_ != null) {
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 (tokenId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getTokenId());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hederahashgraph.api.proto.java.TransactionReceipt)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.TransactionReceipt other = (com.hederahashgraph.api.proto.java.TransactionReceipt) obj;
boolean result = true;
result = result && status_ == other.status_;
result = result && (hasAccountID() == other.hasAccountID());
if (hasAccountID()) {
result = result && getAccountID()
.equals(other.getAccountID());
}
result = result && (hasFileID() == other.hasFileID());
if (hasFileID()) {
result = result && getFileID()
.equals(other.getFileID());
}
result = result && (hasContractID() == other.hasContractID());
if (hasContractID()) {
result = result && getContractID()
.equals(other.getContractID());
}
result = result && (hasExchangeRate() == other.hasExchangeRate());
if (hasExchangeRate()) {
result = result && getExchangeRate()
.equals(other.getExchangeRate());
}
result = result && (hasTopicID() == other.hasTopicID());
if (hasTopicID()) {
result = result && getTopicID()
.equals(other.getTopicID());
}
result = result && (getTopicSequenceNumber()
== other.getTopicSequenceNumber());
result = result && getTopicRunningHash()
.equals(other.getTopicRunningHash());
result = result && (getTopicRunningHashVersion()
== other.getTopicRunningHashVersion());
result = result && (hasTokenId() == other.hasTokenId());
if (hasTokenId()) {
result = result && getTokenId()
.equals(other.getTokenId());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.TransactionReceipt parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TransactionReceipt parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.TransactionReceipt parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionReceipt parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TransactionReceipt parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.TransactionReceipt parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionReceipt parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionReceipt parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hederahashgraph.api.proto.java.TransactionReceipt prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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.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;
}
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) {
}
}
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;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.TransactionReceiptOuterClass.internal_static_proto_TransactionReceipt_descriptor;
}
public com.hederahashgraph.api.proto.java.TransactionReceipt getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.TransactionReceipt.getDefaultInstance();
}
public com.hederahashgraph.api.proto.java.TransactionReceipt build() {
com.hederahashgraph.api.proto.java.TransactionReceipt result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.hederahashgraph.api.proto.java.TransactionReceipt buildPartial() {
com.hederahashgraph.api.proto.java.TransactionReceipt result = new com.hederahashgraph.api.proto.java.TransactionReceipt(this);
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();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
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 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;
*/
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;
*/
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;
*/
public com.hederahashgraph.api.proto.java.ResponseCodeEnum getStatus() {
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;
*/
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;
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.AccountID accountID_ = null;
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;
*/
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;
*/
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_ = null;
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;
*/
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;
*/
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_ = null;
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;
*/
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;
*/
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_ = null;
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;
*/
public boolean hasExchangeRate() {
return exchangeRateBuilder_ != null || exchangeRate_ != null;
}
/**
*
* The exchange rates in effect when the transaction reached consensus
*
*
* .proto.ExchangeRateSet exchangeRate = 5;
*/
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_ = null;
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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.
* This 48-byte field is the output of a particular SHA-384 digest whose input data are determined by the
* value of the topicRunningHashVersion below. The bytes of each uint64 or uint32 are to be in Big-Endian
* format.
* IF the topicRunningHashVersion is '0' or '1', then the input data to the SHA-384 digest are, in order:
* ---
* 1. The previous running hash of the topic (48 bytes)
* 2. The topic's shard (8 bytes)
* 3. The topic's realm (8 bytes)
* 4. The topic's number (8 bytes)
* 5. The number of seconds since the epoch before the ConsensusSubmitMessage reached consensus (8 bytes)
* 6. The number of nanoseconds since 5. before the ConsensusSubmitMessage reached consensus (4 bytes)
* 7. The topicSequenceNumber from above (8 bytes)
* 8. The message bytes from the ConsensusSubmitMessage (variable).
* IF the topicRunningHashVersion is '2', then the input data to the SHA-384 digest are, in order:
* ---
* 1. The previous running hash of the topic (48 bytes)
* 2. The topicRunningHashVersion below (8 bytes)
* 3. The topic's shard (8 bytes)
* 4. The topic's realm (8 bytes)
* 5. The topic's number (8 bytes)
* 6. The number of seconds since the epoch before the ConsensusSubmitMessage reached consensus (8 bytes)
* 7. The number of nanoseconds since 6. before the ConsensusSubmitMessage reached consensus (4 bytes)
* 8. The topicSequenceNumber from above (8 bytes)
* 9. The output of the SHA-384 digest of the message bytes from the consensusSubmitMessage (48 bytes)
* Otherwise, IF the topicRunningHashVersion is '3', then the input data to the SHA-384 digest are, in order:
* ---
* 1. The previous running hash of the topic (48 bytes)
* 2. The topicRunningHashVersion below (8 bytes)
* 3. The payer account's shard (8 bytes)
* 4. The payer account's realm (8 bytes)
* 5. The payer account's number (8 bytes)
* 6. The topic's shard (8 bytes)
* 7. The topic's realm (8 bytes)
* 8. The topic's number (8 bytes)
* 9. The number of seconds since the epoch before the ConsensusSubmitMessage reached consensus (8 bytes)
* 10. The number of nanoseconds since 9. before the ConsensusSubmitMessage reached consensus (4 bytes)
* 11. The topicSequenceNumber from above (8 bytes)
* 12. The output of the SHA-384 digest of the message bytes from the consensusSubmitMessage (48 bytes)
*
*
* bytes topicRunningHash = 8;
*/
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.
* This 48-byte field is the output of a particular SHA-384 digest whose input data are determined by the
* value of the topicRunningHashVersion below. The bytes of each uint64 or uint32 are to be in Big-Endian
* format.
* IF the topicRunningHashVersion is '0' or '1', then the input data to the SHA-384 digest are, in order:
* ---
* 1. The previous running hash of the topic (48 bytes)
* 2. The topic's shard (8 bytes)
* 3. The topic's realm (8 bytes)
* 4. The topic's number (8 bytes)
* 5. The number of seconds since the epoch before the ConsensusSubmitMessage reached consensus (8 bytes)
* 6. The number of nanoseconds since 5. before the ConsensusSubmitMessage reached consensus (4 bytes)
* 7. The topicSequenceNumber from above (8 bytes)
* 8. The message bytes from the ConsensusSubmitMessage (variable).
* IF the topicRunningHashVersion is '2', then the input data to the SHA-384 digest are, in order:
* ---
* 1. The previous running hash of the topic (48 bytes)
* 2. The topicRunningHashVersion below (8 bytes)
* 3. The topic's shard (8 bytes)
* 4. The topic's realm (8 bytes)
* 5. The topic's number (8 bytes)
* 6. The number of seconds since the epoch before the ConsensusSubmitMessage reached consensus (8 bytes)
* 7. The number of nanoseconds since 6. before the ConsensusSubmitMessage reached consensus (4 bytes)
* 8. The topicSequenceNumber from above (8 bytes)
* 9. The output of the SHA-384 digest of the message bytes from the consensusSubmitMessage (48 bytes)
* Otherwise, IF the topicRunningHashVersion is '3', then the input data to the SHA-384 digest are, in order:
* ---
* 1. The previous running hash of the topic (48 bytes)
* 2. The topicRunningHashVersion below (8 bytes)
* 3. The payer account's shard (8 bytes)
* 4. The payer account's realm (8 bytes)
* 5. The payer account's number (8 bytes)
* 6. The topic's shard (8 bytes)
* 7. The topic's realm (8 bytes)
* 8. The topic's number (8 bytes)
* 9. The number of seconds since the epoch before the ConsensusSubmitMessage reached consensus (8 bytes)
* 10. The number of nanoseconds since 9. before the ConsensusSubmitMessage reached consensus (4 bytes)
* 11. The topicSequenceNumber from above (8 bytes)
* 12. The output of the SHA-384 digest of the message bytes from the consensusSubmitMessage (48 bytes)
*
*
* bytes topicRunningHash = 8;
*/
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.
* This 48-byte field is the output of a particular SHA-384 digest whose input data are determined by the
* value of the topicRunningHashVersion below. The bytes of each uint64 or uint32 are to be in Big-Endian
* format.
* IF the topicRunningHashVersion is '0' or '1', then the input data to the SHA-384 digest are, in order:
* ---
* 1. The previous running hash of the topic (48 bytes)
* 2. The topic's shard (8 bytes)
* 3. The topic's realm (8 bytes)
* 4. The topic's number (8 bytes)
* 5. The number of seconds since the epoch before the ConsensusSubmitMessage reached consensus (8 bytes)
* 6. The number of nanoseconds since 5. before the ConsensusSubmitMessage reached consensus (4 bytes)
* 7. The topicSequenceNumber from above (8 bytes)
* 8. The message bytes from the ConsensusSubmitMessage (variable).
* IF the topicRunningHashVersion is '2', then the input data to the SHA-384 digest are, in order:
* ---
* 1. The previous running hash of the topic (48 bytes)
* 2. The topicRunningHashVersion below (8 bytes)
* 3. The topic's shard (8 bytes)
* 4. The topic's realm (8 bytes)
* 5. The topic's number (8 bytes)
* 6. The number of seconds since the epoch before the ConsensusSubmitMessage reached consensus (8 bytes)
* 7. The number of nanoseconds since 6. before the ConsensusSubmitMessage reached consensus (4 bytes)
* 8. The topicSequenceNumber from above (8 bytes)
* 9. The output of the SHA-384 digest of the message bytes from the consensusSubmitMessage (48 bytes)
* Otherwise, IF the topicRunningHashVersion is '3', then the input data to the SHA-384 digest are, in order:
* ---
* 1. The previous running hash of the topic (48 bytes)
* 2. The topicRunningHashVersion below (8 bytes)
* 3. The payer account's shard (8 bytes)
* 4. The payer account's realm (8 bytes)
* 5. The payer account's number (8 bytes)
* 6. The topic's shard (8 bytes)
* 7. The topic's realm (8 bytes)
* 8. The topic's number (8 bytes)
* 9. The number of seconds since the epoch before the ConsensusSubmitMessage reached consensus (8 bytes)
* 10. The number of nanoseconds since 9. before the ConsensusSubmitMessage reached consensus (4 bytes)
* 11. The topicSequenceNumber from above (8 bytes)
* 12. The output of the SHA-384 digest of the message bytes from the consensusSubmitMessage (48 bytes)
*
*
* bytes topicRunningHash = 8;
*/
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;
*/
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;
*/
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;
*/
public Builder clearTopicRunningHashVersion() {
topicRunningHashVersion_ = 0L;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.TokenID tokenId_ = null;
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;
*/
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;
*/
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_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
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() {
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;
}
public com.hederahashgraph.api.proto.java.TransactionReceipt getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy