Class RestoreDiskFromInstanceOptions.Builder (0.58.0)

public static final class RestoreDiskFromInstanceOptions.Builder extends GeneratedMessage.Builder<RestoreDiskFromInstanceOptions.Builder> implements RestoreDiskFromInstanceOptionsOrBuilder

Options for creating a disk from a source Compute Instance backup.

Protobuf type google.cloud.backupdr.v1beta.RestoreDiskFromInstanceOptions

Static Methods

getDescriptor()

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

Methods

build()

public RestoreDiskFromInstanceOptions build()
Returns
Type Description
RestoreDiskFromInstanceOptions

buildPartial()

public RestoreDiskFromInstanceOptions buildPartial()
Returns
Type Description
RestoreDiskFromInstanceOptions

clear()

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

clearBootDisk()

public RestoreDiskFromInstanceOptions.Builder clearBootDisk()

Set to true to restore the boot disk from the instance backup. This field should only be set to true if selected.

bool boot_disk = 2;

Returns
Type Description
RestoreDiskFromInstanceOptions.Builder

This builder for chaining.

clearSourceDeviceName()

public RestoreDiskFromInstanceOptions.Builder clearSourceDeviceName()

The device name of the disk to restore from the VM backup.

string source_device_name = 1;

Returns
Type Description
RestoreDiskFromInstanceOptions.Builder

This builder for chaining.

clearSourceDisk()

public RestoreDiskFromInstanceOptions.Builder clearSourceDisk()
Returns
Type Description
RestoreDiskFromInstanceOptions.Builder

getBootDisk()

public boolean getBootDisk()

Set to true to restore the boot disk from the instance backup. This field should only be set to true if selected.

bool boot_disk = 2;

Returns
Type Description
boolean

The bootDisk.

getDefaultInstanceForType()

public RestoreDiskFromInstanceOptions getDefaultInstanceForType()
Returns
Type Description
RestoreDiskFromInstanceOptions

getDescriptorForType()

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

getSourceDeviceName()

public String getSourceDeviceName()

The device name of the disk to restore from the VM backup.

string source_device_name = 1;

Returns
Type Description
String

The sourceDeviceName.

getSourceDeviceNameBytes()

public ByteString getSourceDeviceNameBytes()

The device name of the disk to restore from the VM backup.

string source_device_name = 1;

Returns
Type Description
ByteString

The bytes for sourceDeviceName.

getSourceDiskCase()

public RestoreDiskFromInstanceOptions.SourceDiskCase getSourceDiskCase()
Returns
Type Description
RestoreDiskFromInstanceOptions.SourceDiskCase

hasBootDisk()

public boolean hasBootDisk()

Set to true to restore the boot disk from the instance backup. This field should only be set to true if selected.

bool boot_disk = 2;

Returns
Type Description
boolean

Whether the bootDisk field is set.

hasSourceDeviceName()

public boolean hasSourceDeviceName()

The device name of the disk to restore from the VM backup.

string source_device_name = 1;

Returns
Type Description
boolean

Whether the sourceDeviceName field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RestoreDiskFromInstanceOptions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBootDisk(boolean value)

public RestoreDiskFromInstanceOptions.Builder setBootDisk(boolean value)

Set to true to restore the boot disk from the instance backup. This field should only be set to true if selected.

bool boot_disk = 2;

Parameter
Name Description
value boolean

The bootDisk to set.

Returns
Type Description
RestoreDiskFromInstanceOptions.Builder

This builder for chaining.

setSourceDeviceName(String value)

public RestoreDiskFromInstanceOptions.Builder setSourceDeviceName(String value)

The device name of the disk to restore from the VM backup.

string source_device_name = 1;

Parameter
Name Description
value String

The sourceDeviceName to set.

Returns
Type Description
RestoreDiskFromInstanceOptions.Builder

This builder for chaining.

setSourceDeviceNameBytes(ByteString value)

public RestoreDiskFromInstanceOptions.Builder setSourceDeviceNameBytes(ByteString value)

The device name of the disk to restore from the VM backup.

string source_device_name = 1;

Parameter
Name Description
value ByteString

The bytes for sourceDeviceName to set.

Returns
Type Description
RestoreDiskFromInstanceOptions.Builder

This builder for chaining.