Class Transaction

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 Classes
    Modifier and Type
    Class
    Description
    static 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    Deprecated.
    com.google.protobuf.ByteString
    Deprecated.
    proto.Transaction.bodyBytes is deprecated.
     
    Deprecated.
    com.google.protobuf.ByteString
    * A valid, serialized, `SignedTransaction` message.
    Deprecated.
    boolean
    Deprecated.
    boolean
    Deprecated.
    boolean
    Deprecated.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Transaction>
     

    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, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

  • Method Details

    • hasBody

      @Deprecated public boolean hasBody()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The body of the transaction.
       
      .proto.TransactionBody body = 1 [deprecated = true];
      Specified by:
      hasBody in interface TransactionOrBuilder
      Returns:
      Whether the body field is set.
    • getBody

      @Deprecated public TransactionBody getBody()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The body of the transaction.
       
      .proto.TransactionBody body = 1 [deprecated = true];
      Specified by:
      getBody in interface TransactionOrBuilder
      Returns:
      The body.
    • hasSigs

      @Deprecated public boolean hasSigs()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body.
       
      .proto.SignatureList sigs = 2 [deprecated = true];
      Specified by:
      hasSigs in interface TransactionOrBuilder
      Returns:
      Whether the sigs field is set.
    • getSigs

      @Deprecated public SignatureList getSigs()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body.
       
      .proto.SignatureList sigs = 2 [deprecated = true];
      Specified by:
      getSigs in interface TransactionOrBuilder
      Returns:
      The sigs.
    • hasSigMap

      @Deprecated public boolean hasSigMap()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body with a newer format.
       
      .proto.SignatureMap sigMap = 3 [deprecated = true];
      Specified by:
      hasSigMap in interface TransactionOrBuilder
      Returns:
      Whether the sigMap field is set.
    • getSigMap

      @Deprecated public SignatureMap getSigMap()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body with a newer format.
       
      .proto.SignatureMap sigMap = 3 [deprecated = true];
      Specified by:
      getSigMap in interface TransactionOrBuilder
      Returns:
      The sigMap.
    • getBodyBytes

      @Deprecated public com.google.protobuf.ByteString 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:
      getBodyBytes in interface TransactionOrBuilder
      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:
      getSignedTransactionBytes in interface TransactionOrBuilder
      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

      public static Transaction parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Transaction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Transaction parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Transaction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Transaction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Transaction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static Transaction.Builder newBuilder()
    • newBuilder

      public static Transaction.Builder newBuilder(Transaction prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Transaction,Transaction.Builder>
    • getDefaultInstance

      public static Transaction getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Transaction> parser()