Package org.bitcoinj.wallet
Class Protos.EncryptedData.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<Protos.EncryptedData,Protos.EncryptedData.Builder>
-
- org.bitcoinj.wallet.Protos.EncryptedData.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,java.lang.Cloneable,Protos.EncryptedDataOrBuilder
- Enclosing class:
- Protos.EncryptedData
public static final class Protos.EncryptedData.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.EncryptedData,Protos.EncryptedData.Builder> implements Protos.EncryptedDataOrBuilder
Protobuf typewallet.EncryptedData
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.EncryptedData.BuilderclearEncryptedPrivateKey()The encrypted private keyProtos.EncryptedData.BuilderclearInitialisationVector()The initialisation vector for the AES encryption (16 bytes)com.google.protobuf.ByteStringgetEncryptedPrivateKey()The encrypted private keycom.google.protobuf.ByteStringgetInitialisationVector()The initialisation vector for the AES encryption (16 bytes)booleanhasEncryptedPrivateKey()The encrypted private keybooleanhasInitialisationVector()The initialisation vector for the AES encryption (16 bytes)Protos.EncryptedData.BuildersetEncryptedPrivateKey(com.google.protobuf.ByteString value)The encrypted private keyProtos.EncryptedData.BuildersetInitialisationVector(com.google.protobuf.ByteString value)The initialisation vector for the AES encryption (16 bytes)-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
hasInitialisationVector
public boolean hasInitialisationVector()
The initialisation vector for the AES encryption (16 bytes)
required bytes initialisation_vector = 1;- Specified by:
hasInitialisationVectorin interfaceProtos.EncryptedDataOrBuilder- Returns:
- Whether the initialisationVector field is set.
-
getInitialisationVector
public com.google.protobuf.ByteString getInitialisationVector()
The initialisation vector for the AES encryption (16 bytes)
required bytes initialisation_vector = 1;- Specified by:
getInitialisationVectorin interfaceProtos.EncryptedDataOrBuilder- Returns:
- The initialisationVector.
-
setInitialisationVector
public Protos.EncryptedData.Builder setInitialisationVector(com.google.protobuf.ByteString value)
The initialisation vector for the AES encryption (16 bytes)
required bytes initialisation_vector = 1;- Parameters:
value- The initialisationVector to set.- Returns:
- This builder for chaining.
-
clearInitialisationVector
public Protos.EncryptedData.Builder clearInitialisationVector()
The initialisation vector for the AES encryption (16 bytes)
required bytes initialisation_vector = 1;- Returns:
- This builder for chaining.
-
hasEncryptedPrivateKey
public boolean hasEncryptedPrivateKey()
The encrypted private key
required bytes encrypted_private_key = 2;- Specified by:
hasEncryptedPrivateKeyin interfaceProtos.EncryptedDataOrBuilder- Returns:
- Whether the encryptedPrivateKey field is set.
-
getEncryptedPrivateKey
public com.google.protobuf.ByteString getEncryptedPrivateKey()
The encrypted private key
required bytes encrypted_private_key = 2;- Specified by:
getEncryptedPrivateKeyin interfaceProtos.EncryptedDataOrBuilder- Returns:
- The encryptedPrivateKey.
-
setEncryptedPrivateKey
public Protos.EncryptedData.Builder setEncryptedPrivateKey(com.google.protobuf.ByteString value)
The encrypted private key
required bytes encrypted_private_key = 2;- Parameters:
value- The encryptedPrivateKey to set.- Returns:
- This builder for chaining.
-
clearEncryptedPrivateKey
public Protos.EncryptedData.Builder clearEncryptedPrivateKey()
The encrypted private key
required bytes encrypted_private_key = 2;- Returns:
- This builder for chaining.
-
-