Class StatefulPolicyPreservedStateDiskDevice.Builder (1.57.0)

public static final class StatefulPolicyPreservedStateDiskDevice.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StatefulPolicyPreservedStateDiskDevice.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides

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 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
StatefulPolicyPreservedStateDiskDevice.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StatefulPolicyPreservedStateDiskDevice.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StatefulPolicyPreservedStateDiskDevice.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides

clone()

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

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 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 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 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.

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 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StatefulPolicyPreservedStateDiskDevice.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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 in READ_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 in READ_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.

setField(Descriptors.FieldDescriptor field, Object value)

public StatefulPolicyPreservedStateDiskDevice.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StatefulPolicyPreservedStateDiskDevice.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StatefulPolicyPreservedStateDiskDevice.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides