Class StatefulPolicyPreservedStateDiskDevice.Builder (1.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StatefulPolicyPreservedStateDiskDevice.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides

build()

public StatefulPolicyPreservedStateDiskDevice build()
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice

buildPartial()

public StatefulPolicyPreservedStateDiskDevice buildPartial()
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice

clear()

public StatefulPolicyPreservedStateDiskDevice.Builder clear()
Returns
TypeDescription
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
TypeDescription
StatefulPolicyPreservedStateDiskDevice.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StatefulPolicyPreservedStateDiskDevice.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StatefulPolicyPreservedStateDiskDevice.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides

clone()

public StatefulPolicyPreservedStateDiskDevice.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for autoDelete.

getDefaultInstanceForType()

public StatefulPolicyPreservedStateDiskDevice getDefaultInstanceForType()
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the autoDelete field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StatefulPolicyPreservedStateDiskDevice other)

public StatefulPolicyPreservedStateDiskDevice.Builder mergeFrom(StatefulPolicyPreservedStateDiskDevice other)
Parameter
NameDescription
otherStatefulPolicyPreservedStateDiskDevice
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StatefulPolicyPreservedStateDiskDevice.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StatefulPolicyPreservedStateDiskDevice.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StatefulPolicyPreservedStateDiskDevice.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The autoDelete to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for autoDelete to set.

Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public StatefulPolicyPreservedStateDiskDevice.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides

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

public StatefulPolicyPreservedStateDiskDevice.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StatefulPolicyPreservedStateDiskDevice.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice.Builder
Overrides