com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: recordcache.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* As a single transaction is handled a receipt is created. It is stored in state for a configured time
* limit (perhaps, for example, 3 minutes). During this time window, any client can query the node and get the
* receipt for the transaction. The TransactionReceiptEntry is the object stored in state with this information.
*
*
* 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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.Recordcache.internal_static_proto_TransactionReceiptEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.Recordcache.internal_static_proto_TransactionReceiptEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry.class, com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry.Builder.class);
}
private int bitField0_;
public static final int NODE_ID_FIELD_NUMBER = 1;
private long nodeId_ = 0L;
/**
*
**
* The ID of the node that submitted the transaction to consensus. The ID is the ID of the node as known by the
* address book. Valid node IDs are in the range 0..2^63-1, 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.hedera.hashgraph.sdk.proto.TransactionID transactionId_;
/**
*
**
* The id of the submitted transaction.
*
*
* .proto.TransactionID transaction_id = 2;
* @return Whether the transactionId field is set.
*/
@java.lang.Override
public boolean hasTransactionId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The id of the submitted transaction.
*
*
* .proto.TransactionID transaction_id = 2;
* @return The transactionId.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionID getTransactionId() {
return transactionId_ == null ? com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance() : transactionId_;
}
/**
*
**
* The id of the submitted transaction.
*
*
* .proto.TransactionID transaction_id = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder getTransactionIdOrBuilder() {
return transactionId_ == null ? com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance() : transactionId_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private int status_ = 0;
/**
*
**
* The resulting status of 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_;
}
/**
*
**
* The resulting status of handling the transaction.
*
*
* .proto.ResponseCodeEnum status = 3;
* @return The status.
*/
@java.lang.Override public com.hedera.hashgraph.sdk.proto.ResponseCodeEnum getStatus() {
com.hedera.hashgraph.sdk.proto.ResponseCodeEnum result = com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.forNumber(status_);
return result == null ? com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.UNRECOGNIZED : result;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getTransactionId());
}
if (status_ != com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.OK.getNumber()) {
output.writeEnum(3, status_);
}
getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTransactionId());
}
if (status_ != com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.OK.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, status_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry other = (com.hedera.hashgraph.sdk.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TransactionReceiptEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TransactionReceiptEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TransactionReceiptEntry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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;
}
/**
*
**
* As a single transaction is handled a receipt is created. It is stored in state for a configured time
* limit (perhaps, for example, 3 minutes). During this time window, any client can query the node and get the
* receipt for the transaction. The TransactionReceiptEntry is the object stored in state with this information.
*
*
* 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.hedera.hashgraph.sdk.proto.TransactionReceiptEntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.Recordcache.internal_static_proto_TransactionReceiptEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.Recordcache.internal_static_proto_TransactionReceiptEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry.class, com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.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) {
getTransactionIdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
nodeId_ = 0L;
transactionId_ = null;
if (transactionIdBuilder_ != null) {
transactionIdBuilder_.dispose();
transactionIdBuilder_ = null;
}
status_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.Recordcache.internal_static_proto_TransactionReceiptEntry_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry build() {
com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry buildPartial() {
com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry result = new com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.nodeId_ = nodeId_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.transactionId_ = transactionIdBuilder_ == null
? transactionId_
: transactionIdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.status_ = status_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry other) {
if (other == com.hedera.hashgraph.sdk.proto.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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
nodeId_ = input.readUInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getTransactionIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
status_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long nodeId_ ;
/**
*
**
* The ID of the node that submitted the transaction to consensus. The ID is the ID of the node as known by the
* address book. Valid node IDs are in the range 0..2^63-1, inclusive.
*
*
* uint64 node_id = 1;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
/**
*
**
* The ID of the node that submitted the transaction to consensus. The ID is the ID of the node as known by the
* address book. Valid node IDs are in the range 0..2^63-1, inclusive.
*
*
* uint64 node_id = 1;
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(long value) {
nodeId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The ID of the node that submitted the transaction to consensus. The ID is the ID of the node as known by the
* address book. Valid node IDs are in the range 0..2^63-1, inclusive.
*
*
* uint64 node_id = 1;
* @return This builder for chaining.
*/
public Builder clearNodeId() {
bitField0_ = (bitField0_ & ~0x00000001);
nodeId_ = 0L;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.TransactionID transactionId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionID, com.hedera.hashgraph.sdk.proto.TransactionID.Builder, com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder> transactionIdBuilder_;
/**
*
**
* The id of the submitted transaction.
*
*
* .proto.TransactionID transaction_id = 2;
* @return Whether the transactionId field is set.
*/
public boolean hasTransactionId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The id of the submitted transaction.
*
*
* .proto.TransactionID transaction_id = 2;
* @return The transactionId.
*/
public com.hedera.hashgraph.sdk.proto.TransactionID getTransactionId() {
if (transactionIdBuilder_ == null) {
return transactionId_ == null ? com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance() : transactionId_;
} else {
return transactionIdBuilder_.getMessage();
}
}
/**
*
**
* The id of the submitted transaction.
*
*
* .proto.TransactionID transaction_id = 2;
*/
public Builder setTransactionId(com.hedera.hashgraph.sdk.proto.TransactionID value) {
if (transactionIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transactionId_ = value;
} else {
transactionIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The id of the submitted transaction.
*
*
* .proto.TransactionID transaction_id = 2;
*/
public Builder setTransactionId(
com.hedera.hashgraph.sdk.proto.TransactionID.Builder builderForValue) {
if (transactionIdBuilder_ == null) {
transactionId_ = builderForValue.build();
} else {
transactionIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The id of the submitted transaction.
*
*
* .proto.TransactionID transaction_id = 2;
*/
public Builder mergeTransactionId(com.hedera.hashgraph.sdk.proto.TransactionID value) {
if (transactionIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
transactionId_ != null &&
transactionId_ != com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance()) {
getTransactionIdBuilder().mergeFrom(value);
} else {
transactionId_ = value;
}
} else {
transactionIdBuilder_.mergeFrom(value);
}
if (transactionId_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* The id of the submitted transaction.
*
*
* .proto.TransactionID transaction_id = 2;
*/
public Builder clearTransactionId() {
bitField0_ = (bitField0_ & ~0x00000002);
transactionId_ = null;
if (transactionIdBuilder_ != null) {
transactionIdBuilder_.dispose();
transactionIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The id of the submitted transaction.
*
*
* .proto.TransactionID transaction_id = 2;
*/
public com.hedera.hashgraph.sdk.proto.TransactionID.Builder getTransactionIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTransactionIdFieldBuilder().getBuilder();
}
/**
*
**
* The id of the submitted transaction.
*
*
* .proto.TransactionID transaction_id = 2;
*/
public com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder getTransactionIdOrBuilder() {
if (transactionIdBuilder_ != null) {
return transactionIdBuilder_.getMessageOrBuilder();
} else {
return transactionId_ == null ?
com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance() : transactionId_;
}
}
/**
*
**
* The id of the submitted transaction.
*
*
* .proto.TransactionID transaction_id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionID, com.hedera.hashgraph.sdk.proto.TransactionID.Builder, com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder>
getTransactionIdFieldBuilder() {
if (transactionIdBuilder_ == null) {
transactionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionID, com.hedera.hashgraph.sdk.proto.TransactionID.Builder, com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder>(
getTransactionId(),
getParentForChildren(),
isClean());
transactionId_ = null;
}
return transactionIdBuilder_;
}
private int status_ = 0;
/**
*
**
* The resulting status of 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_;
}
/**
*
**
* The resulting status of 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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The resulting status of handling the transaction.
*
*
* .proto.ResponseCodeEnum status = 3;
* @return The status.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ResponseCodeEnum getStatus() {
com.hedera.hashgraph.sdk.proto.ResponseCodeEnum result = com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.forNumber(status_);
return result == null ? com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.UNRECOGNIZED : result;
}
/**
*
**
* The resulting status of handling the transaction.
*
*
* .proto.ResponseCodeEnum status = 3;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.hedera.hashgraph.sdk.proto.ResponseCodeEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* The resulting status of handling the transaction.
*
*
* .proto.ResponseCodeEnum status = 3;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
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.hedera.hashgraph.sdk.proto.TransactionReceiptEntry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry();
}
public static com.hedera.hashgraph.sdk.proto.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}