Class DiskMigrationJobTargetDetails.Builder (1.74.0)

public static final class DiskMigrationJobTargetDetails.Builder extends GeneratedMessageV3.Builder<DiskMigrationJobTargetDetails.Builder> implements DiskMigrationJobTargetDetailsOrBuilder

Details of the target disk in Compute Engine.

Protobuf type google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiskMigrationJobTargetDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiskMigrationJobTargetDetails.Builder
Overrides

build()

public DiskMigrationJobTargetDetails build()
Returns
Type Description
DiskMigrationJobTargetDetails

buildPartial()

public DiskMigrationJobTargetDetails buildPartial()
Returns
Type Description
DiskMigrationJobTargetDetails

clear()

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

clearEncryption()

public DiskMigrationJobTargetDetails.Builder clearEncryption()

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
DiskMigrationJobTargetDetails.Builder

clearField(Descriptors.FieldDescriptor field)

public DiskMigrationJobTargetDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DiskMigrationJobTargetDetails.Builder
Overrides

clearLabels()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public DiskMigrationJobTargetDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DiskMigrationJobTargetDetails.Builder
Overrides

clearTargetDisk()

public DiskMigrationJobTargetDetails.Builder clearTargetDisk()

Required. The target disk.

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

Returns
Type Description
DiskMigrationJobTargetDetails.Builder

clearTargetProject()

public DiskMigrationJobTargetDetails.Builder clearTargetProject()

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
DiskMigrationJobTargetDetails.Builder

This builder for chaining.

clearTargetStorage()

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

clone()

public DiskMigrationJobTargetDetails.Builder clone()
Returns
Type Description
DiskMigrationJobTargetDetails.Builder
Overrides

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

getDefaultInstanceForType()

public DiskMigrationJobTargetDetails getDefaultInstanceForType()
Returns
Type Description
DiskMigrationJobTargetDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getEncryptionBuilder()

public Encryption.Builder getEncryptionBuilder()

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

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

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

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.

getTargetDiskBuilder()

public ComputeEngineDisk.Builder getTargetDiskBuilder()

Required. The target disk.

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

Returns
Type Description
ComputeEngineDisk.Builder

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.

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEncryption(Encryption value)

public DiskMigrationJobTargetDetails.Builder mergeEncryption(Encryption value)

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];

Parameter
Name Description
value Encryption
Returns
Type Description
DiskMigrationJobTargetDetails.Builder

mergeFrom(DiskMigrationJobTargetDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTargetDisk(ComputeEngineDisk value)

public DiskMigrationJobTargetDetails.Builder mergeTargetDisk(ComputeEngineDisk value)

Required. The target disk.

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

Parameter
Name Description
value ComputeEngineDisk
Returns
Type Description
DiskMigrationJobTargetDetails.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiskMigrationJobTargetDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiskMigrationJobTargetDetails.Builder
Overrides

putAllLabels(Map<String,String> values)

public DiskMigrationJobTargetDetails.Builder putAllLabels(Map<String,String> values)

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

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

Parameter
Name Description
values Map<String,String>
Returns
Type Description
DiskMigrationJobTargetDetails.Builder

putLabels(String key, String value)

public DiskMigrationJobTargetDetails.Builder putLabels(String key, String value)

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
value String
Returns
Type Description
DiskMigrationJobTargetDetails.Builder

removeLabels(String key)

public DiskMigrationJobTargetDetails.Builder removeLabels(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
DiskMigrationJobTargetDetails.Builder

setEncryption(Encryption value)

public DiskMigrationJobTargetDetails.Builder setEncryption(Encryption value)

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];

Parameter
Name Description
value Encryption
Returns
Type Description
DiskMigrationJobTargetDetails.Builder

setEncryption(Encryption.Builder builderForValue)

public DiskMigrationJobTargetDetails.Builder setEncryption(Encryption.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Encryption.Builder
Returns
Type Description
DiskMigrationJobTargetDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DiskMigrationJobTargetDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiskMigrationJobTargetDetails.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DiskMigrationJobTargetDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DiskMigrationJobTargetDetails.Builder
Overrides

setTargetDisk(ComputeEngineDisk value)

public DiskMigrationJobTargetDetails.Builder setTargetDisk(ComputeEngineDisk value)

Required. The target disk.

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

Parameter
Name Description
value ComputeEngineDisk
Returns
Type Description
DiskMigrationJobTargetDetails.Builder

setTargetDisk(ComputeEngineDisk.Builder builderForValue)

public DiskMigrationJobTargetDetails.Builder setTargetDisk(ComputeEngineDisk.Builder builderForValue)

Required. The target disk.

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

Parameter
Name Description
builderForValue ComputeEngineDisk.Builder
Returns
Type Description
DiskMigrationJobTargetDetails.Builder

setTargetProject(String value)

public DiskMigrationJobTargetDetails.Builder setTargetProject(String value)

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) = { ... }

Parameter
Name Description
value String

The targetProject to set.

Returns
Type Description
DiskMigrationJobTargetDetails.Builder

This builder for chaining.

setTargetProjectBytes(ByteString value)

public DiskMigrationJobTargetDetails.Builder setTargetProjectBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for targetProject to set.

Returns
Type Description
DiskMigrationJobTargetDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DiskMigrationJobTargetDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiskMigrationJobTargetDetails.Builder
Overrides