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 wallet 
 
Protobuf type wallet.Wallet
  • 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 interface Protos.WalletOrBuilder
      Returns:
      Whether the networkIdentifier field is set.
    • getNetworkIdentifier

      public String getNetworkIdentifier()
       the network used by this wallet
       
      required string network_identifier = 1;
      Specified by:
      getNetworkIdentifier in interface Protos.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 interface Protos.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 interface Protos.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 interface Protos.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 interface Protos.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 interface Protos.WalletOrBuilder
      Returns:
      The lastSeenBlockHeight.
    • hasLastSeenBlockTimeSecs

      public boolean hasLastSeenBlockTimeSecs()
      optional int64 last_seen_block_time_secs = 14;
      Specified by:
      hasLastSeenBlockTimeSecs in interface Protos.WalletOrBuilder
      Returns:
      Whether the lastSeenBlockTimeSecs field is set.
    • getLastSeenBlockTimeSecs

      public long getLastSeenBlockTimeSecs()
      optional int64 last_seen_block_time_secs = 14;
      Specified by:
      getLastSeenBlockTimeSecs in interface Protos.WalletOrBuilder
      Returns:
      The lastSeenBlockTimeSecs.
    • getKeyList

      public List<Protos.Key> getKeyList()
      repeated .wallet.Key key = 3;
      Specified by:
      getKeyList in interface Protos.WalletOrBuilder
    • getKeyOrBuilderList

      public List<? extends Protos.KeyOrBuilder> getKeyOrBuilderList()
      repeated .wallet.Key key = 3;
    • getKeyCount

      public int getKeyCount()
      repeated .wallet.Key key = 3;
      Specified by:
      getKeyCount in interface Protos.WalletOrBuilder
    • getKey

      public Protos.Key getKey(int index)
      repeated .wallet.Key key = 3;
      Specified by:
      getKey in interface Protos.WalletOrBuilder
    • getKeyOrBuilder

      public Protos.KeyOrBuilder getKeyOrBuilder(int index)
      repeated .wallet.Key key = 3;
    • getTransactionList

      public List<Protos.Transaction> getTransactionList()
      repeated .wallet.Transaction transaction = 4;
      Specified by:
      getTransactionList in interface Protos.WalletOrBuilder
    • getTransactionOrBuilderList

      public List<? extends Protos.TransactionOrBuilder> getTransactionOrBuilderList()
      repeated .wallet.Transaction transaction = 4;
    • getTransactionCount

      public int getTransactionCount()
      repeated .wallet.Transaction transaction = 4;
      Specified by:
      getTransactionCount in interface Protos.WalletOrBuilder
    • getTransaction

      public Protos.Transaction getTransaction(int index)
      repeated .wallet.Transaction transaction = 4;
      Specified by:
      getTransaction in interface Protos.WalletOrBuilder
    • getTransactionOrBuilder

      public Protos.TransactionOrBuilder getTransactionOrBuilder(int index)
      repeated .wallet.Transaction transaction = 4;
    • getWatchedScriptList

      public List<Protos.Script> getWatchedScriptList()
      repeated .wallet.Script watched_script = 15;
      Specified by:
      getWatchedScriptList in interface Protos.WalletOrBuilder
    • getWatchedScriptOrBuilderList

      public List<? extends Protos.ScriptOrBuilder> getWatchedScriptOrBuilderList()
      repeated .wallet.Script watched_script = 15;
    • getWatchedScriptCount

      public int getWatchedScriptCount()
      repeated .wallet.Script watched_script = 15;
      Specified by:
      getWatchedScriptCount in interface Protos.WalletOrBuilder
    • getWatchedScript

      public Protos.Script getWatchedScript(int index)
      repeated .wallet.Script watched_script = 15;
      Specified by:
      getWatchedScript in interface Protos.WalletOrBuilder
    • getWatchedScriptOrBuilder

      public Protos.ScriptOrBuilder getWatchedScriptOrBuilder(int index)
      repeated .wallet.Script watched_script = 15;
    • hasEncryptionType

      public boolean hasEncryptionType()
      optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
      Specified by:
      hasEncryptionType in interface Protos.WalletOrBuilder
      Returns:
      Whether the encryptionType field is set.
    • getEncryptionType

      public Protos.Wallet.EncryptionType getEncryptionType()
      optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
      Specified by:
      getEncryptionType in interface Protos.WalletOrBuilder
      Returns:
      The encryptionType.
    • hasEncryptionParameters

      public boolean hasEncryptionParameters()
      optional .wallet.ScryptParameters encryption_parameters = 6;
      Specified by:
      hasEncryptionParameters in interface Protos.WalletOrBuilder
      Returns:
      Whether the encryptionParameters field is set.
    • getEncryptionParameters

      public Protos.ScryptParameters getEncryptionParameters()
      optional .wallet.ScryptParameters encryption_parameters = 6;
      Specified by:
      getEncryptionParameters in interface Protos.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 interface Protos.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 interface Protos.WalletOrBuilder
      Returns:
      The version.
    • getExtensionList

      public List<Protos.Extension> getExtensionList()
      repeated .wallet.Extension extension = 10;
      Specified by:
      getExtensionList in interface Protos.WalletOrBuilder
    • getExtensionOrBuilderList

      public List<? extends Protos.ExtensionOrBuilder> getExtensionOrBuilderList()
      repeated .wallet.Extension extension = 10;
    • getExtensionCount

      public int getExtensionCount()
      repeated .wallet.Extension extension = 10;
      Specified by:
      getExtensionCount in interface Protos.WalletOrBuilder
    • getExtension

      public Protos.Extension getExtension(int index)
      repeated .wallet.Extension extension = 10;
      Specified by:
      getExtension in interface Protos.WalletOrBuilder
    • getExtensionOrBuilder

      public Protos.ExtensionOrBuilder getExtensionOrBuilder(int index)
      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 interface Protos.WalletOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String 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 interface Protos.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 interface Protos.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 interface Protos.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 interface Protos.WalletOrBuilder
      Returns:
      The keyRotationTime.
    • getTagsList

      public List<Protos.Tag> getTagsList()
      repeated .wallet.Tag tags = 16;
      Specified by:
      getTagsList in interface Protos.WalletOrBuilder
    • getTagsOrBuilderList

      public List<? extends Protos.TagOrBuilder> getTagsOrBuilderList()
      repeated .wallet.Tag tags = 16;
    • getTagsCount

      public int getTagsCount()
      repeated .wallet.Tag tags = 16;
      Specified by:
      getTagsCount in interface Protos.WalletOrBuilder
    • getTags

      public Protos.Tag getTags(int index)
      repeated .wallet.Tag tags = 16;
      Specified by:
      getTags in interface Protos.WalletOrBuilder
    • getTagsOrBuilder

      public Protos.TagOrBuilder getTagsOrBuilder(int index)
      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

      public static Protos.Wallet parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Protos.Wallet parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Protos.Wallet parseDelimitedFrom(InputStream input) throws IOException
      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

      public static Protos.Wallet.Builder newBuilder()
    • newBuilder

      public static Protos.Wallet.Builder newBuilder(Protos.Wallet prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.Wallet,Protos.Wallet.Builder>
    • getDefaultInstance

      public static Protos.Wallet getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Protos.Wallet> parser()