Class CustomerEncryptionKey.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomerEncryptionKey.Builder>
com.google.cloud.compute.v1.CustomerEncryptionKey.Builder
All Implemented Interfaces:
CustomerEncryptionKeyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CustomerEncryptionKey

public static final class CustomerEncryptionKey.Builder extends com.google.protobuf.GeneratedMessage.Builder<CustomerEncryptionKey.Builder> implements CustomerEncryptionKeyOrBuilder
 
Protobuf type google.cloud.compute.v1.CustomerEncryptionKey
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The name of the encryption key that is stored in Google Cloud KMS.
    The service account being used for the encryption request for the given KMS key.
    Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    [Output only] TheRFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The name of the encryption key that is stored in Google Cloud KMS.
    com.google.protobuf.ByteString
    The name of the encryption key that is stored in Google Cloud KMS.
    The service account being used for the encryption request for the given KMS key.
    com.google.protobuf.ByteString
    The service account being used for the encryption request for the given KMS key.
    Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    com.google.protobuf.ByteString
    Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    com.google.protobuf.ByteString
    Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    [Output only] TheRFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    com.google.protobuf.ByteString
    [Output only] TheRFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    boolean
    The name of the encryption key that is stored in Google Cloud KMS.
    boolean
    The service account being used for the encryption request for the given KMS key.
    boolean
    Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    boolean
    Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    boolean
    [Output only] TheRFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The name of the encryption key that is stored in Google Cloud KMS.
    setKmsKeyNameBytes(com.google.protobuf.ByteString value)
    The name of the encryption key that is stored in Google Cloud KMS.
    The service account being used for the encryption request for the given KMS key.
    setKmsKeyServiceAccountBytes(com.google.protobuf.ByteString value)
    The service account being used for the encryption request for the given KMS key.
    Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    setRawKeyBytes(com.google.protobuf.ByteString value)
    Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    setRsaEncryptedKeyBytes(com.google.protobuf.ByteString value)
    Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    [Output only] TheRFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    setSha256Bytes(com.google.protobuf.ByteString value)
    [Output only] TheRFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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<CustomerEncryptionKey.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<CustomerEncryptionKey.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<CustomerEncryptionKey.Builder>
    • getDefaultInstanceForType

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

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

      public CustomerEncryptionKey buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CustomerEncryptionKey.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<CustomerEncryptionKey.Builder>
    • mergeFrom

    • isInitialized

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

      public CustomerEncryptionKey.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<CustomerEncryptionKey.Builder>
      Throws:
      IOException
    • hasKmsKeyName

      public boolean hasKmsKeyName()
       The name of the encryption key that is stored in Google Cloud KMS.
       For example:
      
       "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/
       key_region/cryptoKeys/key
      
       The fully-qualifed key name may be returned for resource GET requests. For
       example:
      
       "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/
       key_region/cryptoKeys/key
       /cryptoKeyVersions/1
       
      optional string kms_key_name = 484373913;
      Specified by:
      hasKmsKeyName in interface CustomerEncryptionKeyOrBuilder
      Returns:
      Whether the kmsKeyName field is set.
    • getKmsKeyName

      public String getKmsKeyName()
       The name of the encryption key that is stored in Google Cloud KMS.
       For example:
      
       "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/
       key_region/cryptoKeys/key
      
       The fully-qualifed key name may be returned for resource GET requests. For
       example:
      
       "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/
       key_region/cryptoKeys/key
       /cryptoKeyVersions/1
       
      optional string kms_key_name = 484373913;
      Specified by:
      getKmsKeyName in interface CustomerEncryptionKeyOrBuilder
      Returns:
      The kmsKeyName.
    • getKmsKeyNameBytes

      public com.google.protobuf.ByteString getKmsKeyNameBytes()
       The name of the encryption key that is stored in Google Cloud KMS.
       For example:
      
       "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/
       key_region/cryptoKeys/key
      
       The fully-qualifed key name may be returned for resource GET requests. For
       example:
      
       "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/
       key_region/cryptoKeys/key
       /cryptoKeyVersions/1
       
      optional string kms_key_name = 484373913;
      Specified by:
      getKmsKeyNameBytes in interface CustomerEncryptionKeyOrBuilder
      Returns:
      The bytes for kmsKeyName.
    • setKmsKeyName

      public CustomerEncryptionKey.Builder setKmsKeyName(String value)
       The name of the encryption key that is stored in Google Cloud KMS.
       For example:
      
       "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/
       key_region/cryptoKeys/key
      
       The fully-qualifed key name may be returned for resource GET requests. For
       example:
      
       "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/
       key_region/cryptoKeys/key
       /cryptoKeyVersions/1
       
      optional string kms_key_name = 484373913;
      Parameters:
      value - The kmsKeyName to set.
      Returns:
      This builder for chaining.
    • clearKmsKeyName

      public CustomerEncryptionKey.Builder clearKmsKeyName()
       The name of the encryption key that is stored in Google Cloud KMS.
       For example:
      
       "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/
       key_region/cryptoKeys/key
      
       The fully-qualifed key name may be returned for resource GET requests. For
       example:
      
       "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/
       key_region/cryptoKeys/key
       /cryptoKeyVersions/1
       
      optional string kms_key_name = 484373913;
      Returns:
      This builder for chaining.
    • setKmsKeyNameBytes

      public CustomerEncryptionKey.Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value)
       The name of the encryption key that is stored in Google Cloud KMS.
       For example:
      
       "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/
       key_region/cryptoKeys/key
      
       The fully-qualifed key name may be returned for resource GET requests. For
       example:
      
       "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/
       key_region/cryptoKeys/key
       /cryptoKeyVersions/1
       
      optional string kms_key_name = 484373913;
      Parameters:
      value - The bytes for kmsKeyName to set.
      Returns:
      This builder for chaining.
    • hasKmsKeyServiceAccount

      public boolean hasKmsKeyServiceAccount()
       The service account being used for the encryption request for the given KMS
       key. If absent, the Compute Engine default service account is used.
       For example:
      
       "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/
       
      optional string kms_key_service_account = 209986261;
      Specified by:
      hasKmsKeyServiceAccount in interface CustomerEncryptionKeyOrBuilder
      Returns:
      Whether the kmsKeyServiceAccount field is set.
    • getKmsKeyServiceAccount

      public String getKmsKeyServiceAccount()
       The service account being used for the encryption request for the given KMS
       key. If absent, the Compute Engine default service account is used.
       For example:
      
       "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/
       
      optional string kms_key_service_account = 209986261;
      Specified by:
      getKmsKeyServiceAccount in interface CustomerEncryptionKeyOrBuilder
      Returns:
      The kmsKeyServiceAccount.
    • getKmsKeyServiceAccountBytes

      public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes()
       The service account being used for the encryption request for the given KMS
       key. If absent, the Compute Engine default service account is used.
       For example:
      
       "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/
       
      optional string kms_key_service_account = 209986261;
      Specified by:
      getKmsKeyServiceAccountBytes in interface CustomerEncryptionKeyOrBuilder
      Returns:
      The bytes for kmsKeyServiceAccount.
    • setKmsKeyServiceAccount

      public CustomerEncryptionKey.Builder setKmsKeyServiceAccount(String value)
       The service account being used for the encryption request for the given KMS
       key. If absent, the Compute Engine default service account is used.
       For example:
      
       "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/
       
      optional string kms_key_service_account = 209986261;
      Parameters:
      value - The kmsKeyServiceAccount to set.
      Returns:
      This builder for chaining.
    • clearKmsKeyServiceAccount

      public CustomerEncryptionKey.Builder clearKmsKeyServiceAccount()
       The service account being used for the encryption request for the given KMS
       key. If absent, the Compute Engine default service account is used.
       For example:
      
       "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/
       
      optional string kms_key_service_account = 209986261;
      Returns:
      This builder for chaining.
    • setKmsKeyServiceAccountBytes

      public CustomerEncryptionKey.Builder setKmsKeyServiceAccountBytes(com.google.protobuf.ByteString value)
       The service account being used for the encryption request for the given KMS
       key. If absent, the Compute Engine default service account is used.
       For example:
      
       "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/
       
      optional string kms_key_service_account = 209986261;
      Parameters:
      value - The bytes for kmsKeyServiceAccount to set.
      Returns:
      This builder for chaining.
    • hasRawKey

      public boolean hasRawKey()
       Specifies a 256-bit customer-supplied
       encryption key, encoded in RFC
       4648 base64 to either encrypt or decrypt this resource. You can
       provide either the rawKey or thersaEncryptedKey.
       For example:
      
       "rawKey":
       "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
       
      optional string raw_key = 449196488;
      Specified by:
      hasRawKey in interface CustomerEncryptionKeyOrBuilder
      Returns:
      Whether the rawKey field is set.
    • getRawKey

      public String getRawKey()
       Specifies a 256-bit customer-supplied
       encryption key, encoded in RFC
       4648 base64 to either encrypt or decrypt this resource. You can
       provide either the rawKey or thersaEncryptedKey.
       For example:
      
       "rawKey":
       "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
       
      optional string raw_key = 449196488;
      Specified by:
      getRawKey in interface CustomerEncryptionKeyOrBuilder
      Returns:
      The rawKey.
    • getRawKeyBytes

      public com.google.protobuf.ByteString getRawKeyBytes()
       Specifies a 256-bit customer-supplied
       encryption key, encoded in RFC
       4648 base64 to either encrypt or decrypt this resource. You can
       provide either the rawKey or thersaEncryptedKey.
       For example:
      
       "rawKey":
       "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
       
      optional string raw_key = 449196488;
      Specified by:
      getRawKeyBytes in interface CustomerEncryptionKeyOrBuilder
      Returns:
      The bytes for rawKey.
    • setRawKey

      public CustomerEncryptionKey.Builder setRawKey(String value)
       Specifies a 256-bit customer-supplied
       encryption key, encoded in RFC
       4648 base64 to either encrypt or decrypt this resource. You can
       provide either the rawKey or thersaEncryptedKey.
       For example:
      
       "rawKey":
       "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
       
      optional string raw_key = 449196488;
      Parameters:
      value - The rawKey to set.
      Returns:
      This builder for chaining.
    • clearRawKey

      public CustomerEncryptionKey.Builder clearRawKey()
       Specifies a 256-bit customer-supplied
       encryption key, encoded in RFC
       4648 base64 to either encrypt or decrypt this resource. You can
       provide either the rawKey or thersaEncryptedKey.
       For example:
      
       "rawKey":
       "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
       
      optional string raw_key = 449196488;
      Returns:
      This builder for chaining.
    • setRawKeyBytes

      public CustomerEncryptionKey.Builder setRawKeyBytes(com.google.protobuf.ByteString value)
       Specifies a 256-bit customer-supplied
       encryption key, encoded in RFC
       4648 base64 to either encrypt or decrypt this resource. You can
       provide either the rawKey or thersaEncryptedKey.
       For example:
      
       "rawKey":
       "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
       
      optional string raw_key = 449196488;
      Parameters:
      value - The bytes for rawKey to set.
      Returns:
      This builder for chaining.
    • hasRsaEncryptedKey

      public boolean hasRsaEncryptedKey()
       Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
       customer-supplied encryption key to either encrypt or decrypt this
       resource. You can provide either the rawKey or thersaEncryptedKey.
       For example:
      
       "rsaEncryptedKey":
       "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
       z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
       D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe=="
      
       The key must meet the following requirements before you can provide it to
       Compute Engine:
      
       1. The key is wrapped using a RSA public key certificate provided by
       Google.
       2. After being wrapped, the key must be encoded in RFC 4648 base64
       encoding.
      
       Gets the RSA public key certificate provided by Google at:
      
      
       https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
       
      optional string rsa_encrypted_key = 335487397;
      Specified by:
      hasRsaEncryptedKey in interface CustomerEncryptionKeyOrBuilder
      Returns:
      Whether the rsaEncryptedKey field is set.
    • getRsaEncryptedKey

      public String getRsaEncryptedKey()
       Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
       customer-supplied encryption key to either encrypt or decrypt this
       resource. You can provide either the rawKey or thersaEncryptedKey.
       For example:
      
       "rsaEncryptedKey":
       "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
       z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
       D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe=="
      
       The key must meet the following requirements before you can provide it to
       Compute Engine:
      
       1. The key is wrapped using a RSA public key certificate provided by
       Google.
       2. After being wrapped, the key must be encoded in RFC 4648 base64
       encoding.
      
       Gets the RSA public key certificate provided by Google at:
      
      
       https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
       
      optional string rsa_encrypted_key = 335487397;
      Specified by:
      getRsaEncryptedKey in interface CustomerEncryptionKeyOrBuilder
      Returns:
      The rsaEncryptedKey.
    • getRsaEncryptedKeyBytes

      public com.google.protobuf.ByteString getRsaEncryptedKeyBytes()
       Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
       customer-supplied encryption key to either encrypt or decrypt this
       resource. You can provide either the rawKey or thersaEncryptedKey.
       For example:
      
       "rsaEncryptedKey":
       "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
       z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
       D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe=="
      
       The key must meet the following requirements before you can provide it to
       Compute Engine:
      
       1. The key is wrapped using a RSA public key certificate provided by
       Google.
       2. After being wrapped, the key must be encoded in RFC 4648 base64
       encoding.
      
       Gets the RSA public key certificate provided by Google at:
      
      
       https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
       
      optional string rsa_encrypted_key = 335487397;
      Specified by:
      getRsaEncryptedKeyBytes in interface CustomerEncryptionKeyOrBuilder
      Returns:
      The bytes for rsaEncryptedKey.
    • setRsaEncryptedKey

      public CustomerEncryptionKey.Builder setRsaEncryptedKey(String value)
       Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
       customer-supplied encryption key to either encrypt or decrypt this
       resource. You can provide either the rawKey or thersaEncryptedKey.
       For example:
      
       "rsaEncryptedKey":
       "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
       z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
       D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe=="
      
       The key must meet the following requirements before you can provide it to
       Compute Engine:
      
       1. The key is wrapped using a RSA public key certificate provided by
       Google.
       2. After being wrapped, the key must be encoded in RFC 4648 base64
       encoding.
      
       Gets the RSA public key certificate provided by Google at:
      
      
       https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
       
      optional string rsa_encrypted_key = 335487397;
      Parameters:
      value - The rsaEncryptedKey to set.
      Returns:
      This builder for chaining.
    • clearRsaEncryptedKey

      public CustomerEncryptionKey.Builder clearRsaEncryptedKey()
       Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
       customer-supplied encryption key to either encrypt or decrypt this
       resource. You can provide either the rawKey or thersaEncryptedKey.
       For example:
      
       "rsaEncryptedKey":
       "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
       z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
       D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe=="
      
       The key must meet the following requirements before you can provide it to
       Compute Engine:
      
       1. The key is wrapped using a RSA public key certificate provided by
       Google.
       2. After being wrapped, the key must be encoded in RFC 4648 base64
       encoding.
      
       Gets the RSA public key certificate provided by Google at:
      
      
       https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
       
      optional string rsa_encrypted_key = 335487397;
      Returns:
      This builder for chaining.
    • setRsaEncryptedKeyBytes

      public CustomerEncryptionKey.Builder setRsaEncryptedKeyBytes(com.google.protobuf.ByteString value)
       Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
       customer-supplied encryption key to either encrypt or decrypt this
       resource. You can provide either the rawKey or thersaEncryptedKey.
       For example:
      
       "rsaEncryptedKey":
       "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
       z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
       D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe=="
      
       The key must meet the following requirements before you can provide it to
       Compute Engine:
      
       1. The key is wrapped using a RSA public key certificate provided by
       Google.
       2. After being wrapped, the key must be encoded in RFC 4648 base64
       encoding.
      
       Gets the RSA public key certificate provided by Google at:
      
      
       https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
       
      optional string rsa_encrypted_key = 335487397;
      Parameters:
      value - The bytes for rsaEncryptedKey to set.
      Returns:
      This builder for chaining.
    • hasSha256

      public boolean hasSha256()
       [Output only] TheRFC
       4648 base64 encoded SHA-256 hash of the customer-supplied
       encryption key that protects this resource.
       
      optional string sha256 = 170112551;
      Specified by:
      hasSha256 in interface CustomerEncryptionKeyOrBuilder
      Returns:
      Whether the sha256 field is set.
    • getSha256

      public String getSha256()
       [Output only] TheRFC
       4648 base64 encoded SHA-256 hash of the customer-supplied
       encryption key that protects this resource.
       
      optional string sha256 = 170112551;
      Specified by:
      getSha256 in interface CustomerEncryptionKeyOrBuilder
      Returns:
      The sha256.
    • getSha256Bytes

      public com.google.protobuf.ByteString getSha256Bytes()
       [Output only] TheRFC
       4648 base64 encoded SHA-256 hash of the customer-supplied
       encryption key that protects this resource.
       
      optional string sha256 = 170112551;
      Specified by:
      getSha256Bytes in interface CustomerEncryptionKeyOrBuilder
      Returns:
      The bytes for sha256.
    • setSha256

      public CustomerEncryptionKey.Builder setSha256(String value)
       [Output only] TheRFC
       4648 base64 encoded SHA-256 hash of the customer-supplied
       encryption key that protects this resource.
       
      optional string sha256 = 170112551;
      Parameters:
      value - The sha256 to set.
      Returns:
      This builder for chaining.
    • clearSha256

      public CustomerEncryptionKey.Builder clearSha256()
       [Output only] TheRFC
       4648 base64 encoded SHA-256 hash of the customer-supplied
       encryption key that protects this resource.
       
      optional string sha256 = 170112551;
      Returns:
      This builder for chaining.
    • setSha256Bytes

      public CustomerEncryptionKey.Builder setSha256Bytes(com.google.protobuf.ByteString value)
       [Output only] TheRFC
       4648 base64 encoded SHA-256 hash of the customer-supplied
       encryption key that protects this resource.
       
      optional string sha256 = 170112551;
      Parameters:
      value - The bytes for sha256 to set.
      Returns:
      This builder for chaining.