Class EncryptionKey.Builder (0.32.0)

public static final class EncryptionKey.Builder extends GeneratedMessage.Builder<EncryptionKey.Builder> implements EncryptionKeyOrBuilder

The encryption key used to encrypt the Autonomous Database.

Protobuf type google.cloud.oracledatabase.v1.EncryptionKey

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public EncryptionKey build()
Returns
Type Description
EncryptionKey

buildPartial()

public EncryptionKey buildPartial()
Returns
Type Description
EncryptionKey

clear()

public EncryptionKey.Builder clear()
Returns
Type Description
EncryptionKey.Builder
Overrides

clearKmsKey()

public EncryptionKey.Builder clearKmsKey()

Optional. The KMS key used to encrypt the Autonomous Database. This field is required if the provider is GOOGLE_MANAGED. The name of the KMS key resource in the following format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
EncryptionKey.Builder

This builder for chaining.

clearProvider()

public EncryptionKey.Builder clearProvider()

Optional. The provider of the encryption key.

.google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EncryptionKey.Builder

This builder for chaining.

getDefaultInstanceForType()

public EncryptionKey getDefaultInstanceForType()
Returns
Type Description
EncryptionKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKmsKey()

public String getKmsKey()

Optional. The KMS key used to encrypt the Autonomous Database. This field is required if the provider is GOOGLE_MANAGED. The name of the KMS key resource in the following format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The kmsKey.

getKmsKeyBytes()

public ByteString getKmsKeyBytes()

Optional. The KMS key used to encrypt the Autonomous Database. This field is required if the provider is GOOGLE_MANAGED. The name of the KMS key resource in the following format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for kmsKey.

getProvider()

public EncryptionKey.Provider getProvider()

Optional. The provider of the encryption key.

.google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EncryptionKey.Provider

The provider.

getProviderValue()

public int getProviderValue()

Optional. The provider of the encryption key.

.google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for provider.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EncryptionKey other)

public EncryptionKey.Builder mergeFrom(EncryptionKey other)
Parameter
Name Description
other EncryptionKey
Returns
Type Description
EncryptionKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EncryptionKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EncryptionKey.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public EncryptionKey.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EncryptionKey.Builder
Overrides

setKmsKey(String value)

public EncryptionKey.Builder setKmsKey(String value)

Optional. The KMS key used to encrypt the Autonomous Database. This field is required if the provider is GOOGLE_MANAGED. The name of the KMS key resource in the following format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The kmsKey to set.

Returns
Type Description
EncryptionKey.Builder

This builder for chaining.

setKmsKeyBytes(ByteString value)

public EncryptionKey.Builder setKmsKeyBytes(ByteString value)

Optional. The KMS key used to encrypt the Autonomous Database. This field is required if the provider is GOOGLE_MANAGED. The name of the KMS key resource in the following format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for kmsKey to set.

Returns
Type Description
EncryptionKey.Builder

This builder for chaining.

setProvider(EncryptionKey.Provider value)

public EncryptionKey.Builder setProvider(EncryptionKey.Provider value)

Optional. The provider of the encryption key.

.google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EncryptionKey.Provider

The provider to set.

Returns
Type Description
EncryptionKey.Builder

This builder for chaining.

setProviderValue(int value)

public EncryptionKey.Builder setProviderValue(int value)

Optional. The provider of the encryption key.

.google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for provider to set.

Returns
Type Description
EncryptionKey.Builder

This builder for chaining.