Class DataDiskImageImport.Builder (1.82.0)

public static final class DataDiskImageImport.Builder extends GeneratedMessageV3.Builder<DataDiskImageImport.Builder> implements DataDiskImageImportOrBuilder

Used when the image import is not using OS adaptation process.

Protobuf type google.cloud.vmmigration.v1.DataDiskImageImport

Static Methods

getDescriptor()

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

Methods

addAllGuestOsFeatures(Iterable<String> values)

public DataDiskImageImport.Builder addAllGuestOsFeatures(Iterable<String> values)

Optional. A list of guest OS features to apply to the imported image. These features are flags that are used by Compute Engine to enable certain capabilities for virtual machine instances that are created from the image.

This field does not change the OS of the image; it only marks the image with the specified features. The user must ensure that the OS is compatible with the features.

For a list of available features, see https://cloud.google.com/compute/docs/images/create-custom#guest-os-features.

repeated string guest_os_features = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The guestOsFeatures to add.

Returns
Type Description
DataDiskImageImport.Builder

This builder for chaining.

addGuestOsFeatures(String value)

public DataDiskImageImport.Builder addGuestOsFeatures(String value)

Optional. A list of guest OS features to apply to the imported image. These features are flags that are used by Compute Engine to enable certain capabilities for virtual machine instances that are created from the image.

This field does not change the OS of the image; it only marks the image with the specified features. The user must ensure that the OS is compatible with the features.

For a list of available features, see https://cloud.google.com/compute/docs/images/create-custom#guest-os-features.

repeated string guest_os_features = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The guestOsFeatures to add.

Returns
Type Description
DataDiskImageImport.Builder

This builder for chaining.

addGuestOsFeaturesBytes(ByteString value)

public DataDiskImageImport.Builder addGuestOsFeaturesBytes(ByteString value)

Optional. A list of guest OS features to apply to the imported image. These features are flags that are used by Compute Engine to enable certain capabilities for virtual machine instances that are created from the image.

This field does not change the OS of the image; it only marks the image with the specified features. The user must ensure that the OS is compatible with the features.

For a list of available features, see https://cloud.google.com/compute/docs/images/create-custom#guest-os-features.

repeated string guest_os_features = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the guestOsFeatures to add.

Returns
Type Description
DataDiskImageImport.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataDiskImageImport build()
Returns
Type Description
DataDiskImageImport

buildPartial()

public DataDiskImageImport buildPartial()
Returns
Type Description
DataDiskImageImport

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGuestOsFeatures()

public DataDiskImageImport.Builder clearGuestOsFeatures()

Optional. A list of guest OS features to apply to the imported image. These features are flags that are used by Compute Engine to enable certain capabilities for virtual machine instances that are created from the image.

This field does not change the OS of the image; it only marks the image with the specified features. The user must ensure that the OS is compatible with the features.

For a list of available features, see https://cloud.google.com/compute/docs/images/create-custom#guest-os-features.

repeated string guest_os_features = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiskImageImport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DataDiskImageImport getDefaultInstanceForType()
Returns
Type Description
DataDiskImageImport

getDescriptorForType()

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

getGuestOsFeatures(int index)

public String getGuestOsFeatures(int index)

Optional. A list of guest OS features to apply to the imported image. These features are flags that are used by Compute Engine to enable certain capabilities for virtual machine instances that are created from the image.

This field does not change the OS of the image; it only marks the image with the specified features. The user must ensure that the OS is compatible with the features.

For a list of available features, see https://cloud.google.com/compute/docs/images/create-custom#guest-os-features.

repeated string guest_os_features = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The guestOsFeatures at the given index.

getGuestOsFeaturesBytes(int index)

public ByteString getGuestOsFeaturesBytes(int index)

Optional. A list of guest OS features to apply to the imported image. These features are flags that are used by Compute Engine to enable certain capabilities for virtual machine instances that are created from the image.

This field does not change the OS of the image; it only marks the image with the specified features. The user must ensure that the OS is compatible with the features.

For a list of available features, see https://cloud.google.com/compute/docs/images/create-custom#guest-os-features.

repeated string guest_os_features = 1 [(.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 guestOsFeatures at the given index.

getGuestOsFeaturesCount()

public int getGuestOsFeaturesCount()

Optional. A list of guest OS features to apply to the imported image. These features are flags that are used by Compute Engine to enable certain capabilities for virtual machine instances that are created from the image.

This field does not change the OS of the image; it only marks the image with the specified features. The user must ensure that the OS is compatible with the features.

For a list of available features, see https://cloud.google.com/compute/docs/images/create-custom#guest-os-features.

repeated string guest_os_features = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of guestOsFeatures.

getGuestOsFeaturesList()

public ProtocolStringList getGuestOsFeaturesList()

Optional. A list of guest OS features to apply to the imported image. These features are flags that are used by Compute Engine to enable certain capabilities for virtual machine instances that are created from the image.

This field does not change the OS of the image; it only marks the image with the specified features. The user must ensure that the OS is compatible with the features.

For a list of available features, see https://cloud.google.com/compute/docs/images/create-custom#guest-os-features.

repeated string guest_os_features = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the guestOsFeatures.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataDiskImageImport other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGuestOsFeatures(int index, String value)

public DataDiskImageImport.Builder setGuestOsFeatures(int index, String value)

Optional. A list of guest OS features to apply to the imported image. These features are flags that are used by Compute Engine to enable certain capabilities for virtual machine instances that are created from the image.

This field does not change the OS of the image; it only marks the image with the specified features. The user must ensure that the OS is compatible with the features.

For a list of available features, see https://cloud.google.com/compute/docs/images/create-custom#guest-os-features.

repeated string guest_os_features = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The guestOsFeatures to set.

Returns
Type Description
DataDiskImageImport.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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