public Builder clear() { super.clear(); type_ = com.openwallet.core.protos.Protos.Key.Type.ORIGINAL; bitField0_ = (bitField0_ & ~0x00000001); secretBytes_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (encryptedDataBuilder_ == null) { encryptedData_ = com.openwallet.core.protos.Protos.EncryptedData.getDefaultInstance(); } else { encryptedDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); publicKey_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); label_ = ""; bitField0_ = (bitField0_ & ~0x00000010); if (deterministicKeyBuilder_ == null) { deterministicKey_ = com.openwallet.core.protos.Protos.DeterministicKey.getDefaultInstance(); } else { deterministicKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; }
/** * <code>optional .com.openwallet.core.protos.DeterministicKey deterministic_key = 6;</code> */ public Builder clearDeterministicKey() { if (deterministicKeyBuilder_ == null) { deterministicKey_ = com.openwallet.core.protos.Protos.DeterministicKey.getDefaultInstance(); onChanged(); } else { deterministicKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /**
/** * <code>optional .com.openwallet.core.protos.DeterministicKey deterministic_key = 6;</code> */ public Builder mergeDeterministicKey(com.openwallet.core.protos.Protos.DeterministicKey value) { if (deterministicKeyBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && deterministicKey_ != com.openwallet.core.protos.Protos.DeterministicKey.getDefaultInstance()) { deterministicKey_ = com.openwallet.core.protos.Protos.DeterministicKey.newBuilder(deterministicKey_).mergeFrom(value).buildPartial(); } else { deterministicKey_ = value; } onChanged(); } else { deterministicKeyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /**
public Builder mergeFrom(com.openwallet.core.protos.Protos.DeterministicKey other) { if (other == com.openwallet.core.protos.Protos.DeterministicKey.getDefaultInstance()) return this; if (other.hasChainCode()) { setChainCode(other.getChainCode()); } if (!other.path_.isEmpty()) { if (path_.isEmpty()) { path_ = other.path_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePathIsMutable(); path_.addAll(other.path_); } onChanged(); } if (other.hasIssuedSubkeys()) { setIssuedSubkeys(other.getIssuedSubkeys()); } if (other.hasLookaheadSize()) { setLookaheadSize(other.getLookaheadSize()); } if (other.hasIsFollowing()) { setIsFollowing(other.getIsFollowing()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>required bytes chain_code = 1;</code> * * <pre> * Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and * should just treat it as a regular ORIGINAL type key. * </pre> */ public Builder clearChainCode() { bitField0_ = (bitField0_ & ~0x00000001); chainCode_ = getDefaultInstance().getChainCode(); onChanged(); return this; }
private void initFields() { type_ = com.openwallet.core.protos.Protos.Key.Type.ORIGINAL; secretBytes_ = com.google.protobuf.ByteString.EMPTY; encryptedData_ = com.openwallet.core.protos.Protos.EncryptedData.getDefaultInstance(); publicKey_ = com.google.protobuf.ByteString.EMPTY; label_ = ""; deterministicKey_ = com.openwallet.core.protos.Protos.DeterministicKey.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
public com.openwallet.core.protos.Protos.DeterministicKey getDefaultInstanceForType() { return com.openwallet.core.protos.Protos.DeterministicKey.getDefaultInstance(); }