Class CustomerEncryptionKey.Builder (0.18.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass CustomerEncryptionKey.BuilderextendsGeneratedMessageV3.Builder<CustomerEncryptionKey.Builder>implementsCustomerEncryptionKeyOrBuilderA customer-supplied encryption key.
Protobuf type google.cloud.backupdr.v1.CustomerEncryptionKey
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CustomerEncryptionKey.BuilderImplements
CustomerEncryptionKeyOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicCustomerEncryptionKey.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|
build()
publicCustomerEncryptionKeybuild()| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey |
|
buildPartial()
publicCustomerEncryptionKeybuildPartial()| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey |
|
clear()
publicCustomerEncryptionKey.Builderclear()| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicCustomerEncryptionKey.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|
clearKey()
publicCustomerEncryptionKey.BuilderclearKey()| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|
clearKmsKeyName()
publicCustomerEncryptionKey.BuilderclearKmsKeyName()Optional. The name of the encryption key that is stored in Google Cloud KMS.
string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
This builder for chaining. |
clearKmsKeyServiceAccount()
publicCustomerEncryptionKey.BuilderclearKmsKeyServiceAccount()Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicCustomerEncryptionKey.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|
clearRawKey()
publicCustomerEncryptionKey.BuilderclearRawKey()Optional. Specifies a 256-bit customer-supplied encryption key.
string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
This builder for chaining. |
clearRsaEncryptedKey()
publicCustomerEncryptionKey.BuilderclearRsaEncryptedKey()Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
This builder for chaining. |
clone()
publicCustomerEncryptionKey.Builderclone()| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|
getDefaultInstanceForType()
publicCustomerEncryptionKeygetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getKeyCase()
publicCustomerEncryptionKey.KeyCasegetKeyCase()| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.KeyCase |
|
getKmsKeyName()
publicStringgetKmsKeyName()Optional. The name of the encryption key that is stored in Google Cloud KMS.
string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The kmsKeyName. |
getKmsKeyNameBytes()
publicByteStringgetKmsKeyNameBytes()Optional. The name of the encryption key that is stored in Google Cloud KMS.
string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kmsKeyName. |
getKmsKeyServiceAccount()
publicStringgetKmsKeyServiceAccount()Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The kmsKeyServiceAccount. |
getKmsKeyServiceAccountBytes()
publicByteStringgetKmsKeyServiceAccountBytes()Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kmsKeyServiceAccount. |
getRawKey()
publicStringgetRawKey()Optional. Specifies a 256-bit customer-supplied encryption key.
string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The rawKey. |
getRawKeyBytes()
publicByteStringgetRawKeyBytes()Optional. Specifies a 256-bit customer-supplied encryption key.
string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for rawKey. |
getRsaEncryptedKey()
publicStringgetRsaEncryptedKey()Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The rsaEncryptedKey. |
getRsaEncryptedKeyBytes()
publicByteStringgetRsaEncryptedKeyBytes()Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for rsaEncryptedKey. |
hasKmsKeyName()
publicbooleanhasKmsKeyName()Optional. The name of the encryption key that is stored in Google Cloud KMS.
string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the kmsKeyName field is set. |
hasKmsKeyServiceAccount()
publicbooleanhasKmsKeyServiceAccount()Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the kmsKeyServiceAccount field is set. |
hasRawKey()
publicbooleanhasRawKey()Optional. Specifies a 256-bit customer-supplied encryption key.
string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the rawKey field is set. |
hasRsaEncryptedKey()
publicbooleanhasRsaEncryptedKey()Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the rsaEncryptedKey field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CustomerEncryptionKey other)
publicCustomerEncryptionKey.BuildermergeFrom(CustomerEncryptionKeyother)| Parameter | |
|---|---|
| Name | Description |
other |
CustomerEncryptionKey |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicCustomerEncryptionKey.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicCustomerEncryptionKey.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalCustomerEncryptionKey.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicCustomerEncryptionKey.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|
setKmsKeyName(String value)
publicCustomerEncryptionKey.BuildersetKmsKeyName(Stringvalue)Optional. The name of the encryption key that is stored in Google Cloud KMS.
string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
String The kmsKeyName to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
This builder for chaining. |
setKmsKeyNameBytes(ByteString value)
publicCustomerEncryptionKey.BuildersetKmsKeyNameBytes(ByteStringvalue)Optional. The name of the encryption key that is stored in Google Cloud KMS.
string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for kmsKeyName to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
This builder for chaining. |
setKmsKeyServiceAccount(String value)
publicCustomerEncryptionKey.BuildersetKmsKeyServiceAccount(Stringvalue)Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
String The kmsKeyServiceAccount to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
This builder for chaining. |
setKmsKeyServiceAccountBytes(ByteString value)
publicCustomerEncryptionKey.BuildersetKmsKeyServiceAccountBytes(ByteStringvalue)Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for kmsKeyServiceAccount to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
This builder for chaining. |
setRawKey(String value)
publicCustomerEncryptionKey.BuildersetRawKey(Stringvalue)Optional. Specifies a 256-bit customer-supplied encryption key.
string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
String The rawKey to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
This builder for chaining. |
setRawKeyBytes(ByteString value)
publicCustomerEncryptionKey.BuildersetRawKeyBytes(ByteStringvalue)Optional. Specifies a 256-bit customer-supplied encryption key.
string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for rawKey to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicCustomerEncryptionKey.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|
setRsaEncryptedKey(String value)
publicCustomerEncryptionKey.BuildersetRsaEncryptedKey(Stringvalue)Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
String The rsaEncryptedKey to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
This builder for chaining. |
setRsaEncryptedKeyBytes(ByteString value)
publicCustomerEncryptionKey.BuildersetRsaEncryptedKeyBytes(ByteStringvalue)Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for rsaEncryptedKey to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalCustomerEncryptionKey.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|