org.bitcoinj.wallet
Class Protos.ScryptParameters.Builder

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite.Builder<BuilderType>
      extended by com.google.protobuf.AbstractMessage.Builder<BuilderType>
          extended by com.google.protobuf.GeneratedMessage.Builder<Protos.ScryptParameters.Builder>
              extended by org.bitcoinj.wallet.Protos.ScryptParameters.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Protos.ScryptParametersOrBuilder
Enclosing class:
Protos.ScryptParameters

public static final class Protos.ScryptParameters.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Protos.ScryptParameters.Builder>
implements Protos.ScryptParametersOrBuilder

Protobuf type wallet.ScryptParameters

 The parameters used in the scrypt key derivation function.
  The default values are taken from http://www.tarsnap.com/scrypt/scrypt-slides.pdf.
  They can be increased - n is the number of iterations performed and
  r and p can be used to tweak the algorithm - see:
  http://stackoverflow.com/questions/11126315/what-are-optimal-scrypt-work-factors
 


Method Summary
 Protos.ScryptParameters build()
           
 Protos.ScryptParameters buildPartial()
           
 Protos.ScryptParameters.Builder clear()
           
 Protos.ScryptParameters.Builder clearN()
          optional int64 n = 2 [default = 16384];
 Protos.ScryptParameters.Builder clearP()
          optional int32 p = 4 [default = 1];
 Protos.ScryptParameters.Builder clearR()
          optional int32 r = 3 [default = 8];
 Protos.ScryptParameters.Builder clearSalt()
          required bytes salt = 1;
 Protos.ScryptParameters.Builder clone()
           
 Protos.ScryptParameters getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 long getN()
          optional int64 n = 2 [default = 16384];
 int getP()
          optional int32 p = 4 [default = 1];
 int getR()
          optional int32 r = 3 [default = 8];
 com.google.protobuf.ByteString getSalt()
          required bytes salt = 1;
 boolean hasN()
          optional int64 n = 2 [default = 16384];
 boolean hasP()
          optional int32 p = 4 [default = 1];
 boolean hasR()
          optional int32 r = 3 [default = 8];
 boolean hasSalt()
          required bytes salt = 1;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
 Protos.ScryptParameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 Protos.ScryptParameters.Builder mergeFrom(com.google.protobuf.Message other)
           
 Protos.ScryptParameters.Builder mergeFrom(Protos.ScryptParameters other)
           
 Protos.ScryptParameters.Builder setN(long value)
          optional int64 n = 2 [default = 16384];
 Protos.ScryptParameters.Builder setP(int value)
          optional int32 p = 4 [default = 1];
 Protos.ScryptParameters.Builder setR(int value)
          optional int32 r = 3 [default = 8];
 Protos.ScryptParameters.Builder setSalt(com.google.protobuf.ByteString value)
          required bytes salt = 1;
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, newUninitializedMessageException
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField
 

Method Detail

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Specified by:
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Protos.ScryptParameters.Builder>

clear

public Protos.ScryptParameters.Builder clear()
Specified by:
clear in interface com.google.protobuf.Message.Builder
Specified by:
clear in interface com.google.protobuf.MessageLite.Builder
Overrides:
clear in class com.google.protobuf.GeneratedMessage.Builder<Protos.ScryptParameters.Builder>

clone

public Protos.ScryptParameters.Builder clone()
Specified by:
clone in interface com.google.protobuf.Message.Builder
Specified by:
clone in interface com.google.protobuf.MessageLite.Builder
Overrides:
clone in class com.google.protobuf.GeneratedMessage.Builder<Protos.ScryptParameters.Builder>

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.Message.Builder
Specified by:
getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
Overrides:
getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Protos.ScryptParameters.Builder>

getDefaultInstanceForType

public Protos.ScryptParameters getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

build

public Protos.ScryptParameters build()
Specified by:
build in interface com.google.protobuf.Message.Builder
Specified by:
build in interface com.google.protobuf.MessageLite.Builder

buildPartial

public Protos.ScryptParameters buildPartial()
Specified by:
buildPartial in interface com.google.protobuf.Message.Builder
Specified by:
buildPartial in interface com.google.protobuf.MessageLite.Builder

mergeFrom

public Protos.ScryptParameters.Builder mergeFrom(com.google.protobuf.Message other)
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.ScryptParameters.Builder>

mergeFrom

public Protos.ScryptParameters.Builder mergeFrom(Protos.ScryptParameters other)

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Protos.ScryptParameters.Builder>

mergeFrom

public Protos.ScryptParameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Specified by:
mergeFrom in interface com.google.protobuf.MessageLite.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.ScryptParameters.Builder>
Throws:
IOException

hasSalt

public boolean hasSalt()
required bytes salt = 1;
 Salt to use in generation of the wallet password (8 bytes)
 

Specified by:
hasSalt in interface Protos.ScryptParametersOrBuilder

getSalt

public com.google.protobuf.ByteString getSalt()
required bytes salt = 1;
 Salt to use in generation of the wallet password (8 bytes)
 

Specified by:
getSalt in interface Protos.ScryptParametersOrBuilder

setSalt

public Protos.ScryptParameters.Builder setSalt(com.google.protobuf.ByteString value)
required bytes salt = 1;
 Salt to use in generation of the wallet password (8 bytes)
 


clearSalt

public Protos.ScryptParameters.Builder clearSalt()
required bytes salt = 1;
 Salt to use in generation of the wallet password (8 bytes)
 


hasN

public boolean hasN()
optional int64 n = 2 [default = 16384];
 CPU/ memory cost parameter
 

Specified by:
hasN in interface Protos.ScryptParametersOrBuilder

getN

public long getN()
optional int64 n = 2 [default = 16384];
 CPU/ memory cost parameter
 

Specified by:
getN in interface Protos.ScryptParametersOrBuilder

setN

public Protos.ScryptParameters.Builder setN(long value)
optional int64 n = 2 [default = 16384];
 CPU/ memory cost parameter
 


clearN

public Protos.ScryptParameters.Builder clearN()
optional int64 n = 2 [default = 16384];
 CPU/ memory cost parameter
 


hasR

public boolean hasR()
optional int32 r = 3 [default = 8];
 Block size parameter
 

Specified by:
hasR in interface Protos.ScryptParametersOrBuilder

getR

public int getR()
optional int32 r = 3 [default = 8];
 Block size parameter
 

Specified by:
getR in interface Protos.ScryptParametersOrBuilder

setR

public Protos.ScryptParameters.Builder setR(int value)
optional int32 r = 3 [default = 8];
 Block size parameter
 


clearR

public Protos.ScryptParameters.Builder clearR()
optional int32 r = 3 [default = 8];
 Block size parameter
 


hasP

public boolean hasP()
optional int32 p = 4 [default = 1];
 Parallelisation parameter
 

Specified by:
hasP in interface Protos.ScryptParametersOrBuilder

getP

public int getP()
optional int32 p = 4 [default = 1];
 Parallelisation parameter
 

Specified by:
getP in interface Protos.ScryptParametersOrBuilder

setP

public Protos.ScryptParameters.Builder setP(int value)
optional int32 p = 4 [default = 1];
 Parallelisation parameter
 


clearP

public Protos.ScryptParameters.Builder clearP()
optional int32 p = 4 [default = 1];
 Parallelisation parameter
 



Copyright © 2014. All rights reserved.