Class DiskMigrationJobTargetDetails (1.74.0)

public final class DiskMigrationJobTargetDetails extends GeneratedMessageV3 implements DiskMigrationJobTargetDetailsOrBuilder

Details of the target disk in Compute Engine.

Protobuf type google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails

Static Fields

ENCRYPTION_FIELD_NUMBER

public static final int ENCRYPTION_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

TARGET_DISK_FIELD_NUMBER

public static final int TARGET_DISK_FIELD_NUMBER
Field Value
Type Description
int

TARGET_PROJECT_FIELD_NUMBER

public static final int TARGET_PROJECT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DiskMigrationJobTargetDetails getDefaultInstance()
Returns
Type Description
DiskMigrationJobTargetDetails

getDescriptor()

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

newBuilder()

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

newBuilder(DiskMigrationJobTargetDetails prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsLabels(String key)

public 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

equals(Object obj)

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

getDefaultInstanceForType()

public DiskMigrationJobTargetDetails getDefaultInstanceForType()
Returns
Type Description
DiskMigrationJobTargetDetails

getEncryption()

public 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 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 Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public 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 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 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 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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetDisk()

public 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 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 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 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 DiskMigrationJobTargetDetails.TargetStorageCase getTargetStorageCase()
Returns
Type Description
DiskMigrationJobTargetDetails.TargetStorageCase

hasEncryption()

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

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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