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.Builder
clearEncryptedPrivateKey()
The encrypted private keyProtos.EncryptedData.Builder
clearInitialisationVector()
The initialisation vector for the AES encryption (16 bytes)com.google.protobuf.ByteString
getEncryptedPrivateKey()
The encrypted private keycom.google.protobuf.ByteString
getInitialisationVector()
The initialisation vector for the AES encryption (16 bytes)boolean
hasEncryptedPrivateKey()
The encrypted private keyboolean
hasInitialisationVector()
The initialisation vector for the AES encryption (16 bytes)Protos.EncryptedData.Builder
setEncryptedPrivateKey(com.google.protobuf.ByteString value)
The encrypted private keyProtos.EncryptedData.Builder
setInitialisationVector(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:
hasInitialisationVector
in 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:
getInitialisationVector
in 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:
hasEncryptedPrivateKey
in 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:
getEncryptedPrivateKey
in 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.
-
-