public static final class RestoreDiskFromInstanceOptions.Builder extends GeneratedMessage.Builder<RestoreDiskFromInstanceOptions.Builder> implements RestoreDiskFromInstanceOptionsOrBuilderOptions for creating a disk from a source Compute Instance backup.
Protobuf type google.cloud.backupdr.v1beta.RestoreDiskFromInstanceOptions
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RestoreDiskFromInstanceOptions.BuilderImplements
RestoreDiskFromInstanceOptionsOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RestoreDiskFromInstanceOptions.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions.Builder |
|
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 |
booleanThe 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 |
StringThe 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 |
ByteStringThe bytes for sourceDeviceName to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions.Builder |
This builder for chaining. |