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
Modifier and TypeClassDescriptionstatic final class
A bitcoin walletstatic enum
The 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
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static 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.Wallet
A UTF8 encoded text description of the wallet that is intended for end user provided text.com.google.protobuf.ByteString
A 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;
int
repeated .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;
int
repeated .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;
long
UNIX time in seconds since the epoch.com.google.protobuf.ByteString
The SHA256 hash of the head of the best chain seen by this wallet.int
The height in the chain of the last seen block.long
optional int64 last_seen_block_time_secs = 14;
the network used by this walletcom.google.protobuf.ByteString
the network used by this walletgetTags
(int index) repeated .wallet.Tag tags = 16;
int
repeated .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;
int
repeated .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;
int
The 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;
int
repeated .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;
boolean
A UTF8 encoded text description of the wallet that is intended for end user provided text.boolean
optional .wallet.ScryptParameters encryption_parameters = 6;
boolean
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
boolean
UNIX time in seconds since the epoch.boolean
The SHA256 hash of the head of the best chain seen by this wallet.boolean
The height in the chain of the last seen block.boolean
optional int64 last_seen_block_time_secs = 14;
boolean
the network used by this walletboolean
The version number of the wallet - used to detect wallets that were produced in the future (i.e.static Protos.Wallet.Builder
static Protos.Wallet.Builder
newBuilder
(Protos.Wallet prototype) static Protos.Wallet
parseDelimitedFrom
(InputStream input) static Protos.Wallet
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.Wallet
parseFrom
(byte[] data) static Protos.Wallet
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.Wallet
parseFrom
(com.google.protobuf.ByteString data) static Protos.Wallet
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.Wallet
parseFrom
(com.google.protobuf.CodedInputStream input) static Protos.Wallet
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.Wallet
parseFrom
(InputStream input) static Protos.Wallet
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.Wallet
parseFrom
(ByteBuffer data) static Protos.Wallet
parseFrom
(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, 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
-
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:
hasNetworkIdentifier
in interfaceProtos.WalletOrBuilder
- Returns:
- Whether the networkIdentifier field is set.
-
getNetworkIdentifier
the network used by this wallet
required string network_identifier = 1;
- Specified by:
getNetworkIdentifier
in 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:
getNetworkIdentifierBytes
in 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:
hasLastSeenBlockHash
in 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:
getLastSeenBlockHash
in 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:
hasLastSeenBlockHeight
in 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:
getLastSeenBlockHeight
in interfaceProtos.WalletOrBuilder
- Returns:
- The lastSeenBlockHeight.
-
hasLastSeenBlockTimeSecs
public boolean hasLastSeenBlockTimeSecs()optional int64 last_seen_block_time_secs = 14;
- Specified by:
hasLastSeenBlockTimeSecs
in interfaceProtos.WalletOrBuilder
- Returns:
- Whether the lastSeenBlockTimeSecs field is set.
-
getLastSeenBlockTimeSecs
public long getLastSeenBlockTimeSecs()optional int64 last_seen_block_time_secs = 14;
- Specified by:
getLastSeenBlockTimeSecs
in interfaceProtos.WalletOrBuilder
- Returns:
- The lastSeenBlockTimeSecs.
-
getKeyList
repeated .wallet.Key key = 3;
- Specified by:
getKeyList
in interfaceProtos.WalletOrBuilder
-
getKeyOrBuilderList
repeated .wallet.Key key = 3;
-
getKeyCount
public int getKeyCount()repeated .wallet.Key key = 3;
- Specified by:
getKeyCount
in interfaceProtos.WalletOrBuilder
-
getKey
repeated .wallet.Key key = 3;
- Specified by:
getKey
in interfaceProtos.WalletOrBuilder
-
getKeyOrBuilder
repeated .wallet.Key key = 3;
-
getTransactionList
repeated .wallet.Transaction transaction = 4;
- Specified by:
getTransactionList
in interfaceProtos.WalletOrBuilder
-
getTransactionOrBuilderList
repeated .wallet.Transaction transaction = 4;
-
getTransactionCount
public int getTransactionCount()repeated .wallet.Transaction transaction = 4;
- Specified by:
getTransactionCount
in interfaceProtos.WalletOrBuilder
-
getTransaction
repeated .wallet.Transaction transaction = 4;
- Specified by:
getTransaction
in interfaceProtos.WalletOrBuilder
-
getTransactionOrBuilder
repeated .wallet.Transaction transaction = 4;
-
getWatchedScriptList
repeated .wallet.Script watched_script = 15;
- Specified by:
getWatchedScriptList
in interfaceProtos.WalletOrBuilder
-
getWatchedScriptOrBuilderList
repeated .wallet.Script watched_script = 15;
-
getWatchedScriptCount
public int getWatchedScriptCount()repeated .wallet.Script watched_script = 15;
- Specified by:
getWatchedScriptCount
in interfaceProtos.WalletOrBuilder
-
getWatchedScript
repeated .wallet.Script watched_script = 15;
- Specified by:
getWatchedScript
in interfaceProtos.WalletOrBuilder
-
getWatchedScriptOrBuilder
repeated .wallet.Script watched_script = 15;
-
hasEncryptionType
public boolean hasEncryptionType()optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
- Specified by:
hasEncryptionType
in interfaceProtos.WalletOrBuilder
- Returns:
- Whether the encryptionType field is set.
-
getEncryptionType
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
- Specified by:
getEncryptionType
in interfaceProtos.WalletOrBuilder
- Returns:
- The encryptionType.
-
hasEncryptionParameters
public boolean hasEncryptionParameters()optional .wallet.ScryptParameters encryption_parameters = 6;
- Specified by:
hasEncryptionParameters
in interfaceProtos.WalletOrBuilder
- Returns:
- Whether the encryptionParameters field is set.
-
getEncryptionParameters
optional .wallet.ScryptParameters encryption_parameters = 6;
- Specified by:
getEncryptionParameters
in 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:
hasVersion
in 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:
getVersion
in interfaceProtos.WalletOrBuilder
- Returns:
- The version.
-
getExtensionList
repeated .wallet.Extension extension = 10;
- Specified by:
getExtensionList
in interfaceProtos.WalletOrBuilder
-
getExtensionOrBuilderList
repeated .wallet.Extension extension = 10;
-
getExtensionCount
public int getExtensionCount()repeated .wallet.Extension extension = 10;
- Specified by:
getExtensionCount
in interfaceProtos.WalletOrBuilder
-
getExtension
repeated .wallet.Extension extension = 10;
- Specified by:
getExtension
in 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:
hasDescription
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
hasKeyRotationTime
in 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:
getKeyRotationTime
in interfaceProtos.WalletOrBuilder
- Returns:
- The keyRotationTime.
-
getTagsList
repeated .wallet.Tag tags = 16;
- Specified by:
getTagsList
in interfaceProtos.WalletOrBuilder
-
getTagsOrBuilderList
repeated .wallet.Tag tags = 16;
-
getTagsCount
public int getTagsCount()repeated .wallet.Tag tags = 16;
- Specified by:
getTagsCount
in interfaceProtos.WalletOrBuilder
-
getTags
repeated .wallet.Tag tags = 16;
- Specified by:
getTags
in 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:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<Protos.Wallet,
Protos.Wallet.Builder>
-
getDefaultInstance
-
parser
-