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 classProtos.TransactionInput.BuilderProtobuf 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 intSCRIPT_BYTES_FIELD_NUMBERstatic intSEQUENCE_FIELD_NUMBERstatic intTRANSACTION_OUT_POINT_HASH_FIELD_NUMBERstatic intTRANSACTION_OUT_POINT_INDEX_FIELD_NUMBERstatic intVALUE_FIELD_NUMBERstatic intWITNESS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)static Protos.TransactionInputgetDefaultInstance()com.google.protobuf.ByteStringgetScriptBytes()Script that contains the signatures/pubkeys.intgetSequence()Sequence number.com.google.protobuf.ByteStringgetTransactionOutPointHash()Hash of the transaction this input is using.intgetTransactionOutPointIndex()Index of transaction output used by this input.longgetValue()Value of connected output, if knownProtos.ScriptWitnessgetWitness()script witnessbooleanhasScriptBytes()Script that contains the signatures/pubkeys.booleanhasSequence()Sequence number.booleanhasTransactionOutPointHash()Hash of the transaction this input is using.booleanhasTransactionOutPointIndex()Index of transaction output used by this input.booleanhasValue()Value of connected output, if knownbooleanhasWitness()script witnessstatic Protos.TransactionInput.BuildernewBuilder()static Protos.TransactionInput.BuildernewBuilder(Protos.TransactionInput prototype)static Protos.TransactionInputparseDelimitedFrom(java.io.InputStream input)static Protos.TransactionInputparseDelimitedFrom(java.io.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(java.io.InputStream input)static Protos.TransactionInputparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.TransactionInputparseFrom(java.nio.ByteBuffer data)static Protos.TransactionInputparseFrom(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:
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
public Protos.ScriptWitness getWitness()
script witness
optional .wallet.ScriptWitness witness = 6;- Specified by:
getWitnessin 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:
dynamicMethodin 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()
-
-