All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.TransactionRecordEntry Maven / Gradle / Ivy

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 transactions are handled and records and receipts are created, they are 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 record
 * or receipt for the transaction. The TransactionRecordEntry is the object stored in state with this information.
 * 
* * Protobuf type {@code proto.TransactionRecordEntry} */ public final class TransactionRecordEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.TransactionRecordEntry) TransactionRecordEntryOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionRecordEntry.newBuilder() to construct. private TransactionRecordEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionRecordEntry() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionRecordEntry(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.Recordcache.internal_static_proto_TransactionRecordEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.Recordcache.internal_static_proto_TransactionRecordEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.TransactionRecordEntry.class, com.hedera.hashgraph.sdk.proto.TransactionRecordEntry.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.
   * 
* * int64 node_id = 1; * @return The nodeId. */ @java.lang.Override public long getNodeId() { return nodeId_; } public static final int PAYER_ACCOUNT_ID_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.AccountID payerAccountId_; /** *
   **
   * The AccountID of the payer of the transaction. This may be the same as the account ID within the Transaction ID
   * of the record, or it may be the account ID of the node that submitted the transaction to consensus if the account
   * ID in the Transaction ID is not able to pay.
   * 
* * .proto.AccountID payer_account_id = 2; * @return Whether the payerAccountId field is set. */ @java.lang.Override public boolean hasPayerAccountId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The AccountID of the payer of the transaction. This may be the same as the account ID within the Transaction ID
   * of the record, or it may be the account ID of the node that submitted the transaction to consensus if the account
   * ID in the Transaction ID is not able to pay.
   * 
* * .proto.AccountID payer_account_id = 2; * @return The payerAccountId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getPayerAccountId() { return payerAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : payerAccountId_; } /** *
   **
   * The AccountID of the payer of the transaction. This may be the same as the account ID within the Transaction ID
   * of the record, or it may be the account ID of the node that submitted the transaction to consensus if the account
   * ID in the Transaction ID is not able to pay.
   * 
* * .proto.AccountID payer_account_id = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getPayerAccountIdOrBuilder() { return payerAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : payerAccountId_; } public static final int TRANSACTION_RECORD_FIELD_NUMBER = 3; private com.hedera.hashgraph.sdk.proto.TransactionRecord transactionRecord_; /** *
   **
   * The transaction record for the transaction.
   * 
* * .proto.TransactionRecord transaction_record = 3; * @return Whether the transactionRecord field is set. */ @java.lang.Override public boolean hasTransactionRecord() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * The transaction record for the transaction.
   * 
* * .proto.TransactionRecord transaction_record = 3; * @return The transactionRecord. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TransactionRecord getTransactionRecord() { return transactionRecord_ == null ? com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance() : transactionRecord_; } /** *
   **
   * The transaction record for the transaction.
   * 
* * .proto.TransactionRecord transaction_record = 3; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder getTransactionRecordOrBuilder() { return transactionRecord_ == null ? com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance() : transactionRecord_; } 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.writeInt64(1, nodeId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPayerAccountId()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getTransactionRecord()); } 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 .computeInt64Size(1, nodeId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPayerAccountId()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTransactionRecord()); } 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.TransactionRecordEntry)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.TransactionRecordEntry other = (com.hedera.hashgraph.sdk.proto.TransactionRecordEntry) obj; if (getNodeId() != other.getNodeId()) return false; if (hasPayerAccountId() != other.hasPayerAccountId()) return false; if (hasPayerAccountId()) { if (!getPayerAccountId() .equals(other.getPayerAccountId())) return false; } if (hasTransactionRecord() != other.hasTransactionRecord()) return false; if (hasTransactionRecord()) { if (!getTransactionRecord() .equals(other.getTransactionRecord())) 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 (hasPayerAccountId()) { hash = (37 * hash) + PAYER_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getPayerAccountId().hashCode(); } if (hasTransactionRecord()) { hash = (37 * hash) + TRANSACTION_RECORD_FIELD_NUMBER; hash = (53 * hash) + getTransactionRecord().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.TransactionRecordEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.TransactionRecordEntry 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.TransactionRecordEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.TransactionRecordEntry 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.TransactionRecordEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.TransactionRecordEntry 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.TransactionRecordEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.TransactionRecordEntry 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.TransactionRecordEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.TransactionRecordEntry 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.TransactionRecordEntry 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.TransactionRecordEntry 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.TransactionRecordEntry 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 transactions are handled and records and receipts are created, they are 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 record
   * or receipt for the transaction. The TransactionRecordEntry is the object stored in state with this information.
   * 
* * Protobuf type {@code proto.TransactionRecordEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.TransactionRecordEntry) com.hedera.hashgraph.sdk.proto.TransactionRecordEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.Recordcache.internal_static_proto_TransactionRecordEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.Recordcache.internal_static_proto_TransactionRecordEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.TransactionRecordEntry.class, com.hedera.hashgraph.sdk.proto.TransactionRecordEntry.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.TransactionRecordEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPayerAccountIdFieldBuilder(); getTransactionRecordFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; nodeId_ = 0L; payerAccountId_ = null; if (payerAccountIdBuilder_ != null) { payerAccountIdBuilder_.dispose(); payerAccountIdBuilder_ = null; } transactionRecord_ = null; if (transactionRecordBuilder_ != null) { transactionRecordBuilder_.dispose(); transactionRecordBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.Recordcache.internal_static_proto_TransactionRecordEntry_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TransactionRecordEntry getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.TransactionRecordEntry.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TransactionRecordEntry build() { com.hedera.hashgraph.sdk.proto.TransactionRecordEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TransactionRecordEntry buildPartial() { com.hedera.hashgraph.sdk.proto.TransactionRecordEntry result = new com.hedera.hashgraph.sdk.proto.TransactionRecordEntry(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.TransactionRecordEntry result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.nodeId_ = nodeId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.payerAccountId_ = payerAccountIdBuilder_ == null ? payerAccountId_ : payerAccountIdBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.transactionRecord_ = transactionRecordBuilder_ == null ? transactionRecord_ : transactionRecordBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.TransactionRecordEntry) { return mergeFrom((com.hedera.hashgraph.sdk.proto.TransactionRecordEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.TransactionRecordEntry other) { if (other == com.hedera.hashgraph.sdk.proto.TransactionRecordEntry.getDefaultInstance()) return this; if (other.getNodeId() != 0L) { setNodeId(other.getNodeId()); } if (other.hasPayerAccountId()) { mergePayerAccountId(other.getPayerAccountId()); } if (other.hasTransactionRecord()) { mergeTransactionRecord(other.getTransactionRecord()); } 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.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getPayerAccountIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getTransactionRecordFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 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.
     * 
* * int64 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.
     * 
* * int64 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.
     * 
* * int64 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.AccountID payerAccountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> payerAccountIdBuilder_; /** *
     **
     * The AccountID of the payer of the transaction. This may be the same as the account ID within the Transaction ID
     * of the record, or it may be the account ID of the node that submitted the transaction to consensus if the account
     * ID in the Transaction ID is not able to pay.
     * 
* * .proto.AccountID payer_account_id = 2; * @return Whether the payerAccountId field is set. */ public boolean hasPayerAccountId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * The AccountID of the payer of the transaction. This may be the same as the account ID within the Transaction ID
     * of the record, or it may be the account ID of the node that submitted the transaction to consensus if the account
     * ID in the Transaction ID is not able to pay.
     * 
* * .proto.AccountID payer_account_id = 2; * @return The payerAccountId. */ public com.hedera.hashgraph.sdk.proto.AccountID getPayerAccountId() { if (payerAccountIdBuilder_ == null) { return payerAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : payerAccountId_; } else { return payerAccountIdBuilder_.getMessage(); } } /** *
     **
     * The AccountID of the payer of the transaction. This may be the same as the account ID within the Transaction ID
     * of the record, or it may be the account ID of the node that submitted the transaction to consensus if the account
     * ID in the Transaction ID is not able to pay.
     * 
* * .proto.AccountID payer_account_id = 2; */ public Builder setPayerAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (payerAccountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payerAccountId_ = value; } else { payerAccountIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The AccountID of the payer of the transaction. This may be the same as the account ID within the Transaction ID
     * of the record, or it may be the account ID of the node that submitted the transaction to consensus if the account
     * ID in the Transaction ID is not able to pay.
     * 
* * .proto.AccountID payer_account_id = 2; */ public Builder setPayerAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (payerAccountIdBuilder_ == null) { payerAccountId_ = builderForValue.build(); } else { payerAccountIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The AccountID of the payer of the transaction. This may be the same as the account ID within the Transaction ID
     * of the record, or it may be the account ID of the node that submitted the transaction to consensus if the account
     * ID in the Transaction ID is not able to pay.
     * 
* * .proto.AccountID payer_account_id = 2; */ public Builder mergePayerAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (payerAccountIdBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && payerAccountId_ != null && payerAccountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getPayerAccountIdBuilder().mergeFrom(value); } else { payerAccountId_ = value; } } else { payerAccountIdBuilder_.mergeFrom(value); } if (payerAccountId_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * The AccountID of the payer of the transaction. This may be the same as the account ID within the Transaction ID
     * of the record, or it may be the account ID of the node that submitted the transaction to consensus if the account
     * ID in the Transaction ID is not able to pay.
     * 
* * .proto.AccountID payer_account_id = 2; */ public Builder clearPayerAccountId() { bitField0_ = (bitField0_ & ~0x00000002); payerAccountId_ = null; if (payerAccountIdBuilder_ != null) { payerAccountIdBuilder_.dispose(); payerAccountIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The AccountID of the payer of the transaction. This may be the same as the account ID within the Transaction ID
     * of the record, or it may be the account ID of the node that submitted the transaction to consensus if the account
     * ID in the Transaction ID is not able to pay.
     * 
* * .proto.AccountID payer_account_id = 2; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getPayerAccountIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPayerAccountIdFieldBuilder().getBuilder(); } /** *
     **
     * The AccountID of the payer of the transaction. This may be the same as the account ID within the Transaction ID
     * of the record, or it may be the account ID of the node that submitted the transaction to consensus if the account
     * ID in the Transaction ID is not able to pay.
     * 
* * .proto.AccountID payer_account_id = 2; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getPayerAccountIdOrBuilder() { if (payerAccountIdBuilder_ != null) { return payerAccountIdBuilder_.getMessageOrBuilder(); } else { return payerAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : payerAccountId_; } } /** *
     **
     * The AccountID of the payer of the transaction. This may be the same as the account ID within the Transaction ID
     * of the record, or it may be the account ID of the node that submitted the transaction to consensus if the account
     * ID in the Transaction ID is not able to pay.
     * 
* * .proto.AccountID payer_account_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getPayerAccountIdFieldBuilder() { if (payerAccountIdBuilder_ == null) { payerAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getPayerAccountId(), getParentForChildren(), isClean()); payerAccountId_ = null; } return payerAccountIdBuilder_; } private com.hedera.hashgraph.sdk.proto.TransactionRecord transactionRecord_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TransactionRecord, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder, com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder> transactionRecordBuilder_; /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; * @return Whether the transactionRecord field is set. */ public boolean hasTransactionRecord() { return ((bitField0_ & 0x00000004) != 0); } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; * @return The transactionRecord. */ public com.hedera.hashgraph.sdk.proto.TransactionRecord getTransactionRecord() { if (transactionRecordBuilder_ == null) { return transactionRecord_ == null ? com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance() : transactionRecord_; } else { return transactionRecordBuilder_.getMessage(); } } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ public Builder setTransactionRecord(com.hedera.hashgraph.sdk.proto.TransactionRecord value) { if (transactionRecordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transactionRecord_ = value; } else { transactionRecordBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ public Builder setTransactionRecord( com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder builderForValue) { if (transactionRecordBuilder_ == null) { transactionRecord_ = builderForValue.build(); } else { transactionRecordBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ public Builder mergeTransactionRecord(com.hedera.hashgraph.sdk.proto.TransactionRecord value) { if (transactionRecordBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && transactionRecord_ != null && transactionRecord_ != com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance()) { getTransactionRecordBuilder().mergeFrom(value); } else { transactionRecord_ = value; } } else { transactionRecordBuilder_.mergeFrom(value); } if (transactionRecord_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ public Builder clearTransactionRecord() { bitField0_ = (bitField0_ & ~0x00000004); transactionRecord_ = null; if (transactionRecordBuilder_ != null) { transactionRecordBuilder_.dispose(); transactionRecordBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ public com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder getTransactionRecordBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTransactionRecordFieldBuilder().getBuilder(); } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ public com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder getTransactionRecordOrBuilder() { if (transactionRecordBuilder_ != null) { return transactionRecordBuilder_.getMessageOrBuilder(); } else { return transactionRecord_ == null ? com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance() : transactionRecord_; } } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TransactionRecord, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder, com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder> getTransactionRecordFieldBuilder() { if (transactionRecordBuilder_ == null) { transactionRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TransactionRecord, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder, com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>( getTransactionRecord(), getParentForChildren(), isClean()); transactionRecord_ = null; } return transactionRecordBuilder_; } @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.TransactionRecordEntry) } // @@protoc_insertion_point(class_scope:proto.TransactionRecordEntry) private static final com.hedera.hashgraph.sdk.proto.TransactionRecordEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.TransactionRecordEntry(); } public static com.hedera.hashgraph.sdk.proto.TransactionRecordEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionRecordEntry 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.TransactionRecordEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy