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

com.hederahashgraph.api.proto.java.TransactionRecordEntry Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: state/recordcache/recordcache.proto

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransactionRecordEntry( 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.readInt64(); break; } case 18: { com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; if (payerAccountId_ != null) { subBuilder = payerAccountId_.toBuilder(); } payerAccountId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(payerAccountId_); payerAccountId_ = subBuilder.buildPartial(); } break; } case 26: { com.hederahashgraph.api.proto.java.TransactionRecord.Builder subBuilder = null; if (transactionRecord_ != null) { subBuilder = transactionRecord_.toBuilder(); } transactionRecord_ = input.readMessage(com.hederahashgraph.api.proto.java.TransactionRecord.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transactionRecord_); transactionRecord_ = subBuilder.buildPartial(); } 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_TransactionRecordEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.Recordcache.internal_static_proto_TransactionRecordEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.TransactionRecordEntry.class, com.hederahashgraph.api.proto.java.TransactionRecordEntry.Builder.class); } public static final int NODE_ID_FIELD_NUMBER = 1; 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_; } public static final int PAYER_ACCOUNT_ID_FIELD_NUMBER = 2; private com.hederahashgraph.api.proto.java.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 payerAccountId_ != null; } /** *
   **
   * 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.hederahashgraph.api.proto.java.AccountID getPayerAccountId() { return payerAccountId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getPayerAccountIdOrBuilder() { return getPayerAccountId(); } public static final int TRANSACTION_RECORD_FIELD_NUMBER = 3; private com.hederahashgraph.api.proto.java.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 transactionRecord_ != null; } /** *
   **
   * The transaction record for the transaction.
   * 
* * .proto.TransactionRecord transaction_record = 3; * @return The transactionRecord. */ @java.lang.Override public com.hederahashgraph.api.proto.java.TransactionRecord getTransactionRecord() { return transactionRecord_ == null ? com.hederahashgraph.api.proto.java.TransactionRecord.getDefaultInstance() : transactionRecord_; } /** *
   **
   * The transaction record for the transaction.
   * 
* * .proto.TransactionRecord transaction_record = 3; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder getTransactionRecordOrBuilder() { return getTransactionRecord(); } 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 (payerAccountId_ != null) { output.writeMessage(2, getPayerAccountId()); } if (transactionRecord_ != null) { output.writeMessage(3, getTransactionRecord()); } 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 .computeInt64Size(1, nodeId_); } if (payerAccountId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPayerAccountId()); } if (transactionRecord_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTransactionRecord()); } 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.TransactionRecordEntry)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.TransactionRecordEntry other = (com.hederahashgraph.api.proto.java.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 (!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 (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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.TransactionRecordEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.TransactionRecordEntry 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.TransactionRecordEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecordEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.TransactionRecordEntry 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.TransactionRecordEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecordEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecordEntry 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.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecordEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.Recordcache.internal_static_proto_TransactionRecordEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.Recordcache.internal_static_proto_TransactionRecordEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.TransactionRecordEntry.class, com.hederahashgraph.api.proto.java.TransactionRecordEntry.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.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) { } } @java.lang.Override public Builder clear() { super.clear(); nodeId_ = 0L; if (payerAccountIdBuilder_ == null) { payerAccountId_ = null; } else { payerAccountId_ = null; payerAccountIdBuilder_ = null; } if (transactionRecordBuilder_ == null) { transactionRecord_ = null; } else { transactionRecord_ = null; transactionRecordBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.Recordcache.internal_static_proto_TransactionRecordEntry_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.TransactionRecordEntry getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.TransactionRecordEntry.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.TransactionRecordEntry build() { com.hederahashgraph.api.proto.java.TransactionRecordEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.TransactionRecordEntry buildPartial() { com.hederahashgraph.api.proto.java.TransactionRecordEntry result = new com.hederahashgraph.api.proto.java.TransactionRecordEntry(this); result.nodeId_ = nodeId_; if (payerAccountIdBuilder_ == null) { result.payerAccountId_ = payerAccountId_; } else { result.payerAccountId_ = payerAccountIdBuilder_.build(); } if (transactionRecordBuilder_ == null) { result.transactionRecord_ = transactionRecord_; } else { result.transactionRecord_ = transactionRecordBuilder_.build(); } 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.TransactionRecordEntry) { return mergeFrom((com.hederahashgraph.api.proto.java.TransactionRecordEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.TransactionRecordEntry other) { if (other == com.hederahashgraph.api.proto.java.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.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.TransactionRecordEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.TransactionRecordEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; 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() { nodeId_ = 0L; onChanged(); return this; } private com.hederahashgraph.api.proto.java.AccountID payerAccountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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 payerAccountIdBuilder_ != null || payerAccountId_ != null; } /** *
     **
     * 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.hederahashgraph.api.proto.java.AccountID getPayerAccountId() { if (payerAccountIdBuilder_ == null) { return payerAccountId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) { if (payerAccountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payerAccountId_ = value; onChanged(); } else { payerAccountIdBuilder_.setMessage(value); } 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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) { if (payerAccountIdBuilder_ == null) { payerAccountId_ = builderForValue.build(); onChanged(); } else { payerAccountIdBuilder_.setMessage(builderForValue.build()); } 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.hederahashgraph.api.proto.java.AccountID value) { if (payerAccountIdBuilder_ == null) { if (payerAccountId_ != null) { payerAccountId_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder(payerAccountId_).mergeFrom(value).buildPartial(); } else { payerAccountId_ = value; } onChanged(); } else { payerAccountIdBuilder_.mergeFrom(value); } 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() { if (payerAccountIdBuilder_ == null) { payerAccountId_ = null; onChanged(); } else { payerAccountId_ = null; payerAccountIdBuilder_ = null; } 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.hederahashgraph.api.proto.java.AccountID.Builder getPayerAccountIdBuilder() { 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.hederahashgraph.api.proto.java.AccountIDOrBuilder getPayerAccountIdOrBuilder() { if (payerAccountIdBuilder_ != null) { return payerAccountIdBuilder_.getMessageOrBuilder(); } else { return payerAccountId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> getPayerAccountIdFieldBuilder() { if (payerAccountIdBuilder_ == null) { payerAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>( getPayerAccountId(), getParentForChildren(), isClean()); payerAccountId_ = null; } return payerAccountIdBuilder_; } private com.hederahashgraph.api.proto.java.TransactionRecord transactionRecord_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder> transactionRecordBuilder_; /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; * @return Whether the transactionRecord field is set. */ public boolean hasTransactionRecord() { return transactionRecordBuilder_ != null || transactionRecord_ != null; } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; * @return The transactionRecord. */ public com.hederahashgraph.api.proto.java.TransactionRecord getTransactionRecord() { if (transactionRecordBuilder_ == null) { return transactionRecord_ == null ? com.hederahashgraph.api.proto.java.TransactionRecord.getDefaultInstance() : transactionRecord_; } else { return transactionRecordBuilder_.getMessage(); } } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ public Builder setTransactionRecord(com.hederahashgraph.api.proto.java.TransactionRecord value) { if (transactionRecordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transactionRecord_ = value; onChanged(); } else { transactionRecordBuilder_.setMessage(value); } return this; } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ public Builder setTransactionRecord( com.hederahashgraph.api.proto.java.TransactionRecord.Builder builderForValue) { if (transactionRecordBuilder_ == null) { transactionRecord_ = builderForValue.build(); onChanged(); } else { transactionRecordBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ public Builder mergeTransactionRecord(com.hederahashgraph.api.proto.java.TransactionRecord value) { if (transactionRecordBuilder_ == null) { if (transactionRecord_ != null) { transactionRecord_ = com.hederahashgraph.api.proto.java.TransactionRecord.newBuilder(transactionRecord_).mergeFrom(value).buildPartial(); } else { transactionRecord_ = value; } onChanged(); } else { transactionRecordBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ public Builder clearTransactionRecord() { if (transactionRecordBuilder_ == null) { transactionRecord_ = null; onChanged(); } else { transactionRecord_ = null; transactionRecordBuilder_ = null; } return this; } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ public com.hederahashgraph.api.proto.java.TransactionRecord.Builder getTransactionRecordBuilder() { onChanged(); return getTransactionRecordFieldBuilder().getBuilder(); } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ public com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder getTransactionRecordOrBuilder() { if (transactionRecordBuilder_ != null) { return transactionRecordBuilder_.getMessageOrBuilder(); } else { return transactionRecord_ == null ? com.hederahashgraph.api.proto.java.TransactionRecord.getDefaultInstance() : transactionRecord_; } } /** *
     **
     * The transaction record for the transaction.
     * 
* * .proto.TransactionRecord transaction_record = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder> getTransactionRecordFieldBuilder() { if (transactionRecordBuilder_ == null) { transactionRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecordEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.TransactionRecordEntry(); } public static com.hederahashgraph.api.proto.java.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 { return new TransactionRecordEntry(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.TransactionRecordEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy