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 type
wallet.TransactionInput-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typewallet.TransactionInputNested 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 Object>, 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 intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
memoizedSerializedSize, 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) static Protos.TransactionInputcom.google.protobuf.ByteStringScript that contains the signatures/pubkeys.intSequence number.com.google.protobuf.ByteStringHash of the transaction this input is using.intIndex of transaction output used by this input.longgetValue()Value of connected output, if knownscript witnessbooleanScript that contains the signatures/pubkeys.booleanSequence number.booleanHash of the transaction this input is using.booleanIndex of transaction output used by this input.booleanhasValue()Value of connected output, if knownbooleanscript witnessnewBuilder(Protos.TransactionInput prototype) static Protos.TransactionInputparseDelimitedFrom(InputStream input) static Protos.TransactionInputparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionInputparseFrom(byte[] data) static Protos.TransactionInputparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionInputparseFrom(com.google.protobuf.ByteString data) static Protos.TransactionInputparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionInputparseFrom(com.google.protobuf.CodedInputStream input) static Protos.TransactionInputparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionInputparseFrom(InputStream input) static Protos.TransactionInputparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionInputparseFrom(ByteBuffer data) static Protos.TransactionInputparseFrom(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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, 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
-
TRANSACTION_OUT_POINT_HASH_FIELD_NUMBER
public static final int TRANSACTION_OUT_POINT_HASH_FIELD_NUMBER- See Also:
-
TRANSACTION_OUT_POINT_INDEX_FIELD_NUMBER
public static final int TRANSACTION_OUT_POINT_INDEX_FIELD_NUMBER- See Also:
-
SCRIPT_BYTES_FIELD_NUMBER
public static final int SCRIPT_BYTES_FIELD_NUMBER- See Also:
-
SEQUENCE_FIELD_NUMBER
public static final int SEQUENCE_FIELD_NUMBER- See Also:
-
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER- See Also:
-
WITNESS_FIELD_NUMBER
public static final int WITNESS_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasTransactionOutPointHash
public boolean hasTransactionOutPointHash()Hash of the transaction this input is using.
required bytes transaction_out_point_hash = 1;- Specified by:
hasTransactionOutPointHashin 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:
getTransactionOutPointHashin 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:
hasTransactionOutPointIndexin 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:
getTransactionOutPointIndexin interfaceProtos.TransactionInputOrBuilder- Returns:
- The transactionOutPointIndex.
-
hasScriptBytes
public boolean hasScriptBytes()Script that contains the signatures/pubkeys.
required bytes script_bytes = 3;- Specified by:
hasScriptBytesin 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:
getScriptBytesin interfaceProtos.TransactionInputOrBuilder- Returns:
- The scriptBytes.
-
hasSequence
public boolean hasSequence()Sequence number.
optional uint32 sequence = 4;- Specified by:
hasSequencein interfaceProtos.TransactionInputOrBuilder- Returns:
- Whether the sequence field is set.
-
getSequence
public int getSequence()Sequence number.
optional uint32 sequence = 4;- Specified by:
getSequencein interfaceProtos.TransactionInputOrBuilder- Returns:
- The sequence.
-
hasValue
public boolean hasValue()Value of connected output, if known
optional int64 value = 5;- Specified by:
hasValuein 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:
getValuein interfaceProtos.TransactionInputOrBuilder- Returns:
- The value.
-
hasWitness
public boolean hasWitness()script witness
optional .wallet.ScriptWitness witness = 6;- Specified by:
hasWitnessin interfaceProtos.TransactionInputOrBuilder- Returns:
- Whether the witness field is set.
-
getWitness
script witness
optional .wallet.ScriptWitness witness = 6;- Specified by:
getWitnessin interfaceProtos.TransactionInputOrBuilder- Returns:
- The witness.
-
parseFrom
public static Protos.TransactionInput parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionInput parseFrom(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
- Throws:
IOException
-
parseFrom
public static Protos.TransactionInput parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Protos.TransactionInput parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Protos.TransactionInput parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Protos.TransactionInput 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<Protos.TransactionInput,Protos.TransactionInput.Builder>
-
getDefaultInstance
-
parser
-