public static final class AwsWrappedKeyInfo.Builder extends GeneratedMessage.Builder<AwsWrappedKeyInfo.Builder> implements AwsWrappedKeyInfoOrBuilderA data encryption key wrapped by an AWS KMS key.
Protobuf type google.ads.datamanager.v1.AwsWrappedKeyInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AwsWrappedKeyInfo.BuilderImplements
AwsWrappedKeyInfoOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AwsWrappedKeyInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AwsWrappedKeyInfo.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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.KeyTypeThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for roleArn to set. |
| Returns | |
|---|---|
| Type | Description |
AwsWrappedKeyInfo.Builder |
This builder for chaining. |