Package org.bitcoinj.wallet
Class Protos.TransactionOutput
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Protos.TransactionOutput,Protos.TransactionOutput.Builder>
org.bitcoinj.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 type
wallet.TransactionOutput
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Protobuf 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 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
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageLite
memoizedSerializedSize, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
dynamicMethod
(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static Protos.TransactionOutput
com.google.protobuf.ByteString
script of transaction outputcom.google.protobuf.ByteString
If spent, the hash of the transaction doing the spend.int
If spent, the index of the transaction input of the transaction doing the spend.long
getValue()
required int64 value = 1;
boolean
script of transaction outputboolean
If spent, the hash of the transaction doing the spend.boolean
If spent, the index of the transaction input of the transaction doing the spend.boolean
hasValue()
required int64 value = 1;
newBuilder
(Protos.TransactionOutput prototype) static Protos.TransactionOutput
parseDelimitedFrom
(InputStream input) static Protos.TransactionOutput
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionOutput
parseFrom
(byte[] data) static Protos.TransactionOutput
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionOutput
parseFrom
(com.google.protobuf.ByteString data) static Protos.TransactionOutput
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionOutput
parseFrom
(com.google.protobuf.CodedInputStream input) static Protos.TransactionOutput
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionOutput
parseFrom
(InputStream input) static Protos.TransactionOutput
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionOutput
parseFrom
(ByteBuffer data) static Protos.TransactionOutput
parseFrom
(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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER- See Also:
-
SCRIPT_BYTES_FIELD_NUMBER
public static final int SCRIPT_BYTES_FIELD_NUMBER- See Also:
-
SPENT_BY_TRANSACTION_HASH_FIELD_NUMBER
public static final int SPENT_BY_TRANSACTION_HASH_FIELD_NUMBER- See Also:
-
SPENT_BY_TRANSACTION_INDEX_FIELD_NUMBER
public static final int SPENT_BY_TRANSACTION_INDEX_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasValue
public boolean hasValue()required int64 value = 1;
- Specified by:
hasValue
in interfaceProtos.TransactionOutputOrBuilder
- Returns:
- Whether the value field is set.
-
getValue
public long getValue()required int64 value = 1;
- Specified by:
getValue
in interfaceProtos.TransactionOutputOrBuilder
- Returns:
- The value.
-
hasScriptBytes
public boolean hasScriptBytes()script of transaction output
required bytes script_bytes = 2;
- Specified by:
hasScriptBytes
in 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:
getScriptBytes
in 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:
hasSpentByTransactionHash
in 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:
getSpentByTransactionHash
in 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:
hasSpentByTransactionIndex
in 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:
getSpentByTransactionIndex
in interfaceProtos.TransactionOutputOrBuilder
- Returns:
- The spentByTransactionIndex.
-
parseFrom
public static Protos.TransactionOutput parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionOutput parseFrom(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
- Throws:
IOException
-
parseFrom
public static Protos.TransactionOutput parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Protos.TransactionOutput parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Protos.TransactionOutput parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Protos.TransactionOutput 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:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<Protos.TransactionOutput,
Protos.TransactionOutput.Builder>
-
getDefaultInstance
-
parser
-