/** * <code>required bytes salt = 1;</code> * * <pre> * Salt to use in generation of the wallet password (8 bytes) * </pre> */ public Builder setSalt(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; salt_ = value; onChanged(); return this; } /**
/** * <code>optional int32 p = 4 [default = 1];</code> * * <pre> * Parallelisation parameter * </pre> */ public Builder setP(int value) { bitField0_ |= 0x00000008; p_ = value; onChanged(); return this; } /**
/** * <code>optional int32 r = 3 [default = 8];</code> * * <pre> * Block size parameter * </pre> */ public Builder setR(int value) { bitField0_ |= 0x00000004; r_ = value; onChanged(); return this; } /**
/** * <code>optional int32 r = 3 [default = 8];</code> * * <pre> * Block size parameter * </pre> */ public Builder clearR() { bitField0_ = (bitField0_ & ~0x00000004); r_ = 8; onChanged(); return this; }
/** * <code>required bytes salt = 1;</code> * * <pre> * Salt to use in generation of the wallet password (8 bytes) * </pre> */ public Builder clearSalt() { bitField0_ = (bitField0_ & ~0x00000001); salt_ = getDefaultInstance().getSalt(); onChanged(); return this; }
/** * <code>optional int64 n = 2 [default = 16384];</code> * * <pre> * CPU/ memory cost parameter * </pre> */ public Builder setN(long value) { bitField0_ |= 0x00000002; n_ = value; onChanged(); return this; } /**
/** * <code>optional int32 p = 4 [default = 1];</code> * * <pre> * Parallelisation parameter * </pre> */ public Builder clearP() { bitField0_ = (bitField0_ & ~0x00000008); p_ = 1; onChanged(); return this; }
/** * <code>optional int64 n = 2 [default = 16384];</code> * * <pre> * CPU/ memory cost parameter * </pre> */ public Builder clearN() { bitField0_ = (bitField0_ & ~0x00000002); n_ = 16384L; onChanged(); return this; }