Class DiskImageTargetDetails.Builder (1.74.0)

public static final class DiskImageTargetDetails.Builder extends GeneratedMessageV3.Builder<DiskImageTargetDetails.Builder> implements DiskImageTargetDetailsOrBuilder

The target details of the image resource that will be created by the import job.

Protobuf type google.cloud.vmmigration.v1.DiskImageTargetDetails

Static Methods

getDescriptor()

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

Methods

addAdditionalLicenses(String value)

public DiskImageTargetDetails.Builder addAdditionalLicenses(String value)

Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The additionalLicenses to add.

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

addAdditionalLicensesBytes(ByteString value)

public DiskImageTargetDetails.Builder addAdditionalLicensesBytes(ByteString value)

Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the additionalLicenses to add.

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

addAllAdditionalLicenses(Iterable<String> values)

public DiskImageTargetDetails.Builder addAllAdditionalLicenses(Iterable<String> values)

Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The additionalLicenses to add.

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiskImageTargetDetails build()
Returns
Type Description
DiskImageTargetDetails

buildPartial()

public DiskImageTargetDetails buildPartial()
Returns
Type Description
DiskImageTargetDetails

clear()

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

clearAdditionalLicenses()

public DiskImageTargetDetails.Builder clearAdditionalLicenses()

Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

clearDataDiskImageImport()

public DiskImageTargetDetails.Builder clearDataDiskImageImport()

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiskImageTargetDetails.Builder

clearDescription()

public DiskImageTargetDetails.Builder clearDescription()

Optional. An optional description of the image.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

clearEncryption()

public DiskImageTargetDetails.Builder clearEncryption()

Immutable. The encryption to apply to the image.

.google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DiskImageTargetDetails.Builder

clearFamilyName()

public DiskImageTargetDetails.Builder clearFamilyName()

Optional. The name of the image family to which the new image belongs.

string family_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearImageName()

public DiskImageTargetDetails.Builder clearImageName()

Required. The name of the image to be created.

string image_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

clearLabels()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOsAdaptationConfig()

public DiskImageTargetDetails.Builder clearOsAdaptationConfig()
Returns
Type Description
DiskImageTargetDetails.Builder

clearOsAdaptationParameters()

public DiskImageTargetDetails.Builder clearOsAdaptationParameters()

Optional. Use to set the parameters relevant for the OS adaptation process.

.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiskImageTargetDetails.Builder

clearSingleRegionStorage()

public DiskImageTargetDetails.Builder clearSingleRegionStorage()

Optional. Set to true to set the image storageLocations to the single region of the import job. When false, the closest multi-region is selected.

bool single_region_storage = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

clearTargetProject()

public DiskImageTargetDetails.Builder clearTargetProject()

Required. Reference to the TargetProject resource that represents the target project in which the imported image will be created.

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

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

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

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

Parameter
Name Description
key String
Returns
Type Description
boolean

getAdditionalLicenses(int index)

public String getAdditionalLicenses(int index)

Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The additionalLicenses at the given index.

getAdditionalLicensesBytes(int index)

public ByteString getAdditionalLicensesBytes(int index)

Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the additionalLicenses at the given index.

getAdditionalLicensesCount()

public int getAdditionalLicensesCount()

Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of additionalLicenses.

getAdditionalLicensesList()

public ProtocolStringList getAdditionalLicensesList()

Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the additionalLicenses.

getDataDiskImageImport()

public DataDiskImageImport getDataDiskImageImport()

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiskImageImport

The dataDiskImageImport.

getDataDiskImageImportBuilder()

public DataDiskImageImport.Builder getDataDiskImageImportBuilder()

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiskImageImport.Builder

getDataDiskImageImportOrBuilder()

public DataDiskImageImportOrBuilder getDataDiskImageImportOrBuilder()

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiskImageImportOrBuilder

getDefaultInstanceForType()

public DiskImageTargetDetails getDefaultInstanceForType()
Returns
Type Description
DiskImageTargetDetails

getDescription()

public String getDescription()

Optional. An optional description of the image.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. An optional description of the image.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getEncryption()

