Class Protos.Wallet.Builder

    • Method Detail

      • 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 java.lang.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.
      • setNetworkIdentifier

        public Protos.Wallet.Builder setNetworkIdentifier​(java.lang.String value)
         the network used by this wallet
         
        required string network_identifier = 1;
        Parameters:
        value - The networkIdentifier to set.
        Returns:
        This builder for chaining.
      • clearNetworkIdentifier

        public Protos.Wallet.Builder clearNetworkIdentifier()
         the network used by this wallet
         
        required string network_identifier = 1;
        Returns:
        This builder for chaining.
      • setNetworkIdentifierBytes

        public Protos.Wallet.Builder setNetworkIdentifierBytes​(com.google.protobuf.ByteString value)
         the network used by this wallet
         
        required string network_identifier = 1;
        Parameters:
        value - The bytes for networkIdentifier to set.
        Returns:
        This builder for chaining.
      • 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.
      • setLastSeenBlockHash

        public Protos.Wallet.Builder setLastSeenBlockHash​(com.google.protobuf.ByteString value)
         The SHA256 hash of the head of the best chain seen by this wallet.
         
        optional bytes last_seen_block_hash = 2;
        Parameters:
        value - The lastSeenBlockHash to set.
        Returns:
        This builder for chaining.
      • clearLastSeenBlockHash

        public Protos.Wallet.Builder clearLastSeenBlockHash()
         The SHA256 hash of the head of the best chain seen by this wallet.
         
        optional bytes last_seen_block_hash = 2;
        Returns:
        This builder for chaining.
      • 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.
      • setLastSeenBlockHeight

        public Protos.Wallet.Builder setLastSeenBlockHeight​(int value)
         The height in the chain of the last seen block.
         
        optional uint32 last_seen_block_height = 12;
        Parameters:
        value - The lastSeenBlockHeight to set.
        Returns:
        This builder for chaining.
      • clearLastSeenBlockHeight

        public Protos.Wallet.Builder clearLastSeenBlockHeight()
         The height in the chain of the last seen block.
         
        optional uint32 last_seen_block_height = 12;
        Returns:
        This builder for chaining.
      • 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.
      • setLastSeenBlockTimeSecs

        public Protos.Wallet.Builder setLastSeenBlockTimeSecs​(long value)
        optional int64 last_seen_block_time_secs = 14;
        Parameters:
        value - The lastSeenBlockTimeSecs to set.
        Returns:
        This builder for chaining.
      • clearLastSeenBlockTimeSecs

        public Protos.Wallet.Builder clearLastSeenBlockTimeSecs()
        optional int64 last_seen_block_time_secs = 14;
        Returns:
        This builder for chaining.
      • clearTransaction

        public Protos.Wallet.Builder clearTransaction()
        repeated .wallet.Transaction transaction = 4;
      • removeTransaction

        public Protos.Wallet.Builder removeTransaction​(int index)
        repeated .wallet.Transaction transaction = 4;
      • addAllWatchedScript

        public Protos.Wallet.Builder addAllWatchedScript​(java.lang.Iterable<? extends Protos.Script> values)
        repeated .wallet.Script watched_script = 15;
      • clearWatchedScript

        public Protos.Wallet.Builder clearWatchedScript()
        repeated .wallet.Script watched_script = 15;
      • removeWatchedScript

        public Protos.Wallet.Builder removeWatchedScript​(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.
      • setEncryptionType

        public Protos.Wallet.Builder setEncryptionType​(Protos.Wallet.EncryptionType value)
        optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
        Parameters:
        value - The enum numeric value on the wire for encryptionType to set.
        Returns:
        This builder for chaining.
      • clearEncryptionType

        public Protos.Wallet.Builder clearEncryptionType()
        optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
        Returns:
        This builder for chaining.
      • hasEncryptionParameters

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

        public Protos.Wallet.Builder clearEncryptionParameters()
        optional .wallet.ScryptParameters encryption_parameters = 6;
      • 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.
      • setVersion

        public Protos.Wallet.Builder setVersion​(int value)
         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];
        Parameters:
        value - The version to set.
        Returns:
        This builder for chaining.
      • clearVersion

        public Protos.Wallet.Builder clearVersion()
         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];
        Returns:
        This builder for chaining.
      • clearExtension

        public Protos.Wallet.Builder clearExtension()
        repeated .wallet.Extension extension = 10;
      • removeExtension

        public Protos.Wallet.Builder removeExtension​(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 java.lang.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.
      • setDescription

        public Protos.Wallet.Builder setDescription​(java.lang.String value)
         A UTF8 encoded text description of the wallet that is intended for end user provided text.
         
        optional string description = 11;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Protos.Wallet.Builder clearDescription()
         A UTF8 encoded text description of the wallet that is intended for end user provided text.
         
        optional string description = 11;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Protos.Wallet.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         A UTF8 encoded text description of the wallet that is intended for end user provided text.
         
        optional string description = 11;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • 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.
      • setKeyRotationTime

        public Protos.Wallet.Builder setKeyRotationTime​(long value)
         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;
        Parameters:
        value - The keyRotationTime to set.
        Returns:
        This builder for chaining.
      • clearKeyRotationTime

        public Protos.Wallet.Builder clearKeyRotationTime()
         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;
        Returns:
        This builder for chaining.