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
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typewallet.TransactionOutputNested 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 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.TransactionOutputcom.google.protobuf.ByteStringscript of transaction outputcom.google.protobuf.ByteStringIf spent, the hash of the transaction doing the spend.intIf spent, the index of the transaction input of the transaction doing the spend.longgetValue()required int64 value = 1;booleanscript of transaction outputbooleanIf spent, the hash of the transaction doing the spend.booleanIf spent, the index of the transaction input of the transaction doing the spend.booleanhasValue()required int64 value = 1;newBuilder(Protos.TransactionOutput prototype) static Protos.TransactionOutputparseDelimitedFrom(InputStream input) static Protos.TransactionOutputparseDelimitedFrom(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(InputStream input) static Protos.TransactionOutputparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionOutputparseFrom(ByteBuffer data) static Protos.TransactionOutputparseFrom(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, 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
-
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:
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(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:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Protos.TransactionOutput,Protos.TransactionOutput.Builder>
-
getDefaultInstance
-
parser
-