Interface CustomerEncryptionKeyProtectedDiskOrBuilder (1.31.0)

public interface CustomerEncryptionKeyProtectedDiskOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDiskEncryptionKey()

public abstract CustomerEncryptionKey getDiskEncryptionKey()

Decrypts data associated with the disk with a customer-supplied encryption key.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
CustomerEncryptionKey

The diskEncryptionKey.

getDiskEncryptionKeyOrBuilder()

public abstract CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()

Decrypts data associated with the disk with a customer-supplied encryption key.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
CustomerEncryptionKeyOrBuilder

getSource()

public abstract String getSource()

Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name

optional string source = 177235995;

Returns
TypeDescription
String

The source.

getSourceBytes()

public abstract ByteString getSourceBytes()

Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name

optional string source = 177235995;

Returns
TypeDescription
ByteString

The bytes for source.

hasDiskEncryptionKey()

public abstract boolean hasDiskEncryptionKey()

Decrypts data associated with the disk with a customer-supplied encryption key.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
boolean

Whether the diskEncryptionKey field is set.

hasSource()

public abstract boolean hasSource()

Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name

optional string source = 177235995;

Returns
TypeDescription
boolean

Whether the source field is set.