Class AwsWrappedKeyInfo (0.1.0)

public final class AwsWrappedKeyInfo extends GeneratedMessageV3 implements AwsWrappedKeyInfoOrBuilder

A data encryption key wrapped by an AWS KMS key.

Protobuf type google.ads.datamanager.v1.AwsWrappedKeyInfo

Static Fields

ENCRYPTED_DEK_FIELD_NUMBER

public static final int ENCRYPTED_DEK_FIELD_NUMBER
Field Value
Type Description
int

KEK_URI_FIELD_NUMBER

public static final int KEK_URI_FIELD_NUMBER
Field Value
Type Description
int

KEY_TYPE_FIELD_NUMBER

public static final int KEY_TYPE_FIELD_NUMBER
Field Value
Type Description
int

ROLE_ARN_FIELD_NUMBER

public static final int ROLE_ARN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AwsWrappedKeyInfo getDefaultInstance()
Returns
Type Description
AwsWrappedKeyInfo

getDescriptor()

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

newBuilder()

public static AwsWrappedKeyInfo.Builder newBuilder()
Returns
Type Description
AwsWrappedKeyInfo.Builder

newBuilder(AwsWrappedKeyInfo prototype)

public static AwsWrappedKeyInfo.Builder newBuilder(AwsWrappedKeyInfo prototype)
Parameter
Name Description
prototype AwsWrappedKeyInfo
Returns
Type Description
AwsWrappedKeyInfo.Builder

parseDelimitedFrom(InputStream input)

public static AwsWrappedKeyInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AwsWrappedKeyInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AwsWrappedKeyInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AwsWrappedKeyInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AwsWrappedKeyInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AwsWrappedKeyInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AwsWrappedKeyInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AwsWrappedKeyInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AwsWrappedKeyInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AwsWrappedKeyInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AwsWrappedKeyInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AwsWrappedKeyInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AwsWrappedKeyInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AwsWrappedKeyInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AwsWrappedKeyInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AwsWrappedKeyInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AwsWrappedKeyInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AwsWrappedKeyInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AwsWrappedKeyInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AwsWrappedKeyInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AwsWrappedKeyInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AwsWrappedKeyInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AwsWrappedKeyInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AwsWrappedKeyInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AwsWrappedKeyInfo> parser()
Returns
Type Description
Parser<AwsWrappedKeyInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AwsWrappedKeyInfo getDefaultInstanceForType()
Returns
Type Description
AwsWrappedKeyInfo

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}"

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}"

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.

getParserForType()

public Parser<AwsWrappedKeyInfo> getParserForType()
Returns
Type Description
Parser<AwsWrappedKeyInfo>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AwsWrappedKeyInfo.Builder newBuilderForType()
Returns
Type Description
AwsWrappedKeyInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AwsWrappedKeyInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AwsWrappedKeyInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AwsWrappedKeyInfo.Builder toBuilder()
Returns
Type Description
AwsWrappedKeyInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException