Class ImageImportOsAdaptationParameters.Builder (1.82.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

addAdaptationModifiers(AdaptationModifier value)

public ImageImportOsAdaptationParameters.Builder addAdaptationModifiers(AdaptationModifier value)

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AdaptationModifier
Returns
Type Description
ImageImportOsAdaptationParameters.Builder

addAdaptationModifiers(AdaptationModifier.Builder builderForValue)

public ImageImportOsAdaptationParameters.Builder addAdaptationModifiers(AdaptationModifier.Builder builderForValue)

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

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

addAdaptationModifiers(int index, AdaptationModifier value)

public ImageImportOsAdaptationParameters.Builder addAdaptationModifiers(int index, AdaptationModifier value)

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AdaptationModifier
Returns
Type Description
ImageImportOsAdaptationParameters.Builder

addAdaptationModifiers(int index, AdaptationModifier.Builder builderForValue)

public ImageImportOsAdaptationParameters.Builder addAdaptationModifiers(int index, AdaptationModifier.Builder builderForValue)

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AdaptationModifier.Builder
Returns
Type Description
ImageImportOsAdaptationParameters.Builder

addAdaptationModifiersBuilder()

public AdaptationModifier.Builder addAdaptationModifiersBuilder()

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdaptationModifier.Builder

addAdaptationModifiersBuilder(int index)

public AdaptationModifier.Builder addAdaptationModifiersBuilder(int index)

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AdaptationModifier.Builder

addAllAdaptationModifiers(Iterable<? extends AdaptationModifier> values)

public ImageImportOsAdaptationParameters.Builder addAllAdaptationModifiers(Iterable<? extends AdaptationModifier> values)

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.vmmigration.v1.AdaptationModifier>
Returns
Type Description
ImageImportOsAdaptationParameters.Builder

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

clearAdaptationModifiers()

public ImageImportOsAdaptationParameters.Builder clearAdaptationModifiers()

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImageImportOsAdaptationParameters.Builder

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

getAdaptationModifiers(int index)

public AdaptationModifier getAdaptationModifiers(int index)

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AdaptationModifier

getAdaptationModifiersBuilder(int index)

public AdaptationModifier.Builder getAdaptationModifiersBuilder(int index)

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AdaptationModifier.Builder

getAdaptationModifiersBuilderList()

public List<AdaptationModifier.Builder> getAdaptationModifiersBuilderList()

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getAdaptationModifiersCount()

public int getAdaptationModifiersCount()

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAdaptationModifiersList()

public List<AdaptationModifier> getAdaptationModifiersList()

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AdaptationModifier>

getAdaptationModifiersOrBuilder(int index)

public AdaptationModifierOrBuilder getAdaptationModifiersOrBuilder(int index)

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AdaptationModifierOrBuilder

getAdaptationModifiersOrBuilderList()

public List<? extends AdaptationModifierOrBuilder> getAdaptationModifiersOrBuilderList()

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.vmmigration.v1.AdaptationModifierOrBuilder>

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

removeAdaptationModifiers(int index)

public ImageImportOsAdaptationParameters.Builder removeAdaptationModifiers(int index)

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ImageImportOsAdaptationParameters.Builder

setAdaptationModifiers(int index, AdaptationModifier value)

public ImageImportOsAdaptationParameters.Builder setAdaptationModifiers(int index, AdaptationModifier value)

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AdaptationModifier
Returns
Type Description
ImageImportOsAdaptationParameters.Builder

setAdaptationModifiers(int index, AdaptationModifier.Builder builderForValue)

public ImageImportOsAdaptationParameters.Builder setAdaptationModifiers(int index, AdaptationModifier.Builder builderForValue)

Optional. Modifiers to be used as configuration of the OS adaptation process.

repeated .google.cloud.vmmigration.v1.AdaptationModifier adaptation_modifiers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AdaptationModifier.Builder
Returns
Type Description
ImageImportOsAdaptationParameters.Builder

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