Class AwsWrappedKeyInfo.Builder (0.6.0)

public static final class AwsWrappedKeyInfo.Builder extends GeneratedMessage.Builder<AwsWrappedKeyInfo.Builder> implements AwsWrappedKeyInfoOrBuilder

A data encryption key wrapped by an AWS KMS key.

Protobuf type google.ads.datamanager.v1.AwsWrappedKeyInfo

Static Methods

getDescriptor()

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

Methods

build()

public AwsWrappedKeyInfo build()
Returns
Type Description
AwsWrappedKeyInfo

buildPartial()

public AwsWrappedKeyInfo buildPartial()
Returns
Type Description
AwsWrappedKeyInfo

clear()

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

clearEncryptedDek()

public AwsWrappedKeyInfo.Builder clearEncryptedDek()

Required. The base64 encoded encrypted data encryption key.

string encrypted_dek = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsWrappedKeyInfo.Builder

This builder for chaining.

clearKekUri()

public AwsWrappedKeyInfo.Builder clearKekUri()

Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in the format of arn:{partition}:kms:{region}:{account_id}:key/{key_id} or aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}

string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsWrappedKeyInfo.Builder

This builder for chaining.

clearKeyType()

public AwsWrappedKeyInfo.Builder clearKeyType()

Required. The type of algorithm used to encrypt the data.

.google.ads.datamanager.v1.AwsWrappedKeyInfo.KeyType key_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsWrappedKeyInfo.Builder

This builder for chaining.

clearRoleArn()

public AwsWrappedKeyInfo.Builder clearRoleArn()

Required. The Amazon Resource Name of the IAM Role to assume for KMS decryption access. Should be in the format of arn:{partition}:iam::{account_id}:role/{role_name}

string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsWrappedKeyInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public AwsWrappedKeyInfo getDefaultInstanceForType()
Returns
Type Description
AwsWrappedKeyInfo

getDescriptorForType()

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

getEncryptedDek()

public String getEncryptedDek()

Required. The base64 encoded encrypted data encryption key.

string encrypted_dek = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The encryptedDek.

getEncryptedDekBytes()

public ByteString getEncryptedDekBytes()

Required. The base64 encoded encrypted data encryption key.

string encrypted_dek = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for encryptedDek.

getKekUri()

public String getKekUri()

Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in the format of arn:{partition}:kms:{region}:{account_id}:key/{key_id} or aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}

string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The kekUri.

getKekUriBytes()

public ByteString getKekUriBytes()

Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in the format of arn:{partition}:kms:{region}:{account_id}:key/{key_id} or aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}

string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for kekUri.

getKeyType()

public AwsWrappedKeyInfo.KeyType getKeyType()

Required. The type of algorithm used to encrypt the data.

.google.ads.datamanager.v1.AwsWrappedKeyInfo.KeyType key_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsWrappedKeyInfo.KeyType

The keyType.

getKeyTypeValue()

public int getKeyTypeValue()

Required. The type of algorithm used to encrypt the data.

.google.ads.datamanager.v1.AwsWrappedKeyInfo.KeyType key_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for keyType.

getRoleArn()

public String getRoleArn()

Required. The Amazon Resource Name of the IAM Role to assume for KMS decryption access. Should be in the format of arn:{partition}:iam::{account_id}:role/{role_name}

string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The roleArn.

getRoleArnBytes()

public ByteString getRoleArnBytes()

Required. The Amazon Resource Name of the IAM Role to assume for KMS decryption access. Should be in the format of arn:{partition}:iam::{account_id}:role/{role_name}

string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for roleArn.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AwsWrappedKeyInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEncryptedDek(String value)

public AwsWrappedKeyInfo.Builder setEncryptedDek(String value)

Required. The base64 encoded encrypted data encryption key.

string encrypted_dek = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The encryptedDek to set.

Returns
Type Description
AwsWrappedKeyInfo.Builder

This builder for chaining.

setEncryptedDekBytes(ByteString value)

public AwsWrappedKeyInfo.Builder setEncryptedDekBytes(ByteString value)

Required. The base64 encoded encrypted data encryption key.

string encrypted_dek = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for encryptedDek to set.

Returns
Type Description
AwsWrappedKeyInfo.Builder

This builder for chaining.

setKekUri(String value)

public AwsWrappedKeyInfo.Builder setKekUri(String value)

Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in the format of arn:{partition}:kms:{region}:{account_id}:key/{key_id} or aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}

string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The kekUri to set.

Returns
Type Description
AwsWrappedKeyInfo.Builder

This builder for chaining.

setKekUriBytes(ByteString value)

public AwsWrappedKeyInfo.Builder setKekUriBytes(ByteString value)

Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in the format of arn:{partition}:kms:{region}:{account_id}:key/{key_id} or aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}

string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for kekUri to set.

Returns
Type Description
AwsWrappedKeyInfo.Builder

This builder for chaining.

setKeyType(AwsWrappedKeyInfo.KeyType value)

public AwsWrappedKeyInfo.Builder setKeyType(AwsWrappedKeyInfo.KeyType value)

Required. The type of algorithm used to encrypt the data.

.google.ads.datamanager.v1.AwsWrappedKeyInfo.KeyType key_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AwsWrappedKeyInfo.KeyType

The keyType to set.

Returns
Type Description
AwsWrappedKeyInfo.Builder

This builder for chaining.

setKeyTypeValue(int value)

public AwsWrappedKeyInfo.Builder setKeyTypeValue(int value)

Required. The type of algorithm used to encrypt the data.

.google.ads.datamanager.v1.AwsWrappedKeyInfo.KeyType key_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
AwsWrappedKeyInfo.Builder

This builder for chaining.

setRoleArn(String value)

public AwsWrappedKeyInfo.Builder setRoleArn(String value)

Required. The Amazon Resource Name of the IAM Role to assume for KMS decryption access. Should be in the format of arn:{partition}:iam::{account_id}:role/{role_name}

string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The roleArn to set.

Returns
Type Description
AwsWrappedKeyInfo.Builder

This builder for chaining.

setRoleArnBytes(ByteString value)

public AwsWrappedKeyInfo.Builder setRoleArnBytes(ByteString value)

Required. The Amazon Resource Name of the IAM Role to assume for KMS decryption access. Should be in the format of arn:{partition}:iam::{account_id}:role/{role_name}

string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for roleArn to set.

Returns
Type Description
AwsWrappedKeyInfo.Builder

This builder for chaining.