Class ImageImportOsAdaptationParameters.Builder (1.74.0)

public static final class ImageImportOsAdaptationParameters.Builder extends GeneratedMessageV3.Builder<ImageImportOsAdaptationParameters.Builder> implements ImageImportOsAdaptationParametersOrBuilder

Parameters affecting the OS adaptation process.

Protobuf type google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImageImportOsAdaptationParameters build()
Returns
Type Description
ImageImportOsAdaptationParameters

buildPartial()

public ImageImportOsAdaptationParameters buildPartial()
Returns
Type Description
ImageImportOsAdaptationParameters

clear()

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

clearBootConversion()

public ImageImportOsAdaptationParameters.Builder clearBootConversion()

Optional. By default the image will keep its existing boot option. Setting this property will trigger an internal process which will convert the image from using the existing boot option to another. The size of the boot disk might be increased to allow the conversion

.google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImageImportOsAdaptationParameters.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGeneralize()

public ImageImportOsAdaptationParameters.Builder clearGeneralize()

Optional. Set to true in order to generalize the imported image. The generalization process enables co-existence of multiple VMs created from the same image. For Windows, generalizing the image removes computer-specific information such as installed drivers and the computer security identifier (SID).

bool generalize = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImageImportOsAdaptationParameters.Builder

This builder for chaining.

clearLicenseType()

public ImageImportOsAdaptationParameters.Builder clearLicenseType()

Optional. Choose which type of license to apply to the imported image.

.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImageImportOsAdaptationParameters.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBootConversion()

public BootConversion getBootConversion()

Optional. By default the image will keep its existing boot option. Setting this property will trigger an internal process which will convert the image from using the existing boot option to another. The size of the boot disk might be increased to allow the conversion

.google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BootConversion

The bootConversion.

getBootConversionValue()

public int getBootConversionValue()

Optional. By default the image will keep its existing boot option. Setting this property will trigger an internal process which will convert the image from using the existing boot option to another. The size of the boot disk might be increased to allow the conversion

.google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for bootConversion.

getDefaultInstanceForType()

public ImageImportOsAdaptationParameters getDefaultInstanceForType()
Returns
Type Description
ImageImportOsAdaptationParameters

getDescriptorForType()

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

getGeneralize()

public boolean getGeneralize()

Optional. Set to true in order to generalize the imported image. The generalization process enables co-existence of multiple VMs created from the same image. For Windows, generalizing the image removes computer-specific information such as installed drivers and the computer security identifier (SID).

bool generalize = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The generalize.

getLicenseType()

public ComputeEngineLicenseType getLicenseType()

Optional. Choose which type of license to apply to the imported image.

.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ComputeEngineLicenseType

The licenseType.

getLicenseTypeValue()

public int getLicenseTypeValue()

Optional. Choose which type of license to apply to the imported image.

.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for licenseType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImageImportOsAdaptationParameters other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBootConversion(BootConversion value)

public ImageImportOsAdaptationParameters.Builder setBootConversion(BootConversion value)

Optional. By default the image will keep its existing boot option. Setting this property will trigger an internal process which will convert the image from using the existing boot option to another. The size of the boot disk might be increased to allow the conversion

.google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BootConversion

The bootConversion to set.

Returns
Type Description
ImageImportOsAdaptationParameters.Builder

This builder for chaining.

setBootConversionValue(int value)

public ImageImportOsAdaptationParameters.Builder setBootConversionValue(int value)

Optional. By default the image will keep its existing boot option. Setting this property will trigger an internal process which will convert the image from using the existing boot option to another. The size of the boot disk might be increased to allow the conversion

.google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for bootConversion to set.

Returns
Type Description
ImageImportOsAdaptationParameters.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGeneralize(boolean value)

public ImageImportOsAdaptationParameters.Builder setGeneralize(boolean value)

Optional. Set to true in order to generalize the imported image. The generalization process enables co-existence of multiple VMs created from the same image. For Windows, generalizing the image removes computer-specific information such as installed drivers and the computer security identifier (SID).

bool generalize = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The generalize to set.

Returns
Type Description
ImageImportOsAdaptationParameters.Builder

This builder for chaining.

setLicenseType(ComputeEngineLicenseType value)

public ImageImportOsAdaptationParameters.Builder setLicenseType(ComputeEngineLicenseType value)

Optional. Choose which type of license to apply to the imported image.

.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ComputeEngineLicenseType

The licenseType to set.

Returns
Type Description
ImageImportOsAdaptationParameters.Builder

This builder for chaining.

setLicenseTypeValue(int value)

public ImageImportOsAdaptationParameters.Builder setLicenseTypeValue(int value)

Optional. Choose which type of license to apply to the imported image.

.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for licenseType to set.

Returns
Type Description
ImageImportOsAdaptationParameters.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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