com.hederahashgraph.api.proto.java.TransactionReceiptEntry Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: state/recordcache/recordcache.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* An entry in the record cache with the receipt for a transaction.
* This is the entry stored in state that enables returning the receipt
* information when queried by clients.
* When a transaction is handled a receipt SHALL be created.<br/>
* This receipt MUST be stored in state for a configured time limit
* (e.g. 3 minutes).<br/>
* While a receipt is stored, a client MAY query the node and retrieve
* the receipt.
*
*
* Protobuf type {@code proto.TransactionReceiptEntry}
*/
public final class TransactionReceiptEntry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.TransactionReceiptEntry)
TransactionReceiptEntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionReceiptEntry.newBuilder() to construct.
private TransactionReceiptEntry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionReceiptEntry() {
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionReceiptEntry();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionReceiptEntry(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
nodeId_ = input.readUInt64();
break;
}
case 18: {
com.hederahashgraph.api.proto.java.TransactionID.Builder subBuilder = null;
if (transactionId_ != null) {
subBuilder = transactionId_.toBuilder();
}
transactionId_ = input.readMessage(com.hederahashgraph.api.proto.java.TransactionID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(transactionId_);
transactionId_ = subBuilder.buildPartial();
}
break;
}
case 24: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.Recordcache.internal_static_proto_TransactionReceiptEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.Recordcache.internal_static_proto_TransactionReceiptEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.TransactionReceiptEntry.class, com.hederahashgraph.api.proto.java.TransactionReceiptEntry.Builder.class);
}
public static final int NODE_ID_FIELD_NUMBER = 1;
private long nodeId_;
/**
*
**
* A node identifier.<br/>
* This identifies the node that submitted the transaction to consensus.
* The value is the identifier as known to the current address book.
* <p>
* Valid node identifiers SHALL be between 0 and <tt>2<sup>63-1</sup></tt>,
* inclusive.
*
*
* uint64 node_id = 1;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
public static final int TRANSACTION_ID_FIELD_NUMBER = 2;
private com.hederahashgraph.api.proto.java.TransactionID transactionId_;
/**
*
**
* A transaction identifier.<br/>
* This identifies the submitted transaction for this receipt.
*
*
* .proto.TransactionID transaction_id = 2;
* @return Whether the transactionId field is set.
*/
@java.lang.Override
public boolean hasTransactionId() {
return transactionId_ != null;
}
/**
*
**
* A transaction identifier.<br/>
* This identifies the submitted transaction for this receipt.
*
*
* .proto.TransactionID transaction_id = 2;
* @return The transactionId.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionID getTransactionId() {
return transactionId_ == null ? com.hederahashgraph.api.proto.java.TransactionID.getDefaultInstance() : transactionId_;
}
/**
*
**
* A transaction identifier.<br/>
* This identifies the submitted transaction for this receipt.
*
*
* .proto.TransactionID transaction_id = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionIDOrBuilder getTransactionIdOrBuilder() {
return getTransactionId();
}
public static final int STATUS_FIELD_NUMBER = 3;
private int status_;
/**
*
**
* A status result.<br/>
* This is the final status after handling the transaction.
*
*
* .proto.ResponseCodeEnum status = 3;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
**
* A status result.<br/>
* This is the final status after handling the transaction.
*
*
* .proto.ResponseCodeEnum status = 3;
* @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;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (nodeId_ != 0L) {
output.writeUInt64(1, nodeId_);
}
if (transactionId_ != null) {
output.writeMessage(2, getTransactionId());
}
if (status_ != com.hederahashgraph.api.proto.java.ResponseCodeEnum.OK.getNumber()) {
output.writeEnum(3, status_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nodeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, nodeId_);
}
if (transactionId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTransactionId());
}
if (status_ != com.hederahashgraph.api.proto.java.ResponseCodeEnum.OK.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, status_);
}
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.TransactionReceiptEntry)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.TransactionReceiptEntry other = (com.hederahashgraph.api.proto.java.TransactionReceiptEntry) obj;
if (getNodeId()
!= other.getNodeId()) return false;
if (hasTransactionId() != other.hasTransactionId()) return false;
if (hasTransactionId()) {
if (!getTransactionId()
.equals(other.getTransactionId())) return false;
}
if (status_ != other.status_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNodeId());
if (hasTransactionId()) {
hash = (37 * hash) + TRANSACTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().hashCode();
}
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.TransactionReceiptEntry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TransactionReceiptEntry 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.TransactionReceiptEntry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TransactionReceiptEntry 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.TransactionReceiptEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TransactionReceiptEntry 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.TransactionReceiptEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.TransactionReceiptEntry 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.TransactionReceiptEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.TransactionReceiptEntry 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.TransactionReceiptEntry 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.TransactionReceiptEntry parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hederahashgraph.api.proto.java.TransactionReceiptEntry prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* An entry in the record cache with the receipt for a transaction.
* This is the entry stored in state that enables returning the receipt
* information when queried by clients.
* When a transaction is handled a receipt SHALL be created.<br/>
* This receipt MUST be stored in state for a configured time limit
* (e.g. 3 minutes).<br/>
* While a receipt is stored, a client MAY query the node and retrieve
* the receipt.
*
*
* Protobuf type {@code proto.TransactionReceiptEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.TransactionReceiptEntry)
com.hederahashgraph.api.proto.java.TransactionReceiptEntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.Recordcache.internal_static_proto_TransactionReceiptEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.Recordcache.internal_static_proto_TransactionReceiptEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.TransactionReceiptEntry.class, com.hederahashgraph.api.proto.java.TransactionReceiptEntry.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.TransactionReceiptEntry.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();
nodeId_ = 0L;
if (transactionIdBuilder_ == null) {
transactionId_ = null;
} else {
transactionId_ = null;
transactionIdBuilder_ = null;
}
status_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.Recordcache.internal_static_proto_TransactionReceiptEntry_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionReceiptEntry getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.TransactionReceiptEntry.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionReceiptEntry build() {
com.hederahashgraph.api.proto.java.TransactionReceiptEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionReceiptEntry buildPartial() {
com.hederahashgraph.api.proto.java.TransactionReceiptEntry result = new com.hederahashgraph.api.proto.java.TransactionReceiptEntry(this);
result.nodeId_ = nodeId_;
if (transactionIdBuilder_ == null) {
result.transactionId_ = transactionId_;
} else {
result.transactionId_ = transactionIdBuilder_.build();
}
result.status_ = status_;
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.TransactionReceiptEntry) {
return mergeFrom((com.hederahashgraph.api.proto.java.TransactionReceiptEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.TransactionReceiptEntry other) {
if (other == com.hederahashgraph.api.proto.java.TransactionReceiptEntry.getDefaultInstance()) return this;
if (other.getNodeId() != 0L) {
setNodeId(other.getNodeId());
}
if (other.hasTransactionId()) {
mergeTransactionId(other.getTransactionId());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
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.TransactionReceiptEntry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.TransactionReceiptEntry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long nodeId_ ;
/**
*
**
* A node identifier.<br/>
* This identifies the node that submitted the transaction to consensus.
* The value is the identifier as known to the current address book.
* <p>
* Valid node identifiers SHALL be between 0 and <tt>2<sup>63-1</sup></tt>,
* inclusive.
*
*
* uint64 node_id = 1;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
/**
*
**
* A node identifier.<br/>
* This identifies the node that submitted the transaction to consensus.
* The value is the identifier as known to the current address book.
* <p>
* Valid node identifiers SHALL be between 0 and <tt>2<sup>63-1</sup></tt>,
* inclusive.
*
*
* uint64 node_id = 1;
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(long value) {
nodeId_ = value;
onChanged();
return this;
}
/**
*
**
* A node identifier.<br/>
* This identifies the node that submitted the transaction to consensus.
* The value is the identifier as known to the current address book.
* <p>
* Valid node identifiers SHALL be between 0 and <tt>2<sup>63-1</sup></tt>,
* inclusive.
*
*
* uint64 node_id = 1;
* @return This builder for chaining.
*/
public Builder clearNodeId() {
nodeId_ = 0L;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.TransactionID transactionId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionID, com.hederahashgraph.api.proto.java.TransactionID.Builder, com.hederahashgraph.api.proto.java.TransactionIDOrBuilder> transactionIdBuilder_;
/**
*
**
* A transaction identifier.<br/>
* This identifies the submitted transaction for this receipt.
*
*
* .proto.TransactionID transaction_id = 2;
* @return Whether the transactionId field is set.
*/
public boolean hasTransactionId() {
return transactionIdBuilder_ != null || transactionId_ != null;
}
/**
*
**
* A transaction identifier.<br/>
* This identifies the submitted transaction for this receipt.
*
*
* .proto.TransactionID transaction_id = 2;
* @return The transactionId.
*/
public com.hederahashgraph.api.proto.java.TransactionID getTransactionId() {
if (transactionIdBuilder_ == null) {
return transactionId_ == null ? com.hederahashgraph.api.proto.java.TransactionID.getDefaultInstance() : transactionId_;
} else {
return transactionIdBuilder_.getMessage();
}
}
/**
*
**
* A transaction identifier.<br/>
* This identifies the submitted transaction for this receipt.
*
*
* .proto.TransactionID transaction_id = 2;
*/
public Builder setTransactionId(com.hederahashgraph.api.proto.java.TransactionID value) {
if (transactionIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transactionId_ = value;
onChanged();
} else {
transactionIdBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* A transaction identifier.<br/>
* This identifies the submitted transaction for this receipt.
*
*
* .proto.TransactionID transaction_id = 2;
*/
public Builder setTransactionId(
com.hederahashgraph.api.proto.java.TransactionID.Builder builderForValue) {
if (transactionIdBuilder_ == null) {
transactionId_ = builderForValue.build();
onChanged();
} else {
transactionIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* A transaction identifier.<br/>
* This identifies the submitted transaction for this receipt.
*
*
* .proto.TransactionID transaction_id = 2;
*/
public Builder mergeTransactionId(com.hederahashgraph.api.proto.java.TransactionID value) {
if (transactionIdBuilder_ == null) {
if (transactionId_ != null) {
transactionId_ =
com.hederahashgraph.api.proto.java.TransactionID.newBuilder(transactionId_).mergeFrom(value).buildPartial();
} else {
transactionId_ = value;
}
onChanged();
} else {
transactionIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* A transaction identifier.<br/>
* This identifies the submitted transaction for this receipt.
*
*
* .proto.TransactionID transaction_id = 2;
*/
public Builder clearTransactionId() {
if (transactionIdBuilder_ == null) {
transactionId_ = null;
onChanged();
} else {
transactionId_ = null;
transactionIdBuilder_ = null;
}
return this;
}
/**
*
**
* A transaction identifier.<br/>
* This identifies the submitted transaction for this receipt.
*
*
* .proto.TransactionID transaction_id = 2;
*/
public com.hederahashgraph.api.proto.java.TransactionID.Builder getTransactionIdBuilder() {
onChanged();
return getTransactionIdFieldBuilder().getBuilder();
}
/**
*
**
* A transaction identifier.<br/>
* This identifies the submitted transaction for this receipt.
*
*
* .proto.TransactionID transaction_id = 2;
*/
public com.hederahashgraph.api.proto.java.TransactionIDOrBuilder getTransactionIdOrBuilder() {
if (transactionIdBuilder_ != null) {
return transactionIdBuilder_.getMessageOrBuilder();
} else {
return transactionId_ == null ?
com.hederahashgraph.api.proto.java.TransactionID.getDefaultInstance() : transactionId_;
}
}
/**
*
**
* A transaction identifier.<br/>
* This identifies the submitted transaction for this receipt.
*
*
* .proto.TransactionID transaction_id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionID, com.hederahashgraph.api.proto.java.TransactionID.Builder, com.hederahashgraph.api.proto.java.TransactionIDOrBuilder>
getTransactionIdFieldBuilder() {
if (transactionIdBuilder_ == null) {
transactionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionID, com.hederahashgraph.api.proto.java.TransactionID.Builder, com.hederahashgraph.api.proto.java.TransactionIDOrBuilder>(
getTransactionId(),
getParentForChildren(),
isClean());
transactionId_ = null;
}
return transactionIdBuilder_;
}
private int status_ = 0;
/**
*
**
* A status result.<br/>
* This is the final status after handling the transaction.
*
*
* .proto.ResponseCodeEnum status = 3;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
**
* A status result.<br/>
* This is the final status after handling the transaction.
*
*
* .proto.ResponseCodeEnum status = 3;
* @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;
}
/**
*
**
* A status result.<br/>
* This is the final status after handling the transaction.
*
*
* .proto.ResponseCodeEnum status = 3;
* @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;
}
/**
*
**
* A status result.<br/>
* This is the final status after handling the transaction.
*
*
* .proto.ResponseCodeEnum status = 3;
* @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;
}
/**
*
**
* A status result.<br/>
* This is the final status after handling the transaction.
*
*
* .proto.ResponseCodeEnum status = 3;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
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.TransactionReceiptEntry)
}
// @@protoc_insertion_point(class_scope:proto.TransactionReceiptEntry)
private static final com.hederahashgraph.api.proto.java.TransactionReceiptEntry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.TransactionReceiptEntry();
}
public static com.hederahashgraph.api.proto.java.TransactionReceiptEntry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionReceiptEntry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionReceiptEntry(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.TransactionReceiptEntry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy