Class Protos.TransactionOutput.Builder

    • Method Detail

      • setValue

        public Protos.TransactionOutput.Builder setValue​(long value)
        required int64 value = 1;
        Parameters:
        value - The value to set.
        Returns:
        This builder for chaining.
      • hasScriptBytes

        public boolean hasScriptBytes()
         script of transaction output
         
        required bytes script_bytes = 2;
        Specified by:
        hasScriptBytes in interface Protos.TransactionOutputOrBuilder
        Returns:
        Whether the scriptBytes field is set.
      • getScriptBytes

        public com.google.protobuf.ByteString getScriptBytes()
         script of transaction output
         
        required bytes script_bytes = 2;
        Specified by:
        getScriptBytes in interface Protos.TransactionOutputOrBuilder
        Returns:
        The scriptBytes.
      • setScriptBytes

        public Protos.TransactionOutput.Builder setScriptBytes​(com.google.protobuf.ByteString value)
         script of transaction output
         
        required bytes script_bytes = 2;
        Parameters:
        value - The scriptBytes to set.
        Returns:
        This builder for chaining.
      • clearScriptBytes

        public Protos.TransactionOutput.Builder clearScriptBytes()
         script of transaction output
         
        required bytes script_bytes = 2;
        Returns:
        This builder for chaining.
      • hasSpentByTransactionHash

        public boolean hasSpentByTransactionHash()
         If spent, the hash of the transaction doing the spend.
         
        optional bytes spent_by_transaction_hash = 3;
        Specified by:
        hasSpentByTransactionHash in interface Protos.TransactionOutputOrBuilder
        Returns:
        Whether the spentByTransactionHash field is set.
      • getSpentByTransactionHash

        public com.google.protobuf.ByteString getSpentByTransactionHash()
         If spent, the hash of the transaction doing the spend.
         
        optional bytes spent_by_transaction_hash = 3;
        Specified by:
        getSpentByTransactionHash in interface Protos.TransactionOutputOrBuilder
        Returns:
        The spentByTransactionHash.
      • setSpentByTransactionHash

        public Protos.TransactionOutput.Builder setSpentByTransactionHash​(com.google.protobuf.ByteString value)
         If spent, the hash of the transaction doing the spend.
         
        optional bytes spent_by_transaction_hash = 3;
        Parameters:
        value - The spentByTransactionHash to set.
        Returns:
        This builder for chaining.
      • clearSpentByTransactionHash

        public Protos.TransactionOutput.Builder clearSpentByTransactionHash()
         If spent, the hash of the transaction doing the spend.
         
        optional bytes spent_by_transaction_hash = 3;
        Returns:
        This builder for chaining.
      • hasSpentByTransactionIndex

        public boolean hasSpentByTransactionIndex()
         If spent, the index of the transaction input of the transaction doing the spend.
         
        optional int32 spent_by_transaction_index = 4;
        Specified by:
        hasSpentByTransactionIndex in interface Protos.TransactionOutputOrBuilder
        Returns:
        Whether the spentByTransactionIndex field is set.
      • getSpentByTransactionIndex

        public int getSpentByTransactionIndex()
         If spent, the index of the transaction input of the transaction doing the spend.
         
        optional int32 spent_by_transaction_index = 4;
        Specified by:
        getSpentByTransactionIndex in interface Protos.TransactionOutputOrBuilder
        Returns:
        The spentByTransactionIndex.
      • setSpentByTransactionIndex

        public Protos.TransactionOutput.Builder setSpentByTransactionIndex​(int value)
         If spent, the index of the transaction input of the transaction doing the spend.
         
        optional int32 spent_by_transaction_index = 4;
        Parameters:
        value - The spentByTransactionIndex to set.
        Returns:
        This builder for chaining.
      • clearSpentByTransactionIndex

        public Protos.TransactionOutput.Builder clearSpentByTransactionIndex()
         If spent, the index of the transaction input of the transaction doing the spend.
         
        optional int32 spent_by_transaction_index = 4;
        Returns:
        This builder for chaining.