Class DataDiskImageImport (1.82.0)

public final class DataDiskImageImport extends GeneratedMessageV3 implements DataDiskImageImportOrBuilder

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

Protobuf type google.cloud.vmmigration.v1.DataDiskImageImport

Static Fields

GUEST_OS_FEATURES_FIELD_NUMBER

public static final int GUEST_OS_FEATURES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DataDiskImageImport getDefaultInstance()
Returns
Type Description
DataDiskImageImport

getDescriptor()

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

newBuilder()

public static DataDiskImageImport.Builder newBuilder()
Returns
Type Description
DataDiskImageImport.Builder

newBuilder(DataDiskImageImport prototype)

public static DataDiskImageImport.Builder newBuilder(DataDiskImageImport prototype)
Parameter
Name Description
prototype DataDiskImageImport
Returns
Type Description
DataDiskImageImport.Builder

parseDelimitedFrom(InputStream input)

public static DataDiskImageImport parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataDiskImageImport
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataDiskImageImport parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataDiskImageImport
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DataDiskImageImport parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DataDiskImageImport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DataDiskImageImport parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataDiskImageImport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DataDiskImageImport parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DataDiskImageImport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DataDiskImageImport parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataDiskImageImport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DataDiskImageImport parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DataDiskImageImport
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DataDiskImageImport parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataDiskImageImport
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DataDiskImageImport parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataDiskImageImport
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataDiskImageImport parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataDiskImageImport
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DataDiskImageImport parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DataDiskImageImport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DataDiskImageImport parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataDiskImageImport
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DataDiskImageImport> parser()
Returns
Type Description
Parser<DataDiskImageImport>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public DataDiskImageImport getDefaultInstanceForType()
Returns
Type Description
DataDiskImageImport

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.

getParserForType()

public Parser<DataDiskImageImport> getParserForType()
Returns
Type Description
Parser<DataDiskImageImport>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DataDiskImageImport.Builder newBuilderForType()
Returns
Type Description
DataDiskImageImport.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DataDiskImageImport.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DataDiskImageImport.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DataDiskImageImport.Builder toBuilder()
Returns
Type Description
DataDiskImageImport.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException