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 class
Protos.TransactionOutput.Builder
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 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
SPENT_BY_TRANSACTION_HASH_FIELD_NUMBER
static int
SPENT_BY_TRANSACTION_INDEX_FIELD_NUMBER
static int
VALUE_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.TransactionOutput
getDefaultInstance()
com.google.protobuf.ByteString
getScriptBytes()
script of transaction outputcom.google.protobuf.ByteString
getSpentByTransactionHash()
If spent, the hash of the transaction doing the spend.int
getSpentByTransactionIndex()
If spent, the index of the transaction input of the transaction doing the spend.long
getValue()
required int64 value = 1;
boolean
hasScriptBytes()
script of transaction outputboolean
hasSpentByTransactionHash()
If spent, the hash of the transaction doing the spend.boolean
hasSpentByTransactionIndex()
If spent, the index of the transaction input of the transaction doing the spend.boolean
hasValue()
required int64 value = 1;
static Protos.TransactionOutput.Builder
newBuilder()
static Protos.TransactionOutput.Builder
newBuilder(Protos.TransactionOutput prototype)
static Protos.TransactionOutput
parseDelimitedFrom(java.io.InputStream input)
static Protos.TransactionOutput
parseDelimitedFrom(java.io.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(java.io.InputStream input)
static Protos.TransactionOutput
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Protos.TransactionOutput
parseFrom(java.nio.ByteBuffer data)
static Protos.TransactionOutput
parseFrom(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:
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(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:
dynamicMethod
in 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()
-
-