public Encryption getEncryption()

Immutable. The encryption to apply to the image.

.google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Encryption

The encryption.

getEncryptionBuilder()

public Encryption.Builder getEncryptionBuilder()

Immutable. The encryption to apply to the image.

.google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Encryption.Builder

getEncryptionOrBuilder()

public EncryptionOrBuilder getEncryptionOrBuilder()

Immutable. The encryption to apply to the image.

.google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
EncryptionOrBuilder

getFamilyName()

public String getFamilyName()

Optional. The name of the image family to which the new image belongs.

string family_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The familyName.

getFamilyNameBytes()

public ByteString getFamilyNameBytes()

Optional. The name of the image family to which the new image belongs.

string family_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for familyName.

getImageName()

public String getImageName()

Required. The name of the image to be created.

string image_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The imageName.

getImageNameBytes()

public ByteString getImageNameBytes()

Required. The name of the image to be created.

string image_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for imageName.

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

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

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

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

map<string, string> labels = 7 [(.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 image.

map<string, string> labels = 7 [(.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 image.

map<string, string> labels = 7 [(.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>

getOsAdaptationConfigCase()

public DiskImageTargetDetails.OsAdaptationConfigCase getOsAdaptationConfigCase()
Returns
Type Description
DiskImageTargetDetails.OsAdaptationConfigCase

getOsAdaptationParameters()

public ImageImportOsAdaptationParameters getOsAdaptationParameters()

Optional. Use to set the parameters relevant for the OS adaptation process.

.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImageImportOsAdaptationParameters

The osAdaptationParameters.

getOsAdaptationParametersBuilder()

public ImageImportOsAdaptationParameters.Builder getOsAdaptationParametersBuilder()

Optional. Use to set the parameters relevant for the OS adaptation process.

.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImageImportOsAdaptationParameters.Builder

getOsAdaptationParametersOrBuilder()

public ImageImportOsAdaptationParametersOrBuilder getOsAdaptationParametersOrBuilder()

Optional. Use to set the parameters relevant for the OS adaptation process.

.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImageImportOsAdaptationParametersOrBuilder

getSingleRegionStorage()

public boolean getSingleRegionStorage()

Optional. Set to true to set the image storageLocations to the single region of the import job. When false, the closest multi-region is selected.

bool single_region_storage = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The singleRegionStorage.

getTargetProject()

public String getTargetProject()

Required. Reference to the TargetProject resource that represents the target project in which the imported image will be created.

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

Returns
Type Description
String

The targetProject.

getTargetProjectBytes()

public ByteString getTargetProjectBytes()

Required. Reference to the TargetProject resource that represents the target project in which the imported image will be created.

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

Returns
Type Description
ByteString

The bytes for targetProject.

hasDataDiskImageImport()

public boolean hasDataDiskImageImport()

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the dataDiskImageImport field is set.

hasEncryption()

public boolean hasEncryption()

Immutable. The encryption to apply to the image.

.google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the encryption field is set.

hasOsAdaptationParameters()

public boolean hasOsAdaptationParameters()

Optional. Use to set the parameters relevant for the OS adaptation process.

.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the osAdaptationParameters 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

mergeDataDiskImageImport(DataDiskImageImport value)

public DiskImageTargetDetails.Builder mergeDataDiskImageImport(DataDiskImageImport value)

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DataDiskImageImport
Returns
Type Description
DiskImageTargetDetails.Builder

mergeEncryption(Encryption value)

public DiskImageTargetDetails.Builder mergeEncryption(Encryption value)

Immutable. The encryption to apply to the image.

.google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value Encryption
Returns
Type Description
DiskImageTargetDetails.Builder

mergeFrom(DiskImageTargetDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOsAdaptationParameters(ImageImportOsAdaptationParameters value)

public DiskImageTargetDetails.Builder mergeOsAdaptationParameters(ImageImportOsAdaptationParameters value)

Optional. Use to set the parameters relevant for the OS adaptation process.

.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ImageImportOsAdaptationParameters
Returns
Type Description
DiskImageTargetDetails.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

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

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

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

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

putLabels(String key, String value)

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

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

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

Parameters
Name Description
key String
value String
Returns
Type Description
DiskImageTargetDetails.Builder

removeLabels(String key)

public DiskImageTargetDetails.Builder removeLabels(String key)

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

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

Parameter
Name Description
key String
Returns
Type Description
DiskImageTargetDetails.Builder

setAdditionalLicenses(int index, String value)

public DiskImageTargetDetails.Builder setAdditionalLicenses(int index, String value)

Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The additionalLicenses to set.

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

setDataDiskImageImport(DataDiskImageImport value)

public DiskImageTargetDetails.Builder setDataDiskImageImport(DataDiskImageImport value)

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DataDiskImageImport
Returns
Type Description
DiskImageTargetDetails.Builder

setDataDiskImageImport(DataDiskImageImport.Builder builderForValue)

public DiskImageTargetDetails.Builder setDataDiskImageImport(DataDiskImageImport.Builder builderForValue)

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DataDiskImageImport.Builder
Returns
Type Description
DiskImageTargetDetails.Builder

setDescription(String value)

public DiskImageTargetDetails.Builder setDescription(String value)

Optional. An optional description of the image.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public DiskImageTargetDetails.Builder setDescriptionBytes(ByteString value)

Optional. An optional description of the image.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

setEncryption(Encryption value)

public DiskImageTargetDetails.Builder setEncryption(Encryption value)

Immutable. The encryption to apply to the image.

.google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value Encryption
Returns
Type Description
DiskImageTargetDetails.Builder

setEncryption(Encryption.Builder builderForValue)

public DiskImageTargetDetails.Builder setEncryption(Encryption.Builder builderForValue)

Immutable. The encryption to apply to the image.

.google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE];

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

setFamilyName(String value)

public DiskImageTargetDetails.Builder setFamilyName(String value)

Optional. The name of the image family to which the new image belongs.

string family_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The familyName to set.

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

setFamilyNameBytes(ByteString value)

public DiskImageTargetDetails.Builder setFamilyNameBytes(ByteString value)

Optional. The name of the image family to which the new image belongs.

string family_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for familyName to set.

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setImageName(String value)

public DiskImageTargetDetails.Builder setImageName(String value)

Required. The name of the image to be created.

string image_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The imageName to set.

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

setImageNameBytes(ByteString value)

public DiskImageTargetDetails.Builder setImageNameBytes(ByteString value)

Required. The name of the image to be created.

string image_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for imageName to set.

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

setOsAdaptationParameters(ImageImportOsAdaptationParameters value)

public DiskImageTargetDetails.Builder setOsAdaptationParameters(ImageImportOsAdaptationParameters value)

Optional. Use to set the parameters relevant for the OS adaptation process.

.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ImageImportOsAdaptationParameters
Returns
Type Description
DiskImageTargetDetails.Builder

setOsAdaptationParameters(ImageImportOsAdaptationParameters.Builder builderForValue)

public DiskImageTargetDetails.Builder setOsAdaptationParameters(ImageImportOsAdaptationParameters.Builder builderForValue)

Optional. Use to set the parameters relevant for the OS adaptation process.

.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ImageImportOsAdaptationParameters.Builder
Returns
Type Description
DiskImageTargetDetails.Builder

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

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

setSingleRegionStorage(boolean value)

public DiskImageTargetDetails.Builder setSingleRegionStorage(boolean value)

Optional. Set to true to set the image storageLocations to the single region of the import job. When false, the closest multi-region is selected.

bool single_region_storage = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The singleRegionStorage to set.

Returns
Type Description
DiskImageTargetDetails.Builder

This builder for chaining.

setTargetProject(String value)

public DiskImageTargetDetails.Builder setTargetProject(String value)

Required. Reference to the TargetProject resource that represents the target project in which the imported image will be created.

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

This builder for chaining.

setTargetProjectBytes(ByteString value)

public DiskImageTargetDetails.Builder setTargetProjectBytes(ByteString value)

Required. Reference to the TargetProject resource that represents the target project in which the imported image will be created.

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

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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