Package org.bitcoinj.wallet
Class Protos.Wallet
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Protos.Wallet,Protos.Wallet.Builder>
org.bitcoinj.wallet.Protos.Wallet
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Protos.WalletOrBuilder
- Enclosing class:
- Protos
public static final class Protos.Wallet
extends com.google.protobuf.GeneratedMessageLite<Protos.Wallet,Protos.Wallet.Builder>
implements Protos.WalletOrBuilder
A bitcoin walletProtobuf type
wallet.Wallet-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA bitcoin walletstatic enumThe encryption type of the wallet.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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic 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.WalletA UTF8 encoded text description of the wallet that is intended for end user provided text.com.google.protobuf.ByteStringA UTF8 encoded text description of the wallet that is intended for end user provided text.optional .wallet.ScryptParameters encryption_parameters = 6;optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];getExtension(int index) repeated .wallet.Extension extension = 10;intrepeated .wallet.Extension extension = 10;repeated .wallet.Extension extension = 10;getExtensionOrBuilder(int index) repeated .wallet.Extension extension = 10;List<? extends Protos.ExtensionOrBuilder>repeated .wallet.Extension extension = 10;getKey(int index) repeated .wallet.Key key = 3;intrepeated .wallet.Key key = 3;repeated .wallet.Key key = 3;getKeyOrBuilder(int index) repeated .wallet.Key key = 3;List<? extends Protos.KeyOrBuilder>repeated .wallet.Key key = 3;longUNIX time in seconds since the epoch.com.google.protobuf.ByteStringThe SHA256 hash of the head of the best chain seen by this wallet.intThe height in the chain of the last seen block.longoptional int64 last_seen_block_time_secs = 14;the network used by this walletcom.google.protobuf.ByteStringthe network used by this walletgetTags(int index) repeated .wallet.Tag tags = 16;intrepeated .wallet.Tag tags = 16;repeated .wallet.Tag tags = 16;getTagsOrBuilder(int index) repeated .wallet.Tag tags = 16;List<? extends Protos.TagOrBuilder>repeated .wallet.Tag tags = 16;getTransaction(int index) repeated .wallet.Transaction transaction = 4;intrepeated .wallet.Transaction transaction = 4;repeated .wallet.Transaction transaction = 4;getTransactionOrBuilder(int index) repeated .wallet.Transaction transaction = 4;List<? extends Protos.TransactionOrBuilder>repeated .wallet.Transaction transaction = 4;intThe version number of the wallet - used to detect wallets that were produced in the future (i.e.getWatchedScript(int index) repeated .wallet.Script watched_script = 15;intrepeated .wallet.Script watched_script = 15;repeated .wallet.Script watched_script = 15;getWatchedScriptOrBuilder(int index) repeated .wallet.Script watched_script = 15;List<? extends Protos.ScriptOrBuilder>repeated .wallet.Script watched_script = 15;booleanA UTF8 encoded text description of the wallet that is intended for end user provided text.booleanoptional .wallet.ScryptParameters encryption_parameters = 6;booleanoptional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];booleanUNIX time in seconds since the epoch.booleanThe SHA256 hash of the head of the best chain seen by this wallet.booleanThe height in the chain of the last seen block.booleanoptional int64 last_seen_block_time_secs = 14;booleanthe network used by this walletbooleanThe version number of the wallet - used to detect wallets that were produced in the future (i.e.static Protos.Wallet.Builderstatic Protos.Wallet.BuildernewBuilder(Protos.Wallet prototype) static Protos.WalletparseDelimitedFrom(InputStream input) static Protos.WalletparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.WalletparseFrom(byte[] data) static Protos.WalletparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.WalletparseFrom(com.google.protobuf.ByteString data) static Protos.WalletparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.WalletparseFrom(com.google.protobuf.CodedInputStream input) static Protos.WalletparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.WalletparseFrom(InputStream input) static Protos.WalletparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.WalletparseFrom(ByteBuffer data) static Protos.WalletparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Protos.Wallet>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
-
NETWORK_IDENTIFIER_FIELD_NUMBER
public static final int NETWORK_IDENTIFIER_FIELD_NUMBER- See Also:
-
LAST_SEEN_BLOCK_HASH_FIELD_NUMBER
public static final int LAST_SEEN_BLOCK_HASH_FIELD_NUMBER- See Also:
-
LAST_SEEN_BLOCK_HEIGHT_FIELD_NUMBER
public static final int LAST_SEEN_BLOCK_HEIGHT_FIELD_NUMBER- See Also:
-
LAST_SEEN_BLOCK_TIME_SECS_FIELD_NUMBER
public static final int LAST_SEEN_BLOCK_TIME_SECS_FIELD_NUMBER- See Also:
-
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER- See Also:
-
TRANSACTION_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER- See Also:
-
WATCHED_SCRIPT_FIELD_NUMBER
public static final int WATCHED_SCRIPT_FIELD_NUMBER- See Also:
-
ENCRYPTION_TYPE_FIELD_NUMBER
public static final int ENCRYPTION_TYPE_FIELD_NUMBER- See Also:
-
ENCRYPTION_PARAMETERS_FIELD_NUMBER
public static final int ENCRYPTION_PARAMETERS_FIELD_NUMBER- See Also:
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER- See Also:
-
EXTENSION_FIELD_NUMBER
public static final int EXTENSION_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
KEY_ROTATION_TIME_FIELD_NUMBER
public static final int KEY_ROTATION_TIME_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasNetworkIdentifier
public boolean hasNetworkIdentifier()the network used by this wallet
required string network_identifier = 1;- Specified by:
hasNetworkIdentifierin interfaceProtos.WalletOrBuilder- Returns:
- Whether the networkIdentifier field is set.
-
getNetworkIdentifier
the network used by this wallet
required string network_identifier = 1;- Specified by:
getNetworkIdentifierin interfaceProtos.WalletOrBuilder- Returns:
- The networkIdentifier.
-
getNetworkIdentifierBytes
public com.google.protobuf.ByteString getNetworkIdentifierBytes()the network used by this wallet
required string network_identifier = 1;- Specified by:
getNetworkIdentifierBytesin interfaceProtos.WalletOrBuilder- Returns:
- The bytes for networkIdentifier.
-
hasLastSeenBlockHash
public boolean hasLastSeenBlockHash()The SHA256 hash of the head of the best chain seen by this wallet.
optional bytes last_seen_block_hash = 2;- Specified by:
hasLastSeenBlockHashin interfaceProtos.WalletOrBuilder- Returns:
- Whether the lastSeenBlockHash field is set.
-
getLastSeenBlockHash
public com.google.protobuf.ByteString getLastSeenBlockHash()The SHA256 hash of the head of the best chain seen by this wallet.
optional bytes last_seen_block_hash = 2;- Specified by:
getLastSeenBlockHashin interfaceProtos.WalletOrBuilder- Returns:
- The lastSeenBlockHash.
-
hasLastSeenBlockHeight
public boolean hasLastSeenBlockHeight()The height in the chain of the last seen block.
optional uint32 last_seen_block_height = 12;- Specified by:
hasLastSeenBlockHeightin interfaceProtos.WalletOrBuilder- Returns:
- Whether the lastSeenBlockHeight field is set.
-
getLastSeenBlockHeight
public int getLastSeenBlockHeight()The height in the chain of the last seen block.
optional uint32 last_seen_block_height = 12;- Specified by:
getLastSeenBlockHeightin interfaceProtos.WalletOrBuilder- Returns:
- The lastSeenBlockHeight.
-
hasLastSeenBlockTimeSecs
public boolean hasLastSeenBlockTimeSecs()optional int64 last_seen_block_time_secs = 14;- Specified by:
hasLastSeenBlockTimeSecsin interfaceProtos.WalletOrBuilder- Returns:
- Whether the lastSeenBlockTimeSecs field is set.
-
getLastSeenBlockTimeSecs
public long getLastSeenBlockTimeSecs()optional int64 last_seen_block_time_secs = 14;- Specified by:
getLastSeenBlockTimeSecsin interfaceProtos.WalletOrBuilder- Returns:
- The lastSeenBlockTimeSecs.
-
getKeyList
repeated .wallet.Key key = 3;- Specified by:
getKeyListin interfaceProtos.WalletOrBuilder
-
getKeyOrBuilderList
repeated .wallet.Key key = 3; -
getKeyCount
public int getKeyCount()repeated .wallet.Key key = 3;- Specified by:
getKeyCountin interfaceProtos.WalletOrBuilder
-
getKey
repeated .wallet.Key key = 3;- Specified by:
getKeyin interfaceProtos.WalletOrBuilder
-
getKeyOrBuilder
repeated .wallet.Key key = 3; -
getTransactionList
repeated .wallet.Transaction transaction = 4;- Specified by:
getTransactionListin interfaceProtos.WalletOrBuilder
-
getTransactionOrBuilderList
repeated .wallet.Transaction transaction = 4; -
getTransactionCount
public int getTransactionCount()repeated .wallet.Transaction transaction = 4;- Specified by:
getTransactionCountin interfaceProtos.WalletOrBuilder
-
getTransaction
repeated .wallet.Transaction transaction = 4;- Specified by:
getTransactionin interfaceProtos.WalletOrBuilder
-
getTransactionOrBuilder
repeated .wallet.Transaction transaction = 4; -
getWatchedScriptList
repeated .wallet.Script watched_script = 15;- Specified by:
getWatchedScriptListin interfaceProtos.WalletOrBuilder
-
getWatchedScriptOrBuilderList
repeated .wallet.Script watched_script = 15; -
getWatchedScriptCount
public int getWatchedScriptCount()repeated .wallet.Script watched_script = 15;- Specified by:
getWatchedScriptCountin interfaceProtos.WalletOrBuilder
-
getWatchedScript
repeated .wallet.Script watched_script = 15;- Specified by:
getWatchedScriptin interfaceProtos.WalletOrBuilder
-
getWatchedScriptOrBuilder
repeated .wallet.Script watched_script = 15; -
hasEncryptionType
public boolean hasEncryptionType()optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];- Specified by:
hasEncryptionTypein interfaceProtos.WalletOrBuilder- Returns:
- Whether the encryptionType field is set.
-
getEncryptionType
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];- Specified by:
getEncryptionTypein interfaceProtos.WalletOrBuilder- Returns:
- The encryptionType.
-
hasEncryptionParameters
public boolean hasEncryptionParameters()optional .wallet.ScryptParameters encryption_parameters = 6;- Specified by:
hasEncryptionParametersin interfaceProtos.WalletOrBuilder- Returns:
- Whether the encryptionParameters field is set.
-
getEncryptionParameters
optional .wallet.ScryptParameters encryption_parameters = 6;- Specified by:
getEncryptionParametersin interfaceProtos.WalletOrBuilder- Returns:
- The encryptionParameters.
-
hasVersion
public boolean hasVersion()The version number of the wallet - used to detect wallets that were produced in the future (i.e. the wallet may contain some future format this protobuf or parser code does not know about). A version that's higher than the default is considered from the future.
optional int32 version = 7 [default = 1];- Specified by:
hasVersionin interfaceProtos.WalletOrBuilder- Returns:
- Whether the version field is set.
-
getVersion
public int getVersion()The version number of the wallet - used to detect wallets that were produced in the future (i.e. the wallet may contain some future format this protobuf or parser code does not know about). A version that's higher than the default is considered from the future.
optional int32 version = 7 [default = 1];- Specified by:
getVersionin interfaceProtos.WalletOrBuilder- Returns:
- The version.
-
getExtensionList
repeated .wallet.Extension extension = 10;- Specified by:
getExtensionListin interfaceProtos.WalletOrBuilder
-
getExtensionOrBuilderList
repeated .wallet.Extension extension = 10; -
getExtensionCount
public int getExtensionCount()repeated .wallet.Extension extension = 10;- Specified by:
getExtensionCountin interfaceProtos.WalletOrBuilder
-
getExtension
repeated .wallet.Extension extension = 10;- Specified by:
getExtensionin interfaceProtos.WalletOrBuilder
-
getExtensionOrBuilder
repeated .wallet.Extension extension = 10; -
hasDescription
public boolean hasDescription()A UTF8 encoded text description of the wallet that is intended for end user provided text.
optional string description = 11;- Specified by:
hasDescriptionin interfaceProtos.WalletOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
A UTF8 encoded text description of the wallet that is intended for end user provided text.
optional string description = 11;- Specified by:
getDescriptionin interfaceProtos.WalletOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()A UTF8 encoded text description of the wallet that is intended for end user provided text.
optional string description = 11;- Specified by:
getDescriptionBytesin interfaceProtos.WalletOrBuilder- Returns:
- The bytes for description.
-
hasKeyRotationTime
public boolean hasKeyRotationTime()UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
optional uint64 key_rotation_time = 13;- Specified by:
hasKeyRotationTimein interfaceProtos.WalletOrBuilder- Returns:
- Whether the keyRotationTime field is set.
-
getKeyRotationTime
public long getKeyRotationTime()UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
optional uint64 key_rotation_time = 13;- Specified by:
getKeyRotationTimein interfaceProtos.WalletOrBuilder- Returns:
- The keyRotationTime.
-
getTagsList
repeated .wallet.Tag tags = 16;- Specified by:
getTagsListin interfaceProtos.WalletOrBuilder
-
getTagsOrBuilderList
repeated .wallet.Tag tags = 16; -
getTagsCount
public int getTagsCount()repeated .wallet.Tag tags = 16;- Specified by:
getTagsCountin interfaceProtos.WalletOrBuilder
-
getTags
repeated .wallet.Tag tags = 16;- Specified by:
getTagsin interfaceProtos.WalletOrBuilder
-
getTagsOrBuilder
repeated .wallet.Tag tags = 16; -
parseFrom
public static Protos.Wallet parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.Wallet parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.Wallet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.Wallet 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.Wallet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.Wallet 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.Wallet parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Protos.Wallet parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Protos.Wallet parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Protos.Wallet 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.Wallet,Protos.Wallet.Builder>
-
getDefaultInstance
-
parser
-