Class WorkflowTemplate.EncryptionConfig.Builder (4.50.0)

public static final class WorkflowTemplate.EncryptionConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WorkflowTemplate.EncryptionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WorkflowTemplate.EncryptionConfig.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public WorkflowTemplate.EncryptionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkflowTemplate.EncryptionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WorkflowTemplate.EncryptionConfig.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkflowTemplate.EncryptionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WorkflowTemplate.EncryptionConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public WorkflowTemplate.EncryptionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public WorkflowTemplate.EncryptionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WorkflowTemplate.EncryptionConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkflowTemplate.EncryptionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WorkflowTemplate.EncryptionConfig.Builder
Overrides