Package org.bitcoinj.wallet
Class Protos.TransactionInput
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<Protos.TransactionInput,Protos.TransactionInput.Builder>
-
- org.bitcoinj.wallet.Protos.TransactionInput
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,Protos.TransactionInputOrBuilder
- Enclosing class:
- Protos
public static final class Protos.TransactionInput extends com.google.protobuf.GeneratedMessageLite<Protos.TransactionInput,Protos.TransactionInput.Builder> implements Protos.TransactionInputOrBuilder
Protobuf typewallet.TransactionInput
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Protos.TransactionInput.Builder
Protobuf typewallet.TransactionInput
-
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 extends java.lang.Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
-
-
Field Summary
Fields Modifier and Type Field Description static int
SCRIPT_BYTES_FIELD_NUMBER
static int
SEQUENCE_FIELD_NUMBER
static int
TRANSACTION_OUT_POINT_HASH_FIELD_NUMBER
static int
TRANSACTION_OUT_POINT_INDEX_FIELD_NUMBER
static int
VALUE_FIELD_NUMBER
static int
WITNESS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
static Protos.TransactionInput
getDefaultInstance()
com.google.protobuf.ByteString
getScriptBytes()
Script that contains the signatures/pubkeys.int
getSequence()
Sequence number.com.google.protobuf.ByteString
getTransactionOutPointHash()
Hash of the transaction this input is using.int
getTransactionOutPointIndex()
Index of transaction output used by this input.long
getValue()
Value of connected output, if knownProtos.ScriptWitness
getWitness()
script witnessboolean
hasScriptBytes()
Script that contains the signatures/pubkeys.boolean
hasSequence()
Sequence number.boolean
hasTransactionOutPointHash()
Hash of the transaction this input is using.boolean
hasTransactionOutPointIndex()
Index of transaction output used by this input.boolean
hasValue()
Value of connected output, if knownboolean
hasWitness()
script witnessstatic Protos.TransactionInput.Builder
newBuilder()
static Protos.TransactionInput.Builder
newBuilder(Protos.TransactionInput prototype)
static Protos.TransactionInput
parseDelimitedFrom(java.io.InputStream input)
static Protos.TransactionInput
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Protos.TransactionInput
parseFrom(byte[] data)
static Protos.TransactionInput
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Protos.TransactionInput
parseFrom(com.google.protobuf.ByteString data)
static Protos.TransactionInput
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Protos.TransactionInput
parseFrom(com.google.protobuf.CodedInputStream input)
static Protos.TransactionInput
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Protos.TransactionInput
parseFrom(java.io.InputStream input)
static Protos.TransactionInput
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Protos.TransactionInput
parseFrom(java.nio.ByteBuffer data)
static Protos.TransactionInput
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Protos.TransactionInput>
parser()
-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, 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, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
-
-
-
Field Detail
-
TRANSACTION_OUT_POINT_HASH_FIELD_NUMBER
public static final int TRANSACTION_OUT_POINT_HASH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRANSACTION_OUT_POINT_INDEX_FIELD_NUMBER
public static final int TRANSACTION_OUT_POINT_INDEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCRIPT_BYTES_FIELD_NUMBER
public static final int SCRIPT_BYTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEQUENCE_FIELD_NUMBER
public static final int SEQUENCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WITNESS_FIELD_NUMBER
public static final int WITNESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasTransactionOutPointHash
public boolean hasTransactionOutPointHash()
Hash of the transaction this input is using.
required bytes transaction_out_point_hash = 1;
- Specified by:
hasTransactionOutPointHash
in interfaceProtos.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 interfaceProtos.TransactionInputOrBuilder
- Returns:
- The transactionOutPointHash.
-
hasTransactionOutPointIndex
public boolean hasTransactionOutPointIndex()
Index of transaction output used by this input.
required uint32 transaction_out_point_index = 2;
- Specified by:
hasTransactionOutPointIndex
in interfaceProtos.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 interfaceProtos.TransactionInputOrBuilder
- Returns:
- The transactionOutPointIndex.
-
hasScriptBytes
public boolean hasScriptBytes()
Script that contains the signatures/pubkeys.
required bytes script_bytes = 3;
- Specified by:
hasScriptBytes
in interfaceProtos.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 interfaceProtos.TransactionInputOrBuilder
- Returns:
- The scriptBytes.
-
hasSequence
public boolean hasSequence()
Sequence number.
optional uint32 sequence = 4;
- Specified by:
hasSequence
in interfaceProtos.TransactionInputOrBuilder
- Returns:
- Whether the sequence field is set.
-
getSequence
public int getSequence()
Sequence number.
optional uint32 sequence = 4;
- Specified by:
getSequence
in interfaceProtos.TransactionInputOrBuilder
- Returns:
- The sequence.
-
hasValue
public boolean hasValue()
Value of connected output, if known
optional int64 value = 5;
- Specified by:
hasValue
in interfaceProtos.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 interfaceProtos.TransactionInputOrBuilder
- Returns:
- The value.
-
hasWitness
public boolean hasWitness()
script witness
optional .wallet.ScriptWitness witness = 6;
- Specified by:
hasWitness
in interfaceProtos.TransactionInputOrBuilder
- Returns:
- Whether the witness field is set.
-
getWitness
public Protos.ScriptWitness getWitness()
script witness
optional .wallet.ScriptWitness witness = 6;
- Specified by:
getWitness
in interfaceProtos.TransactionInputOrBuilder
- Returns:
- The witness.
-
parseFrom
public static Protos.TransactionInput parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionInput parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionInput parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionInput parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionInput parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionInput parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.TransactionInput parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Protos.TransactionInput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Protos.TransactionInput parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.TransactionInput parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.TransactionInput parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static Protos.TransactionInput.Builder newBuilder()
-
newBuilder
public static Protos.TransactionInput.Builder newBuilder(Protos.TransactionInput prototype)
-
dynamicMethod
protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
- Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<Protos.TransactionInput,Protos.TransactionInput.Builder>
-
getDefaultInstance
public static Protos.TransactionInput getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Protos.TransactionInput> parser()
-
-