Class Protos.TransactionInput.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Protos.TransactionInput,Protos.TransactionInput.Builder>
org.bitcoinj.wallet.Protos.TransactionInput.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.TransactionInputOrBuilder
Enclosing class:
Protos.TransactionInput

public static final class Protos.TransactionInput.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.TransactionInput,Protos.TransactionInput.Builder> implements Protos.TransactionInputOrBuilder
Protobuf type wallet.TransactionInput
  • Method Details

    • hasTransactionOutPointHash

      public boolean hasTransactionOutPointHash()
       Hash of the transaction this input is using.
       
      required bytes transaction_out_point_hash = 1;
      Specified by:
      hasTransactionOutPointHash in interface Protos.TransactionInputOrBuilder
      Returns:
      Whether the transactionOutPointHash field is set.
    • getTransactionOutPointHash

      public com.google.protobuf.ByteString getTransactionOutPointHash()
       Hash of the transaction this input is using.
       
      required bytes transaction_out_point_hash = 1;
      Specified by:
      getTransactionOutPointHash in interface Protos.TransactionInputOrBuilder
      Returns:
      The transactionOutPointHash.
    • setTransactionOutPointHash

      public Protos.TransactionInput.Builder setTransactionOutPointHash(com.google.protobuf.ByteString value)
       Hash of the transaction this input is using.
       
      required bytes transaction_out_point_hash = 1;
      Parameters:
      value - The transactionOutPointHash to set.
      Returns:
      This builder for chaining.
    • clearTransactionOutPointHash

      public Protos.TransactionInput.Builder clearTransactionOutPointHash()
       Hash of the transaction this input is using.
       
      required bytes transaction_out_point_hash = 1;
      Returns:
      This builder for chaining.
    • hasTransactionOutPointIndex

      public boolean hasTransactionOutPointIndex()
       Index of transaction output used by this input.
       
      required uint32 transaction_out_point_index = 2;
      Specified by:
      hasTransactionOutPointIndex in interface Protos.TransactionInputOrBuilder
      Returns:
      Whether the transactionOutPointIndex field is set.
    • getTransactionOutPointIndex

      public int getTransactionOutPointIndex()
       Index of transaction output used by this input.
       
      required uint32 transaction_out_point_index = 2;
      Specified by:
      getTransactionOutPointIndex in interface Protos.TransactionInputOrBuilder
      Returns:
      The transactionOutPointIndex.
    • setTransactionOutPointIndex

      public Protos.TransactionInput.Builder setTransactionOutPointIndex(int value)
       Index of transaction output used by this input.
       
      required uint32 transaction_out_point_index = 2;
      Parameters:
      value - The transactionOutPointIndex to set.
      Returns:
      This builder for chaining.
    • clearTransactionOutPointIndex

      public Protos.TransactionInput.Builder clearTransactionOutPointIndex()
       Index of transaction output used by this input.
       
      required uint32 transaction_out_point_index = 2;
      Returns:
      This builder for chaining.
    • hasScriptBytes

      public boolean hasScriptBytes()
       Script that contains the signatures/pubkeys.
       
      required bytes script_bytes = 3;
      Specified by:
      hasScriptBytes in interface Protos.TransactionInputOrBuilder
      Returns:
      Whether the scriptBytes field is set.
    • getScriptBytes

      public com.google.protobuf.ByteString getScriptBytes()
       Script that contains the signatures/pubkeys.
       
      required bytes script_bytes = 3;
      Specified by:
      getScriptBytes in interface Protos.TransactionInputOrBuilder
      Returns:
      The scriptBytes.
    • setScriptBytes

      public Protos.TransactionInput.Builder setScriptBytes(com.google.protobuf.ByteString value)
       Script that contains the signatures/pubkeys.
       
      required bytes script_bytes = 3;
      Parameters:
      value - The scriptBytes to set.
      Returns:
      This builder for chaining.
    • clearScriptBytes

      public Protos.TransactionInput.Builder clearScriptBytes()
       Script that contains the signatures/pubkeys.
       
      required bytes script_bytes = 3;
      Returns:
      This builder for chaining.
    • hasSequence

      public boolean hasSequence()
       Sequence number.
       
      optional uint32 sequence = 4;
      Specified by:
      hasSequence in interface Protos.TransactionInputOrBuilder
      Returns:
      Whether the sequence field is set.
    • getSequence

      public int getSequence()
       Sequence number.
       
      optional uint32 sequence = 4;
      Specified by:
      getSequence in interface Protos.TransactionInputOrBuilder
      Returns:
      The sequence.
    • setSequence

      public Protos.TransactionInput.Builder setSequence(int value)
       Sequence number.
       
      optional uint32 sequence = 4;
      Parameters:
      value - The sequence to set.
      Returns:
      This builder for chaining.
    • clearSequence

      public Protos.TransactionInput.Builder clearSequence()
       Sequence number.
       
      optional uint32 sequence = 4;
      Returns:
      This builder for chaining.
    • hasValue

      public boolean hasValue()
       Value of connected output, if known
       
      optional int64 value = 5;
      Specified by:
      hasValue in interface Protos.TransactionInputOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public long getValue()
       Value of connected output, if known
       
      optional int64 value = 5;
      Specified by:
      getValue in interface Protos.TransactionInputOrBuilder
      Returns:
      The value.
    • setValue

      public Protos.TransactionInput.Builder setValue(long value)
       Value of connected output, if known
       
      optional int64 value = 5;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public Protos.TransactionInput.Builder clearValue()
       Value of connected output, if known
       
      optional int64 value = 5;
      Returns:
      This builder for chaining.
    • hasWitness

      public boolean hasWitness()
       script witness
       
      optional .wallet.ScriptWitness witness = 6;
      Specified by:
      hasWitness in interface Protos.TransactionInputOrBuilder
      Returns:
      Whether the witness field is set.
    • getWitness

      public Protos.ScriptWitness getWitness()
       script witness
       
      optional .wallet.ScriptWitness witness = 6;
      Specified by:
      getWitness in interface Protos.TransactionInputOrBuilder
      Returns:
      The witness.
    • setWitness

       script witness
       
      optional .wallet.ScriptWitness witness = 6;
    • setWitness

       script witness
       
      optional .wallet.ScriptWitness witness = 6;
    • mergeWitness

       script witness
       
      optional .wallet.ScriptWitness witness = 6;
    • clearWitness

      public Protos.TransactionInput.Builder clearWitness()
       script witness
       
      optional .wallet.ScriptWitness witness = 6;