Package io.dapr.v1

Class DaprProtos.EncryptRequestOptions.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.EncryptRequestOptions.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.GeneratedMessageV3.Builder<DaprProtos.EncryptRequestOptions.Builder>
      • getDefaultInstanceForType

        public DaprProtos.EncryptRequestOptions getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public DaprProtos.EncryptRequestOptions build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public DaprProtos.EncryptRequestOptions buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.EncryptRequestOptions.Builder>
      • setComponentName

        public DaprProtos.EncryptRequestOptions.Builder setComponentName​(String value)
         Name of the component. Required.
         
        string component_name = 1 [json_name = "componentName"];
        Parameters:
        value - The componentName to set.
        Returns:
        This builder for chaining.
      • clearComponentName

        public DaprProtos.EncryptRequestOptions.Builder clearComponentName()
         Name of the component. Required.
         
        string component_name = 1 [json_name = "componentName"];
        Returns:
        This builder for chaining.
      • setComponentNameBytes

        public DaprProtos.EncryptRequestOptions.Builder setComponentNameBytes​(com.google.protobuf.ByteString value)
         Name of the component. Required.
         
        string component_name = 1 [json_name = "componentName"];
        Parameters:
        value - The bytes for componentName to set.
        Returns:
        This builder for chaining.
      • getKeyNameBytes

        public com.google.protobuf.ByteString getKeyNameBytes()
         Name (or name/version) of the key. Required.
         
        string key_name = 2 [json_name = "keyName"];
        Specified by:
        getKeyNameBytes in interface DaprProtos.EncryptRequestOptionsOrBuilder
        Returns:
        The bytes for keyName.
      • setKeyName

        public DaprProtos.EncryptRequestOptions.Builder setKeyName​(String value)
         Name (or name/version) of the key. Required.
         
        string key_name = 2 [json_name = "keyName"];
        Parameters:
        value - The keyName to set.
        Returns:
        This builder for chaining.
      • clearKeyName

        public DaprProtos.EncryptRequestOptions.Builder clearKeyName()
         Name (or name/version) of the key. Required.
         
        string key_name = 2 [json_name = "keyName"];
        Returns:
        This builder for chaining.
      • setKeyNameBytes

        public DaprProtos.EncryptRequestOptions.Builder setKeyNameBytes​(com.google.protobuf.ByteString value)
         Name (or name/version) of the key. Required.
         
        string key_name = 2 [json_name = "keyName"];
        Parameters:
        value - The bytes for keyName to set.
        Returns:
        This builder for chaining.
      • getKeyWrapAlgorithm

        public String getKeyWrapAlgorithm()
         Key wrapping algorithm to use. Required.
         Supported options include: A256KW (alias: AES), A128CBC, A192CBC, A256CBC, RSA-OAEP-256 (alias: RSA).
         
        string key_wrap_algorithm = 3;
        Specified by:
        getKeyWrapAlgorithm in interface DaprProtos.EncryptRequestOptionsOrBuilder
        Returns:
        The keyWrapAlgorithm.
      • getKeyWrapAlgorithmBytes

        public com.google.protobuf.ByteString getKeyWrapAlgorithmBytes()
         Key wrapping algorithm to use. Required.
         Supported options include: A256KW (alias: AES), A128CBC, A192CBC, A256CBC, RSA-OAEP-256 (alias: RSA).
         
        string key_wrap_algorithm = 3;
        Specified by:
        getKeyWrapAlgorithmBytes in interface DaprProtos.EncryptRequestOptionsOrBuilder
        Returns:
        The bytes for keyWrapAlgorithm.
      • setKeyWrapAlgorithm

        public DaprProtos.EncryptRequestOptions.Builder setKeyWrapAlgorithm​(String value)
         Key wrapping algorithm to use. Required.
         Supported options include: A256KW (alias: AES), A128CBC, A192CBC, A256CBC, RSA-OAEP-256 (alias: RSA).
         
        string key_wrap_algorithm = 3;
        Parameters:
        value - The keyWrapAlgorithm to set.
        Returns:
        This builder for chaining.
      • clearKeyWrapAlgorithm

        public DaprProtos.EncryptRequestOptions.Builder clearKeyWrapAlgorithm()
         Key wrapping algorithm to use. Required.
         Supported options include: A256KW (alias: AES), A128CBC, A192CBC, A256CBC, RSA-OAEP-256 (alias: RSA).
         
        string key_wrap_algorithm = 3;
        Returns:
        This builder for chaining.
      • setKeyWrapAlgorithmBytes

        public DaprProtos.EncryptRequestOptions.Builder setKeyWrapAlgorithmBytes​(com.google.protobuf.ByteString value)
         Key wrapping algorithm to use. Required.
         Supported options include: A256KW (alias: AES), A128CBC, A192CBC, A256CBC, RSA-OAEP-256 (alias: RSA).
         
        string key_wrap_algorithm = 3;
        Parameters:
        value - The bytes for keyWrapAlgorithm to set.
        Returns:
        This builder for chaining.
      • getDataEncryptionCipherBytes

        public com.google.protobuf.ByteString getDataEncryptionCipherBytes()
         Cipher used to encrypt data (optional): "aes-gcm" (default) or "chacha20-poly1305"
         
        string data_encryption_cipher = 10;
        Specified by:
        getDataEncryptionCipherBytes in interface DaprProtos.EncryptRequestOptionsOrBuilder
        Returns:
        The bytes for dataEncryptionCipher.
      • setDataEncryptionCipher

        public DaprProtos.EncryptRequestOptions.Builder setDataEncryptionCipher​(String value)
         Cipher used to encrypt data (optional): "aes-gcm" (default) or "chacha20-poly1305"
         
        string data_encryption_cipher = 10;
        Parameters:
        value - The dataEncryptionCipher to set.
        Returns:
        This builder for chaining.
      • clearDataEncryptionCipher

        public DaprProtos.EncryptRequestOptions.Builder clearDataEncryptionCipher()
         Cipher used to encrypt data (optional): "aes-gcm" (default) or "chacha20-poly1305"
         
        string data_encryption_cipher = 10;
        Returns:
        This builder for chaining.
      • setDataEncryptionCipherBytes

        public DaprProtos.EncryptRequestOptions.Builder setDataEncryptionCipherBytes​(com.google.protobuf.ByteString value)
         Cipher used to encrypt data (optional): "aes-gcm" (default) or "chacha20-poly1305"
         
        string data_encryption_cipher = 10;
        Parameters:
        value - The bytes for dataEncryptionCipher to set.
        Returns:
        This builder for chaining.
      • getOmitDecryptionKeyName

        public boolean getOmitDecryptionKeyName()
         If true, the encrypted document does not contain a key reference.
         In that case, calls to the Decrypt method must provide a key reference (name or name/version).
         Defaults to false.
         
        bool omit_decryption_key_name = 11 [json_name = "omitDecryptionKeyName"];
        Specified by:
        getOmitDecryptionKeyName in interface DaprProtos.EncryptRequestOptionsOrBuilder
        Returns:
        The omitDecryptionKeyName.
      • setOmitDecryptionKeyName

        public DaprProtos.EncryptRequestOptions.Builder setOmitDecryptionKeyName​(boolean value)
         If true, the encrypted document does not contain a key reference.
         In that case, calls to the Decrypt method must provide a key reference (name or name/version).
         Defaults to false.
         
        bool omit_decryption_key_name = 11 [json_name = "omitDecryptionKeyName"];
        Parameters:
        value - The omitDecryptionKeyName to set.
        Returns:
        This builder for chaining.
      • clearOmitDecryptionKeyName

        public DaprProtos.EncryptRequestOptions.Builder clearOmitDecryptionKeyName()
         If true, the encrypted document does not contain a key reference.
         In that case, calls to the Decrypt method must provide a key reference (name or name/version).
         Defaults to false.
         
        bool omit_decryption_key_name = 11 [json_name = "omitDecryptionKeyName"];
        Returns:
        This builder for chaining.
      • getDecryptionKeyName

        public String getDecryptionKeyName()
         Key reference to embed in the encrypted document (name or name/version).
         This is helpful if the reference of the key used to decrypt the document is different from the one used to encrypt it.
         If unset, uses the reference of the key used to encrypt the document (this is the default behavior).
         This option is ignored if omit_decryption_key_name is true.
         
        string decryption_key_name = 12 [json_name = "decryptionKeyName"];
        Specified by:
        getDecryptionKeyName in interface DaprProtos.EncryptRequestOptionsOrBuilder
        Returns:
        The decryptionKeyName.
      • getDecryptionKeyNameBytes

        public com.google.protobuf.ByteString getDecryptionKeyNameBytes()
         Key reference to embed in the encrypted document (name or name/version).
         This is helpful if the reference of the key used to decrypt the document is different from the one used to encrypt it.
         If unset, uses the reference of the key used to encrypt the document (this is the default behavior).
         This option is ignored if omit_decryption_key_name is true.
         
        string decryption_key_name = 12 [json_name = "decryptionKeyName"];
        Specified by:
        getDecryptionKeyNameBytes in interface DaprProtos.EncryptRequestOptionsOrBuilder
        Returns:
        The bytes for decryptionKeyName.
      • setDecryptionKeyName

        public DaprProtos.EncryptRequestOptions.Builder setDecryptionKeyName​(String value)
         Key reference to embed in the encrypted document (name or name/version).
         This is helpful if the reference of the key used to decrypt the document is different from the one used to encrypt it.
         If unset, uses the reference of the key used to encrypt the document (this is the default behavior).
         This option is ignored if omit_decryption_key_name is true.
         
        string decryption_key_name = 12 [json_name = "decryptionKeyName"];
        Parameters:
        value - The decryptionKeyName to set.
        Returns:
        This builder for chaining.
      • clearDecryptionKeyName

        public DaprProtos.EncryptRequestOptions.Builder clearDecryptionKeyName()
         Key reference to embed in the encrypted document (name or name/version).
         This is helpful if the reference of the key used to decrypt the document is different from the one used to encrypt it.
         If unset, uses the reference of the key used to encrypt the document (this is the default behavior).
         This option is ignored if omit_decryption_key_name is true.
         
        string decryption_key_name = 12 [json_name = "decryptionKeyName"];
        Returns:
        This builder for chaining.
      • setDecryptionKeyNameBytes

        public DaprProtos.EncryptRequestOptions.Builder setDecryptionKeyNameBytes​(com.google.protobuf.ByteString value)
         Key reference to embed in the encrypted document (name or name/version).
         This is helpful if the reference of the key used to decrypt the document is different from the one used to encrypt it.
         If unset, uses the reference of the key used to encrypt the document (this is the default behavior).
         This option is ignored if omit_decryption_key_name is true.
         
        string decryption_key_name = 12 [json_name = "decryptionKeyName"];
        Parameters:
        value - The bytes for decryptionKeyName to set.
        Returns:
        This builder for chaining.