Class WorkflowTemplate.EncryptionConfig.Builder (4.80.0)

public static final class WorkflowTemplate.EncryptionConfig.Builder extends GeneratedMessage.Builder<WorkflowTemplate.EncryptionConfig.Builder> implements WorkflowTemplate.EncryptionConfigOrBuilder

Encryption settings for encrypting workflow template job arguments.

Protobuf type google.cloud.dataproc.v1.WorkflowTemplate.EncryptionConfig

Static Methods

getDescriptor()

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

Methods

build()

public WorkflowTemplate.EncryptionConfig build()
Returns
Type Description
WorkflowTemplate.EncryptionConfig

buildPartial()

public WorkflowTemplate.EncryptionConfig buildPartial()
Returns
Type Description
WorkflowTemplate.EncryptionConfig

clear()

public WorkflowTemplate.EncryptionConfig.Builder clear()
Returns
Type Description
WorkflowTemplate.EncryptionConfig.Builder
Overrides

clearKmsKey()

public WorkflowTemplate.EncryptionConfig.Builder clearKmsKey()

Optional. The Cloud KMS key name to use for encrypting workflow template job arguments.

When this this key is provided, the following workflow template job arguments, if present, are CMEK encrypted:

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

Returns
Type Description
WorkflowTemplate.EncryptionConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public WorkflowTemplate.EncryptionConfig getDefaultInstanceForType()
Returns
Type Description
WorkflowTemplate.EncryptionConfig

getDescriptorForType()

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

getKmsKey()

public String getKmsKey()

Optional. The Cloud KMS key name to use for encrypting workflow template job arguments.

When this this key is provided, the following workflow template job arguments, if present, are CMEK encrypted:

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

Returns
Type Description
String

The kmsKey.

getKmsKeyBytes()

public ByteString getKmsKeyBytes()

Optional. The Cloud KMS key name to use for encrypting workflow template job arguments.

When this this key is provided, the following workflow template job arguments, if present, are CMEK encrypted:

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

Returns
Type Description
ByteString

The bytes for kmsKey.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkflowTemplate.EncryptionConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setKmsKey(String value)

public WorkflowTemplate.EncryptionConfig.Builder setKmsKey(String value)

Optional. The Cloud KMS key name to use for encrypting workflow template job arguments.

When this this key is provided, the following workflow template job arguments, if present, are CMEK encrypted:

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

Parameter
Name Description
value String

The kmsKey to set.

Returns
Type Description
WorkflowTemplate.EncryptionConfig.Builder

This builder for chaining.

setKmsKeyBytes(ByteString value)

public WorkflowTemplate.EncryptionConfig.Builder setKmsKeyBytes(ByteString value)

Optional. The Cloud KMS key name to use for encrypting workflow template job arguments.

When this this key is provided, the following workflow template job arguments, if present, are CMEK encrypted:

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

Parameter
Name Description
value ByteString

The bytes for kmsKey to set.

Returns
Type Description
WorkflowTemplate.EncryptionConfig.Builder

This builder for chaining.