- 1.63.0 (latest)
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class CustomerEncryptionKey.Builder extends GeneratedMessageV3.Builder<CustomerEncryptionKey.Builder> implements CustomerEncryptionKeyOrBuilder
Protobuf type google.cloud.compute.v1.CustomerEncryptionKey
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CustomerEncryptionKey.BuilderImplements
CustomerEncryptionKeyOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomerEncryptionKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CustomerEncryptionKey.Builder |
build()
public CustomerEncryptionKey build()
Type | Description |
CustomerEncryptionKey |
buildPartial()
public CustomerEncryptionKey buildPartial()
Type | Description |
CustomerEncryptionKey |
clear()
public CustomerEncryptionKey.Builder clear()
Type | Description |
CustomerEncryptionKey.Builder |
clearField(Descriptors.FieldDescriptor field)
public CustomerEncryptionKey.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CustomerEncryptionKey.Builder |
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
optional string kms_key_name = 484373913;
Type | Description |
CustomerEncryptionKey.Builder | 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;
Type | Description |
CustomerEncryptionKey.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomerEncryptionKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CustomerEncryptionKey.Builder |
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 the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
optional string raw_key = 449196488;
Type | Description |
CustomerEncryptionKey.Builder | 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 the rsaEncryptedKey. 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;
Type | Description |
CustomerEncryptionKey.Builder | This builder for chaining. |
clearSha256()
public CustomerEncryptionKey.Builder clearSha256()
[Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
optional string sha256 = 170112551;
Type | Description |
CustomerEncryptionKey.Builder | This builder for chaining. |
clone()
public CustomerEncryptionKey.Builder clone()
Type | Description |
CustomerEncryptionKey.Builder |
getDefaultInstanceForType()
public CustomerEncryptionKey getDefaultInstanceForType()
Type | Description |
CustomerEncryptionKey |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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
optional string kms_key_name = 484373913;
Type | Description |
String | The kmsKeyName. |
getKmsKeyNameBytes()
public 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
optional string kms_key_name = 484373913;
Type | Description |
ByteString | The bytes for kmsKeyName. |
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;
Type | Description |
String | The kmsKeyServiceAccount. |
getKmsKeyServiceAccountBytes()
public 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;
Type | Description |
ByteString | The bytes for kmsKeyServiceAccount. |
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 the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
optional string raw_key = 449196488;
Type | Description |
String | The rawKey. |
getRawKeyBytes()
public 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 the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
optional string raw_key = 449196488;
Type | Description |
ByteString | The bytes for rawKey. |
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 the rsaEncryptedKey. 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;
Type | Description |
String | The rsaEncryptedKey. |
getRsaEncryptedKeyBytes()
public 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 the rsaEncryptedKey. 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;
Type | Description |
ByteString | The bytes for rsaEncryptedKey. |
getSha256()
public String getSha256()
[Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
optional string sha256 = 170112551;
Type | Description |
String | The sha256. |
getSha256Bytes()
public ByteString getSha256Bytes()
[Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
optional string sha256 = 170112551;
Type | Description |
ByteString | The bytes for sha256. |
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
optional string kms_key_name = 484373913;
Type | Description |
boolean | Whether the kmsKeyName field is set. |
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;
Type | Description |
boolean | Whether the kmsKeyServiceAccount field is set. |
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 the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
optional string raw_key = 449196488;
Type | Description |
boolean | Whether the rawKey field is set. |
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 the rsaEncryptedKey. 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;
Type | Description |
boolean | Whether the rsaEncryptedKey field is set. |
hasSha256()
public boolean hasSha256()
[Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
optional string sha256 = 170112551;
Type | Description |
boolean | Whether the sha256 field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CustomerEncryptionKey other)
public CustomerEncryptionKey.Builder mergeFrom(CustomerEncryptionKey other)
Name | Description |
other | CustomerEncryptionKey |
Type | Description |
CustomerEncryptionKey.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CustomerEncryptionKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CustomerEncryptionKey.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CustomerEncryptionKey.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CustomerEncryptionKey.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomerEncryptionKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CustomerEncryptionKey.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CustomerEncryptionKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CustomerEncryptionKey.Builder |
setKmsKeyName(String value)
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
optional string kms_key_name = 484373913;
Name | Description |
value | String The kmsKeyName to set. |
Type | Description |
CustomerEncryptionKey.Builder | This builder for chaining. |
setKmsKeyNameBytes(ByteString value)
public CustomerEncryptionKey.Builder setKmsKeyNameBytes(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
optional string kms_key_name = 484373913;
Name | Description |
value | ByteString The bytes for kmsKeyName to set. |
Type | Description |
CustomerEncryptionKey.Builder | This builder for chaining. |
setKmsKeyServiceAccount(String value)
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;
Name | Description |
value | String The kmsKeyServiceAccount to set. |
Type | Description |
CustomerEncryptionKey.Builder | This builder for chaining. |
setKmsKeyServiceAccountBytes(ByteString value)
public CustomerEncryptionKey.Builder setKmsKeyServiceAccountBytes(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;
Name | Description |
value | ByteString The bytes for kmsKeyServiceAccount to set. |
Type | Description |
CustomerEncryptionKey.Builder | This builder for chaining. |
setRawKey(String value)
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 the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
optional string raw_key = 449196488;
Name | Description |
value | String The rawKey to set. |
Type | Description |
CustomerEncryptionKey.Builder | This builder for chaining. |
setRawKeyBytes(ByteString value)
public CustomerEncryptionKey.Builder setRawKeyBytes(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 the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
optional string raw_key = 449196488;
Name | Description |
value | ByteString The bytes for rawKey to set. |
Type | Description |
CustomerEncryptionKey.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomerEncryptionKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CustomerEncryptionKey.Builder |
setRsaEncryptedKey(String value)
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 the rsaEncryptedKey. 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;
Name | Description |
value | String The rsaEncryptedKey to set. |
Type | Description |
CustomerEncryptionKey.Builder | This builder for chaining. |
setRsaEncryptedKeyBytes(ByteString value)
public CustomerEncryptionKey.Builder setRsaEncryptedKeyBytes(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 the rsaEncryptedKey. 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;
Name | Description |
value | ByteString The bytes for rsaEncryptedKey to set. |
Type | Description |
CustomerEncryptionKey.Builder | This builder for chaining. |
setSha256(String value)
public CustomerEncryptionKey.Builder setSha256(String value)
[Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
optional string sha256 = 170112551;
Name | Description |
value | String The sha256 to set. |
Type | Description |
CustomerEncryptionKey.Builder | This builder for chaining. |
setSha256Bytes(ByteString value)
public CustomerEncryptionKey.Builder setSha256Bytes(ByteString value)
[Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
optional string sha256 = 170112551;
Name | Description |
value | ByteString The bytes for sha256 to set. |
Type | Description |
CustomerEncryptionKey.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomerEncryptionKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CustomerEncryptionKey.Builder |