public final class RestoreDiskFromInstanceOptions extends GeneratedMessage implements RestoreDiskFromInstanceOptionsOrBuilderOptions for creating a disk from a source Compute Instance backup.
Protobuf type google.cloud.backupdr.v1beta.RestoreDiskFromInstanceOptions
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > RestoreDiskFromInstanceOptionsImplements
RestoreDiskFromInstanceOptionsOrBuilderStatic Fields
BOOT_DISK_FIELD_NUMBER
public static final int BOOT_DISK_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SOURCE_DEVICE_NAME_FIELD_NUMBER
public static final int SOURCE_DEVICE_NAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static RestoreDiskFromInstanceOptions getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static RestoreDiskFromInstanceOptions.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions.Builder |
|
newBuilder(RestoreDiskFromInstanceOptions prototype)
public static RestoreDiskFromInstanceOptions.Builder newBuilder(RestoreDiskFromInstanceOptions prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
RestoreDiskFromInstanceOptions |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions.Builder |
|
parseDelimitedFrom(InputStream input)
public static RestoreDiskFromInstanceOptions parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RestoreDiskFromInstanceOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static RestoreDiskFromInstanceOptions parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RestoreDiskFromInstanceOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static RestoreDiskFromInstanceOptions parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RestoreDiskFromInstanceOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static RestoreDiskFromInstanceOptions parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RestoreDiskFromInstanceOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static RestoreDiskFromInstanceOptions parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RestoreDiskFromInstanceOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static RestoreDiskFromInstanceOptions parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RestoreDiskFromInstanceOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<RestoreDiskFromInstanceOptions> parser()| Returns | |
|---|---|
| Type | Description |
Parser<RestoreDiskFromInstanceOptions> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
getParserForType()
public Parser<RestoreDiskFromInstanceOptions> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<RestoreDiskFromInstanceOptions> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public RestoreDiskFromInstanceOptions.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected RestoreDiskFromInstanceOptions.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions.Builder |
|
toBuilder()
public RestoreDiskFromInstanceOptions.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
RestoreDiskFromInstanceOptions.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|