Interface SourceDiskEncryptionKeyOrBuilder (1.58.0)

public interface SourceDiskEncryptionKeyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDiskEncryptionKey()

public abstract CustomerEncryptionKey getDiskEncryptionKey()

The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.

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

Returns
Type Description
CustomerEncryptionKey

The diskEncryptionKey.

getDiskEncryptionKeyOrBuilder()

public abstract CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()

The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.

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

Returns
Type Description
CustomerEncryptionKeyOrBuilder

getSourceDisk()

public abstract String getSourceDisk()

URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk

optional string source_disk = 451753793;

Returns
Type Description
String

The sourceDisk.

getSourceDiskBytes()

public abstract ByteString getSourceDiskBytes()

URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk

optional string source_disk = 451753793;

Returns
Type Description
ByteString

The bytes for sourceDisk.

hasDiskEncryptionKey()

public abstract boolean hasDiskEncryptionKey()

The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.

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

Returns
Type Description
boolean

Whether the diskEncryptionKey field is set.

hasSourceDisk()

public abstract boolean hasSourceDisk()

URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk

optional string source_disk = 451753793;

Returns
Type Description
boolean

Whether the sourceDisk field is set.