Class StatefulPolicyPreservedStateDiskDevice.Builder (1.93.0)

public static final class StatefulPolicyPreservedStateDiskDevice.Builder extends GeneratedMessage.Builder<StatefulPolicyPreservedStateDiskDevice.Builder> implements StatefulPolicyPreservedStateDiskDeviceOrBuilder

Protobuf type google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice

Static Methods

getDescriptor()

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

Methods

build()

public StatefulPolicyPreservedStateDiskDevice build()
Returns
Type Description
StatefulPolicyPreservedStateDiskDevice

buildPartial()

public StatefulPolicyPreservedStateDiskDevice buildPartial()
Returns
Type Description
StatefulPolicyPreservedStateDiskDevice

clear()

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

clearAutoDelete()

public StatefulPolicyPreservedStateDiskDevice.Builder clearAutoDelete()

These stateful disks will never be deleted during autohealing, update or VM 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 group is deleted. Note: disks attached inREAD_ONLY mode cannot be auto-deleted. Check the AutoDelete enum for the list of possible values.

optional string auto_delete = 464761403;

Returns
Type Description
StatefulPolicyPreservedStateDiskDevice.Builder

This builder for chaining.

getAutoDelete()

public String getAutoDelete()

These stateful disks will never be deleted during autohealing, update or VM 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 group is deleted. Note: disks attached inREAD_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 or VM 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 group is deleted. Note: disks attached inREAD_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.

getDefaultInstanceForType()

public StatefulPolicyPreservedStateDiskDevice getDefaultInstanceForType()
Returns
Type Description
StatefulPolicyPreservedStateDiskDevice

getDescriptorForType()

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

hasAutoDelete()

public boolean hasAutoDelete()

These stateful disks will never be deleted during autohealing, update or VM 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 group is deleted. Note: disks attached inREAD_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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StatefulPolicyPreservedStateDiskDevice other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAutoDelete(String value)

public StatefulPolicyPreservedStateDiskDevice.Builder setAutoDelete(String value)

These stateful disks will never be deleted during autohealing, update or VM 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 group is deleted. Note: disks attached inREAD_ONLY mode cannot be auto-deleted. Check the AutoDelete enum for the list of possible values.

optional string auto_delete = 464761403;

Parameter
Name Description
value String

The autoDelete to set.

Returns
Type Description
StatefulPolicyPreservedStateDiskDevice.Builder

This builder for chaining.

setAutoDeleteBytes(ByteString value)

public StatefulPolicyPreservedStateDiskDevice.Builder setAutoDeleteBytes(ByteString value)

These stateful disks will never be deleted during autohealing, update or VM 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 group is deleted. Note: disks attached inREAD_ONLY mode cannot be auto-deleted. Check the AutoDelete enum for the list of possible values.

optional string auto_delete = 464761403;

Parameter
Name Description
value ByteString

The bytes for autoDelete to set.

Returns
Type Description
StatefulPolicyPreservedStateDiskDevice.Builder

This builder for chaining.