public static final class Protos.Wallet extends com.google.protobuf.GeneratedMessage implements Protos.WalletOrBuilder
wallet.Wallet
A bitcoin wallet
Modifier and Type | Class and Description |
---|---|
static class |
Protos.Wallet.Builder
Protobuf type
wallet.Wallet |
static class |
Protos.Wallet.EncryptionType
Protobuf enum
wallet.Wallet.EncryptionType |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
ENCRYPTION_PARAMETERS_FIELD_NUMBER |
static int |
ENCRYPTION_TYPE_FIELD_NUMBER |
static int |
EXTENSION_FIELD_NUMBER |
static int |
KEY_FIELD_NUMBER |
static int |
KEY_ROTATION_TIME_FIELD_NUMBER |
static int |
LAST_SEEN_BLOCK_HASH_FIELD_NUMBER |
static int |
LAST_SEEN_BLOCK_HEIGHT_FIELD_NUMBER |
static int |
LAST_SEEN_BLOCK_TIME_SECS_FIELD_NUMBER |
static int |
NETWORK_IDENTIFIER_FIELD_NUMBER |
static com.google.protobuf.Parser<Protos.Wallet> |
PARSER |
static int |
TRANSACTION_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
static int |
WATCHED_SCRIPT_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
static Protos.Wallet |
getDefaultInstance() |
Protos.Wallet |
getDefaultInstanceForType() |
String |
getDescription()
optional string description = 11; |
com.google.protobuf.ByteString |
getDescriptionBytes()
optional string description = 11; |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.ScryptParameters |
getEncryptionParameters()
optional .wallet.ScryptParameters encryption_parameters = 6; |
Protos.ScryptParametersOrBuilder |
getEncryptionParametersOrBuilder()
optional .wallet.ScryptParameters encryption_parameters = 6; |
Protos.Wallet.EncryptionType |
getEncryptionType()
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED]; |
Protos.Extension |
getExtension(int index)
repeated .wallet.Extension extension = 10; |
int |
getExtensionCount()
repeated .wallet.Extension extension = 10; |
List<Protos.Extension> |
getExtensionList()
repeated .wallet.Extension extension = 10; |
Protos.ExtensionOrBuilder |
getExtensionOrBuilder(int index)
repeated .wallet.Extension extension = 10; |
List<? extends Protos.ExtensionOrBuilder> |
getExtensionOrBuilderList()
repeated .wallet.Extension extension = 10; |
Protos.Key |
getKey(int index)
repeated .wallet.Key key = 3; |
int |
getKeyCount()
repeated .wallet.Key key = 3; |
List<Protos.Key> |
getKeyList()
repeated .wallet.Key key = 3; |
Protos.KeyOrBuilder |
getKeyOrBuilder(int index)
repeated .wallet.Key key = 3; |
List<? extends Protos.KeyOrBuilder> |
getKeyOrBuilderList()
repeated .wallet.Key key = 3; |
long |
getKeyRotationTime()
optional uint64 key_rotation_time = 13; |
com.google.protobuf.ByteString |
getLastSeenBlockHash()
optional bytes last_seen_block_hash = 2; |
int |
getLastSeenBlockHeight()
optional uint32 last_seen_block_height = 12; |
long |
getLastSeenBlockTimeSecs()
optional int64 last_seen_block_time_secs = 14; |
String |
getNetworkIdentifier()
required string network_identifier = 1; |
com.google.protobuf.ByteString |
getNetworkIdentifierBytes()
required string network_identifier = 1; |
com.google.protobuf.Parser<Protos.Wallet> |
getParserForType() |
int |
getSerializedSize() |
Protos.Transaction |
getTransaction(int index)
repeated .wallet.Transaction transaction = 4; |
int |
getTransactionCount()
repeated .wallet.Transaction transaction = 4; |
List<Protos.Transaction> |
getTransactionList()
repeated .wallet.Transaction transaction = 4; |
Protos.TransactionOrBuilder |
getTransactionOrBuilder(int index)
repeated .wallet.Transaction transaction = 4; |
List<? extends Protos.TransactionOrBuilder> |
getTransactionOrBuilderList()
repeated .wallet.Transaction transaction = 4; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getVersion()
optional int32 version = 7; |
Protos.Script |
getWatchedScript(int index)
repeated .wallet.Script watched_script = 15; |
int |
getWatchedScriptCount()
repeated .wallet.Script watched_script = 15; |
List<Protos.Script> |
getWatchedScriptList()
repeated .wallet.Script watched_script = 15; |
Protos.ScriptOrBuilder |
getWatchedScriptOrBuilder(int index)
repeated .wallet.Script watched_script = 15; |
List<? extends Protos.ScriptOrBuilder> |
getWatchedScriptOrBuilderList()
repeated .wallet.Script watched_script = 15; |
boolean |
hasDescription()
optional string description = 11; |
boolean |
hasEncryptionParameters()
optional .wallet.ScryptParameters encryption_parameters = 6; |
boolean |
hasEncryptionType()
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED]; |
boolean |
hasKeyRotationTime()
optional uint64 key_rotation_time = 13; |
boolean |
hasLastSeenBlockHash()
optional bytes last_seen_block_hash = 2; |
boolean |
hasLastSeenBlockHeight()
optional uint32 last_seen_block_height = 12; |
boolean |
hasLastSeenBlockTimeSecs()
optional int64 last_seen_block_time_secs = 14; |
boolean |
hasNetworkIdentifier()
required string network_identifier = 1; |
boolean |
hasVersion()
optional int32 version = 7; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Wallet.Builder |
newBuilder() |
static Protos.Wallet.Builder |
newBuilder(Protos.Wallet prototype) |
Protos.Wallet.Builder |
newBuilderForType() |
protected Protos.Wallet.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
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) |
Protos.Wallet.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<Protos.Wallet> PARSER
public static final int NETWORK_IDENTIFIER_FIELD_NUMBER
public static final int LAST_SEEN_BLOCK_HASH_FIELD_NUMBER
public static final int LAST_SEEN_BLOCK_HEIGHT_FIELD_NUMBER
public static final int LAST_SEEN_BLOCK_TIME_SECS_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER
public static final int WATCHED_SCRIPT_FIELD_NUMBER
public static final int ENCRYPTION_TYPE_FIELD_NUMBER
public static final int ENCRYPTION_PARAMETERS_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
public static final int EXTENSION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int KEY_ROTATION_TIME_FIELD_NUMBER
public static Protos.Wallet getDefaultInstance()
public Protos.Wallet getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<Protos.Wallet> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasNetworkIdentifier()
required string network_identifier = 1;
the network used by this wallet
hasNetworkIdentifier
in interface Protos.WalletOrBuilder
public String getNetworkIdentifier()
required string network_identifier = 1;
the network used by this wallet
getNetworkIdentifier
in interface Protos.WalletOrBuilder
public com.google.protobuf.ByteString getNetworkIdentifierBytes()
required string network_identifier = 1;
the network used by this wallet
getNetworkIdentifierBytes
in interface Protos.WalletOrBuilder
public boolean hasLastSeenBlockHash()
optional bytes last_seen_block_hash = 2;
The SHA256 hash of the head of the best chain seen by this wallet.
hasLastSeenBlockHash
in interface Protos.WalletOrBuilder
public com.google.protobuf.ByteString getLastSeenBlockHash()
optional bytes last_seen_block_hash = 2;
The SHA256 hash of the head of the best chain seen by this wallet.
getLastSeenBlockHash
in interface Protos.WalletOrBuilder
public boolean hasLastSeenBlockHeight()
optional uint32 last_seen_block_height = 12;
The height in the chain of the last seen block.
hasLastSeenBlockHeight
in interface Protos.WalletOrBuilder
public int getLastSeenBlockHeight()
optional uint32 last_seen_block_height = 12;
The height in the chain of the last seen block.
getLastSeenBlockHeight
in interface Protos.WalletOrBuilder
public boolean hasLastSeenBlockTimeSecs()
optional int64 last_seen_block_time_secs = 14;
hasLastSeenBlockTimeSecs
in interface Protos.WalletOrBuilder
public long getLastSeenBlockTimeSecs()
optional int64 last_seen_block_time_secs = 14;
getLastSeenBlockTimeSecs
in interface Protos.WalletOrBuilder
public List<Protos.Key> getKeyList()
repeated .wallet.Key key = 3;
getKeyList
in interface Protos.WalletOrBuilder
public List<? extends Protos.KeyOrBuilder> getKeyOrBuilderList()
repeated .wallet.Key key = 3;
getKeyOrBuilderList
in interface Protos.WalletOrBuilder
public int getKeyCount()
repeated .wallet.Key key = 3;
getKeyCount
in interface Protos.WalletOrBuilder
public Protos.Key getKey(int index)
repeated .wallet.Key key = 3;
getKey
in interface Protos.WalletOrBuilder
public Protos.KeyOrBuilder getKeyOrBuilder(int index)
repeated .wallet.Key key = 3;
getKeyOrBuilder
in interface Protos.WalletOrBuilder
public List<Protos.Transaction> getTransactionList()
repeated .wallet.Transaction transaction = 4;
getTransactionList
in interface Protos.WalletOrBuilder
public List<? extends Protos.TransactionOrBuilder> getTransactionOrBuilderList()
repeated .wallet.Transaction transaction = 4;
getTransactionOrBuilderList
in interface Protos.WalletOrBuilder
public int getTransactionCount()
repeated .wallet.Transaction transaction = 4;
getTransactionCount
in interface Protos.WalletOrBuilder
public Protos.Transaction getTransaction(int index)
repeated .wallet.Transaction transaction = 4;
getTransaction
in interface Protos.WalletOrBuilder
public Protos.TransactionOrBuilder getTransactionOrBuilder(int index)
repeated .wallet.Transaction transaction = 4;
getTransactionOrBuilder
in interface Protos.WalletOrBuilder
public List<Protos.Script> getWatchedScriptList()
repeated .wallet.Script watched_script = 15;
getWatchedScriptList
in interface Protos.WalletOrBuilder
public List<? extends Protos.ScriptOrBuilder> getWatchedScriptOrBuilderList()
repeated .wallet.Script watched_script = 15;
getWatchedScriptOrBuilderList
in interface Protos.WalletOrBuilder
public int getWatchedScriptCount()
repeated .wallet.Script watched_script = 15;
getWatchedScriptCount
in interface Protos.WalletOrBuilder
public Protos.Script getWatchedScript(int index)
repeated .wallet.Script watched_script = 15;
getWatchedScript
in interface Protos.WalletOrBuilder
public Protos.ScriptOrBuilder getWatchedScriptOrBuilder(int index)
repeated .wallet.Script watched_script = 15;
getWatchedScriptOrBuilder
in interface Protos.WalletOrBuilder
public boolean hasEncryptionType()
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
hasEncryptionType
in interface Protos.WalletOrBuilder
public Protos.Wallet.EncryptionType getEncryptionType()
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
getEncryptionType
in interface Protos.WalletOrBuilder
public boolean hasEncryptionParameters()
optional .wallet.ScryptParameters encryption_parameters = 6;
hasEncryptionParameters
in interface Protos.WalletOrBuilder
public Protos.ScryptParameters getEncryptionParameters()
optional .wallet.ScryptParameters encryption_parameters = 6;
getEncryptionParameters
in interface Protos.WalletOrBuilder
public Protos.ScryptParametersOrBuilder getEncryptionParametersOrBuilder()
optional .wallet.ScryptParameters encryption_parameters = 6;
getEncryptionParametersOrBuilder
in interface Protos.WalletOrBuilder
public boolean hasVersion()
optional int32 version = 7;
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/ code does not know about)
hasVersion
in interface Protos.WalletOrBuilder
public int getVersion()
optional int32 version = 7;
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/ code does not know about)
getVersion
in interface Protos.WalletOrBuilder
public List<Protos.Extension> getExtensionList()
repeated .wallet.Extension extension = 10;
getExtensionList
in interface Protos.WalletOrBuilder
public List<? extends Protos.ExtensionOrBuilder> getExtensionOrBuilderList()
repeated .wallet.Extension extension = 10;
getExtensionOrBuilderList
in interface Protos.WalletOrBuilder
public int getExtensionCount()
repeated .wallet.Extension extension = 10;
getExtensionCount
in interface Protos.WalletOrBuilder
public Protos.Extension getExtension(int index)
repeated .wallet.Extension extension = 10;
getExtension
in interface Protos.WalletOrBuilder
public Protos.ExtensionOrBuilder getExtensionOrBuilder(int index)
repeated .wallet.Extension extension = 10;
getExtensionOrBuilder
in interface Protos.WalletOrBuilder
public boolean hasDescription()
optional string description = 11;
A UTF8 encoded text description of the wallet that is intended for end user provided text.
hasDescription
in interface Protos.WalletOrBuilder
public String getDescription()
optional string description = 11;
A UTF8 encoded text description of the wallet that is intended for end user provided text.
getDescription
in interface Protos.WalletOrBuilder
public com.google.protobuf.ByteString getDescriptionBytes()
optional string description = 11;
A UTF8 encoded text description of the wallet that is intended for end user provided text.
getDescriptionBytes
in interface Protos.WalletOrBuilder
public boolean hasKeyRotationTime()
optional uint64 key_rotation_time = 13;
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.
hasKeyRotationTime
in interface Protos.WalletOrBuilder
public long getKeyRotationTime()
optional uint64 key_rotation_time = 13;
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.
getKeyRotationTime
in interface Protos.WalletOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static Protos.Wallet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Wallet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Wallet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Wallet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Wallet parseFrom(InputStream input) throws IOException
IOException
public static Protos.Wallet parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Wallet parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Protos.Wallet parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Wallet parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Protos.Wallet parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Wallet.Builder newBuilder()
public Protos.Wallet.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Protos.Wallet.Builder newBuilder(Protos.Wallet prototype)
public Protos.Wallet.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Protos.Wallet.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2014. All rights reserved.