Class GcpWrappedKeyInfo.Builder (0.6.0)

public static final class GcpWrappedKeyInfo.Builder extends GeneratedMessage.Builder<GcpWrappedKeyInfo.Builder> implements GcpWrappedKeyInfoOrBuilder

Information about the Google Cloud Platform wrapped key.

Protobuf type google.ads.datamanager.v1.GcpWrappedKeyInfo

Static Methods

getDescriptor()

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

Methods

build()

public GcpWrappedKeyInfo build()
Returns
Type Description
GcpWrappedKeyInfo

buildPartial()

public GcpWrappedKeyInfo buildPartial()
Returns
Type Description
GcpWrappedKeyInfo

clear()

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

clearEncryptedDek()

public GcpWrappedKeyInfo.Builder clearEncryptedDek()

Required. The base64 encoded encrypted data encryption key.

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

Returns
Type Description
GcpWrappedKeyInfo.Builder

This builder for chaining.

clearKekUri()

public GcpWrappedKeyInfo.Builder clearKekUri()

Required. Google Cloud Platform Cloud Key Management Service resource ID. Should be in the format of projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key} or gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}

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

Returns
Type Description
GcpWrappedKeyInfo.Builder

This builder for chaining.

clearKeyType()

public GcpWrappedKeyInfo.Builder clearKeyType()

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

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

Returns
Type Description
GcpWrappedKeyInfo.Builder

This builder for chaining.

clearWipProvider()

public GcpWrappedKeyInfo.Builder clearWipProvider()

Required. The Workload Identity pool provider required to use KEK.

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

Returns
Type Description
GcpWrappedKeyInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public GcpWrappedKeyInfo getDefaultInstanceForType()
Returns
Type Description
GcpWrappedKeyInfo

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. Google Cloud Platform Cloud Key Management Service resource ID. Should be in the format of projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key} or gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}

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

Returns
Type Description
String

The kekUri.

getKekUriBytes()

public ByteString getKekUriBytes()

Required. Google Cloud Platform Cloud Key Management Service resource ID. Should be in the format of projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key} or gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}

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

Returns
Type Description
ByteString

The bytes for kekUri.

getKeyType()

public GcpWrappedKeyInfo.KeyType getKeyType()

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

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

Returns
Type Description
GcpWrappedKeyInfo.KeyType

The keyType.

getKeyTypeValue()

public int getKeyTypeValue()

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

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

Returns
Type Description
int

The enum numeric value on the wire for keyType.

getWipProvider()

public String getWipProvider()

Required. The Workload Identity pool provider required to use KEK.

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

Returns
Type Description
String

The wipProvider.

getWipProviderBytes()

public ByteString getWipProviderBytes()

Required. The Workload Identity pool provider required to use KEK.

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

Returns
Type Description
ByteString

The bytes for wipProvider.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GcpWrappedKeyInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEncryptedDek(String value)

public GcpWrappedKeyInfo.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
GcpWrappedKeyInfo.Builder

This builder for chaining.

setEncryptedDekBytes(ByteString value)

public GcpWrappedKeyInfo.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
GcpWrappedKeyInfo.Builder

This builder for chaining.

setKekUri(String value)

public GcpWrappedKeyInfo.Builder setKekUri(String value)

Required. Google Cloud Platform Cloud Key Management Service resource ID. Should be in the format of projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key} or gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}

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

Parameter
Name Description
value String

The kekUri to set.

Returns
Type Description
GcpWrappedKeyInfo.Builder

This builder for chaining.

setKekUriBytes(ByteString value)

public GcpWrappedKeyInfo.Builder setKekUriBytes(ByteString value)

Required. Google Cloud Platform Cloud Key Management Service resource ID. Should be in the format of projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key} or gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}

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

Parameter
Name Description
value ByteString

The bytes for kekUri to set.

Returns
Type Description
GcpWrappedKeyInfo.Builder

This builder for chaining.

setKeyType(GcpWrappedKeyInfo.KeyType value)

public GcpWrappedKeyInfo.Builder setKeyType(GcpWrappedKeyInfo.KeyType value)

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

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

Parameter
Name Description
value GcpWrappedKeyInfo.KeyType

The keyType to set.

Returns
Type Description
GcpWrappedKeyInfo.Builder

This builder for chaining.

setKeyTypeValue(int value)

public GcpWrappedKeyInfo.Builder setKeyTypeValue(int value)

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

.google.ads.datamanager.v1.GcpWrappedKeyInfo.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
GcpWrappedKeyInfo.Builder

This builder for chaining.

setWipProvider(String value)

public GcpWrappedKeyInfo.Builder setWipProvider(String value)

Required. The Workload Identity pool provider required to use KEK.

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

Parameter
Name Description
value String

The wipProvider to set.

Returns
Type Description
GcpWrappedKeyInfo.Builder

This builder for chaining.

setWipProviderBytes(ByteString value)

public GcpWrappedKeyInfo.Builder setWipProviderBytes(ByteString value)

Required. The Workload Identity pool provider required to use KEK.

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

Parameter
Name Description
value ByteString

The bytes for wipProvider to set.

Returns
Type Description
GcpWrappedKeyInfo.Builder

This builder for chaining.