Interface DiskMigrationJobTargetDetailsOrBuilder (1.74.0)

public interface DiskMigrationJobTargetDetailsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

Optional. A map of labels to associate with the disk.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getEncryption()

public abstract Encryption getEncryption()

Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key.

.google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Encryption

The encryption.

getEncryptionOrBuilder()

public abstract EncryptionOrBuilder getEncryptionOrBuilder()

Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key.

.google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EncryptionOrBuilder

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Optional. A map of labels to associate with the disk.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Optional. A map of labels to associate with the disk.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

Optional. A map of labels to associate with the disk.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Optional. A map of labels to associate with the disk.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getTargetDisk()

public abstract ComputeEngineDisk getTargetDisk()

Required. The target disk.

.google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ComputeEngineDisk

The targetDisk.

getTargetDiskOrBuilder()

public abstract ComputeEngineDiskOrBuilder getTargetDiskOrBuilder()

Required. The target disk.

.google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ComputeEngineDiskOrBuilder

getTargetProject()

public abstract String getTargetProject()

Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project}

string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The targetProject.

getTargetProjectBytes()

public abstract ByteString getTargetProjectBytes()

Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project}

string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for targetProject.

getTargetStorageCase()

public abstract DiskMigrationJobTargetDetails.TargetStorageCase getTargetStorageCase()
Returns
Type Description
DiskMigrationJobTargetDetails.TargetStorageCase

hasEncryption()

public abstract boolean hasEncryption()

Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key.

.google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the encryption field is set.

hasTargetDisk()

public abstract boolean hasTargetDisk()

Required. The target disk.

.google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the targetDisk field is set.