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, 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 type wallet.EncryptedData
  • Method Details

    • hasInitialisationVector

      public boolean hasInitialisationVector()
       The initialisation vector for the AES encryption (16 bytes)
       
      required bytes initialisation_vector = 1;
      Specified by:
      hasInitialisationVector in interface Protos.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 interface Protos.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 interface Protos.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 interface Protos.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.