public final class PreservedStatePreservedDisk extends GeneratedMessageV3 implements PreservedStatePreservedDiskOrBuilder
Protobuf type google.cloud.compute.v1.PreservedStatePreservedDisk
Fields
AUTO_DELETE_FIELD_NUMBER
public static final int AUTO_DELETE_FIELD_NUMBER
Field Value
MODE_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER
Field Value
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAutoDelete()
public String getAutoDelete()
These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted.
Check the AutoDelete enum for the list of possible values.
optional string auto_delete = 464761403;
Returns
Type | Description |
String | The autoDelete.
|
getAutoDeleteBytes()
public ByteString getAutoDeleteBytes()
These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted.
Check the AutoDelete enum for the list of possible values.
optional string auto_delete = 464761403;
Returns
Type | Description |
ByteString | The bytes for autoDelete.
|
getDefaultInstance()
public static PreservedStatePreservedDisk getDefaultInstance()
Returns
getDefaultInstanceForType()
public PreservedStatePreservedDisk getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getMode()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
Check the Mode enum for the list of possible values.
optional string mode = 3357091;
Returns
Type | Description |
String | The mode.
|
getModeBytes()
public ByteString getModeBytes()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
Check the Mode enum for the list of possible values.
optional string mode = 3357091;
Returns
getParserForType()
public Parser<PreservedStatePreservedDisk> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSource()
public String getSource()
The URL of the disk resource that is stateful and should be attached to the VM instance.
optional string source = 177235995;
Returns
Type | Description |
String | The source.
|
getSourceBytes()
public ByteString getSourceBytes()
The URL of the disk resource that is stateful and should be attached to the VM instance.
optional string source = 177235995;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasAutoDelete()
public boolean hasAutoDelete()
These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted.
Check the AutoDelete enum for the list of possible values.
optional string auto_delete = 464761403;
Returns
Type | Description |
boolean | Whether the autoDelete field is set.
|
hasMode()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
Check the Mode enum for the list of possible values.
optional string mode = 3357091;
Returns
Type | Description |
boolean | Whether the mode field is set.
|
hasSource()
public boolean hasSource()
The URL of the disk resource that is stateful and should be attached to the VM instance.
optional string source = 177235995;
Returns
Type | Description |
boolean | Whether the source field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static PreservedStatePreservedDisk.Builder newBuilder()
Returns
newBuilder(PreservedStatePreservedDisk prototype)
public static PreservedStatePreservedDisk.Builder newBuilder(PreservedStatePreservedDisk prototype)
Parameter
Returns
newBuilderForType()
public PreservedStatePreservedDisk.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PreservedStatePreservedDisk.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static PreservedStatePreservedDisk parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static PreservedStatePreservedDisk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static PreservedStatePreservedDisk parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PreservedStatePreservedDisk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static PreservedStatePreservedDisk parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PreservedStatePreservedDisk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PreservedStatePreservedDisk parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static PreservedStatePreservedDisk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PreservedStatePreservedDisk parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static PreservedStatePreservedDisk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static PreservedStatePreservedDisk parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PreservedStatePreservedDisk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<PreservedStatePreservedDisk> parser()
Returns
toBuilder()
public PreservedStatePreservedDisk.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions