java.lang.Object
com.google.protobuf.AbstractMessageLite<Transaction,Transaction.Builder>
com.google.protobuf.GeneratedMessageLite<Transaction,Transaction.Builder>
com.hedera.hashgraph.sdk.proto.Transaction
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,TransactionOrBuilder
@Generated
public final class Transaction
extends com.google.protobuf.GeneratedMessageLite<Transaction,Transaction.Builder>
implements TransactionOrBuilder
* A wrapper around signed transaction bytes.<br/> This was originally a transaction with body, signatures, and/or bytes, but is not only a wrapper around a byte array containing signed transction bytes. The `signedTransactionBytes` field is REQUIRED and MUST contain a valid, serialized, `SignedTransaction` message.<br/> All other fields are deprecated and MUST NOT be set. #### Additional Notes The four deprecated fields will be removed and reserved in a future release.Protobuf type
proto.Transaction-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* A wrapper around signed transaction bytes.<br/> This was originally a transaction with body, signatures, and/or bytes, but is not only a wrapper around a byte array containing signed transction bytes.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) getBody()Deprecated.com.google.protobuf.ByteStringDeprecated.proto.Transaction.bodyBytes is deprecated.static TransactionDeprecated.com.google.protobuf.ByteString* A valid, serialized, `SignedTransaction` message.getSigs()Deprecated.booleanhasBody()Deprecated.booleanDeprecated.booleanhasSigs()Deprecated.static Transaction.Builderstatic Transaction.BuildernewBuilder(Transaction prototype) static TransactionparseDelimitedFrom(InputStream input) static TransactionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionparseFrom(byte[] data) static TransactionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionparseFrom(com.google.protobuf.ByteString data) static TransactionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionparseFrom(com.google.protobuf.CodedInputStream input) static TransactionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionparseFrom(InputStream input) static TransactionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionparseFrom(ByteBuffer data) static TransactionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Transaction> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER- See Also:
-
SIGS_FIELD_NUMBER
public static final int SIGS_FIELD_NUMBER- See Also:
-
SIGMAP_FIELD_NUMBER
public static final int SIGMAP_FIELD_NUMBER- See Also:
-
BODYBYTES_FIELD_NUMBER
public static final int BODYBYTES_FIELD_NUMBER- See Also:
-
SIGNEDTRANSACTIONBYTES_FIELD_NUMBER
public static final int SIGNEDTRANSACTIONBYTES_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasBody
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The body of the transaction.
.proto.TransactionBody body = 1 [deprecated = true];- Specified by:
hasBodyin interfaceTransactionOrBuilder- Returns:
- Whether the body field is set.
-
getBody
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The body of the transaction.
.proto.TransactionBody body = 1 [deprecated = true];- Specified by:
getBodyin interfaceTransactionOrBuilder- Returns:
- The body.
-
hasSigs
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body.
.proto.SignatureList sigs = 2 [deprecated = true];- Specified by:
hasSigsin interfaceTransactionOrBuilder- Returns:
- Whether the sigs field is set.
-
getSigs
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body.
.proto.SignatureList sigs = 2 [deprecated = true];- Specified by:
getSigsin interfaceTransactionOrBuilder- Returns:
- The sigs.
-
hasSigMap
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body with a newer format.
.proto.SignatureMap sigMap = 3 [deprecated = true];- Specified by:
hasSigMapin interfaceTransactionOrBuilder- Returns:
- Whether the sigMap field is set.
-
getSigMap
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body with a newer format.
.proto.SignatureMap sigMap = 3 [deprecated = true];- Specified by:
getSigMapin interfaceTransactionOrBuilder- Returns:
- The sigMap.
-
getBodyBytes
Deprecated.proto.Transaction.bodyBytes is deprecated. See transaction.proto;l=147* Replaced with `signedTransactionBytes`.<br/> TransactionBody serialized into bytes.
bytes bodyBytes = 4 [deprecated = true];- Specified by:
getBodyBytesin interfaceTransactionOrBuilder- Returns:
- The bodyBytes.
-
getSignedTransactionBytes
public com.google.protobuf.ByteString getSignedTransactionBytes()* A valid, serialized, `SignedTransaction` message. <p> This field MUST be present. This field MUST NOT exceed the current network transaction size limit (currently 6144 bytes).
bytes signedTransactionBytes = 5;- Specified by:
getSignedTransactionBytesin interfaceTransactionOrBuilder- Returns:
- The signedTransactionBytes.
-
parseFrom
public static Transaction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Transaction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Transaction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Transaction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Transaction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Transaction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Transaction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Transaction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Transaction,Transaction.Builder>
-
getDefaultInstance
-
parser
-