/** * <code>repeated .com.openwallet.core.protos.Transaction transaction = 7;</code> */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { transactionBuilder_.clear(); } return this; } /**
/** * <code>repeated .com.openwallet.core.protos.AddressStatus address_status = 8;</code> */ public Builder clearAddressStatus() { if (addressStatusBuilder_ == null) { addressStatus_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { addressStatusBuilder_.clear(); } return this; } /**
/** * <code>repeated .com.openwallet.core.protos.Key key = 3;</code> */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { keyBuilder_.clear(); } return this; } /**
/** * <code>optional uint32 last_seen_block_height = 5;</code> * * <pre> * The height in the chain of the last seen block. * </pre> */ public Builder setLastSeenBlockHeight(int value) { bitField0_ |= 0x00000010; lastSeenBlockHeight_ = value; onChanged(); return this; } /**
/** * <code>optional string description = 2;</code> * * <pre> * A UTF8 encoded text description of the wallet that is intended for end user provided text. * </pre> */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000002); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /**
/** * <code>repeated .com.openwallet.core.protos.UnspentOutput unspent_output = 10;</code> */ public Builder addUnspentOutput( com.openwallet.core.protos.Protos.UnspentOutput.Builder builderForValue) { if (unspentOutputBuilder_ == null) { ensureUnspentOutputIsMutable(); unspentOutput_.add(builderForValue.build()); onChanged(); } else { unspentOutputBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .com.openwallet.core.protos.AddressStatus address_status = 8;</code> */ public Builder addAddressStatus( com.openwallet.core.protos.Protos.AddressStatus.Builder builderForValue) { if (addressStatusBuilder_ == null) { ensureAddressStatusIsMutable(); addressStatus_.add(builderForValue.build()); onChanged(); } else { addressStatusBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .com.openwallet.core.protos.Key key = 3;</code> */ public Builder removeKey(int index) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.remove(index); onChanged(); } else { keyBuilder_.remove(index); } return this; } /**
/** * <code>required string network_identifier = 1;</code> * * <pre> * the network used by this wallet * </pre> */ public Builder clearNetworkIdentifier() { bitField0_ = (bitField0_ & ~0x00000001); networkIdentifier_ = getDefaultInstance().getNetworkIdentifier(); onChanged(); return this; } /**
/** * <code>repeated .com.openwallet.core.protos.UnspentOutput unspent_output = 10;</code> */ public Builder removeUnspentOutput(int index) { if (unspentOutputBuilder_ == null) { ensureUnspentOutputIsMutable(); unspentOutput_.remove(index); onChanged(); } else { unspentOutputBuilder_.remove(index); } return this; } /**
/** * <code>optional string id = 9;</code> */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; id_ = value; onChanged(); return this; } /**
/** * <code>repeated .com.openwallet.core.protos.Transaction transaction = 7;</code> */ public Builder removeTransaction(int index) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.remove(index); onChanged(); } else { transactionBuilder_.remove(index); } return this; } /**
/** * <code>optional string id = 9;</code> */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; id_ = value; onChanged(); return this; }
/** * <code>optional uint32 last_seen_block_height = 5;</code> * * <pre> * The height in the chain of the last seen block. * </pre> */ public Builder clearLastSeenBlockHeight() { bitField0_ = (bitField0_ & ~0x00000010); lastSeenBlockHeight_ = 0; onChanged(); return this; }
/** * <code>optional bytes last_seen_block_hash = 4;</code> * * <pre> * The SHA256 hash of the head of the best chain seen by this wallet. * </pre> */ public Builder clearLastSeenBlockHash() { bitField0_ = (bitField0_ & ~0x00000008); lastSeenBlockHash_ = getDefaultInstance().getLastSeenBlockHash(); onChanged(); return this; }
/** * <code>repeated .com.openwallet.core.protos.Transaction transaction = 7;</code> */ public Builder addTransaction( int index, com.openwallet.core.protos.Protos.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.add(index, builderForValue.build()); onChanged(); } else { transactionBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .com.openwallet.core.protos.AddressStatus address_status = 8;</code> */ public Builder removeAddressStatus(int index) { if (addressStatusBuilder_ == null) { ensureAddressStatusIsMutable(); addressStatus_.remove(index); onChanged(); } else { addressStatusBuilder_.remove(index); } return this; } /**
/** * <code>optional string id = 9;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000100); id_ = getDefaultInstance().getId(); onChanged(); return this; } /**
/** * <code>optional int64 last_seen_block_time_secs = 6;</code> */ public Builder clearLastSeenBlockTimeSecs() { bitField0_ = (bitField0_ & ~0x00000020); lastSeenBlockTimeSecs_ = 0L; onChanged(); return this; }
/** * <code>optional int64 last_seen_block_time_secs = 6;</code> */ public Builder setLastSeenBlockTimeSecs(long value) { bitField0_ |= 0x00000020; lastSeenBlockTimeSecs_ = value; onChanged(); return this; } /**