Package org.bitcoinj.protobuf.wallet
Class Protos.TransactionOutput
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<Protos.TransactionOutput,Protos.TransactionOutput.Builder>
-
- org.bitcoinj.protobuf.wallet.Protos.TransactionOutput
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Protos.TransactionOutputOrBuilder
- Enclosing class:
- Protos
public static final class Protos.TransactionOutput extends com.google.protobuf.GeneratedMessageLite<Protos.TransactionOutput,Protos.TransactionOutput.Builder> implements Protos.TransactionOutputOrBuilder
Protobuf typewallet.TransactionOutput
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProtos.TransactionOutput.BuilderProtobuf typewallet.TransactionOutput-
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 intSPENT_BY_TRANSACTION_HASH_FIELD_NUMBERstatic intSPENT_BY_TRANSACTION_INDEX_FIELD_NUMBERstatic intVALUE_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.TransactionOutputgetDefaultInstance()com.google.protobuf.ByteStringgetScriptBytes()script of transaction outputcom.google.protobuf.ByteStringgetSpentByTransactionHash()If spent, the hash of the transaction doing the spend.intgetSpentByTransactionIndex()If spent, the index of the transaction input of the transaction doing the spend.longgetValue()required int64 value = 1;booleanhasScriptBytes()script of transaction outputbooleanhasSpentByTransactionHash()If spent, the hash of the transaction doing the spend.booleanhasSpentByTransactionIndex()If spent, the index of the transaction input of the transaction doing the spend.booleanhasValue()required int64 value = 1;static Protos.TransactionOutput.BuildernewBuilder()static Protos.TransactionOutput.BuildernewBuilder(Protos.TransactionOutput prototype)static Protos.TransactionOutputparseDelimitedFrom(java.io.InputStream input)static Protos.TransactionOutputparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.TransactionOutputparseFrom(byte[] data)static Protos.TransactionOutputparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.TransactionOutputparseFrom(com.google.protobuf.ByteString data)static Protos.TransactionOutputparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.TransactionOutputparseFrom(com.google.protobuf.CodedInputStream input)static Protos.TransactionOutputparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.TransactionOutputparseFrom(java.io.InputStream input)static Protos.TransactionOutputparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.TransactionOutputparseFrom(java.nio.ByteBuffer data)static Protos.TransactionOutputparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Protos.TransactionOutput>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
-
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCRIPT_BYTES_FIELD_NUMBER
public static final int SCRIPT_BYTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPENT_BY_TRANSACTION_HASH_FIELD_NUMBER
public static final int SPENT_BY_TRANSACTION_HASH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPENT_BY_TRANSACTION_INDEX_FIELD_NUMBER
public static final int SPENT_BY_TRANSACTION_INDEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasValue
public boolean hasValue()
required int64 value = 1;- Specified by:
hasValuein interfaceProtos.TransactionOutputOrBuilder- Returns:
- Whether the value field is set.
-
getValue
public long getValue()
required int64 value = 1;- Specified by:
getValuein interfaceProtos.TransactionOutputOrBuilder- Returns:
- The value.
-
hasScriptBytes
public boolean hasScriptBytes()
script of transaction output
required bytes script_bytes = 2;- Specified by:
hasScriptBytesin interfaceProtos.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:
getScriptBytesin interfaceProtos.TransactionOutputOrBuilder- Returns:
- The scriptBytes.
-
hasSpentByTransactionHash
public boolean hasSpentByTransactionHash()
If spent, the hash of the transaction doing the spend.
optional bytes spent_by_transaction_hash = 3;- Specified by:
hasSpentByTransactionHashin interfaceProtos.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:
getSpentByTransactionHashin interfaceProtos.TransactionOutputOrBuilder- Returns:
- The spentByTransactionHash.
-
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:
hasSpentByTransactionIndexin interfaceProtos.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:
getSpentByTransactionIndexin interfaceProtos.TransactionOutputOrBuilder- Returns:
- The spentByTransactionIndex.
-
parseFrom
public static Protos.TransactionOutput parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionOutput parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionOutput parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionOutput 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.TransactionOutput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionOutput parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionOutput parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.TransactionOutput parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Protos.TransactionOutput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Protos.TransactionOutput parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.TransactionOutput parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.TransactionOutput parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static Protos.TransactionOutput.Builder newBuilder()
-
newBuilder
public static Protos.TransactionOutput.Builder newBuilder(Protos.TransactionOutput 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.TransactionOutput,Protos.TransactionOutput.Builder>
-
getDefaultInstance
public static Protos.TransactionOutput getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Protos.TransactionOutput> parser()
-
-