Class SchedulingOnInstanceStopAction.Builder (1.93.0)

public static final class SchedulingOnInstanceStopAction.Builder extends GeneratedMessage.Builder<SchedulingOnInstanceStopAction.Builder> implements SchedulingOnInstanceStopActionOrBuilder

Defines the behaviour for instances with the instance_termination_actionSTOP.

Protobuf type google.cloud.compute.v1.SchedulingOnInstanceStopAction

Static Methods

getDescriptor()

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

Methods

build()

public SchedulingOnInstanceStopAction build()
Returns
Type Description
SchedulingOnInstanceStopAction

buildPartial()

public SchedulingOnInstanceStopAction buildPartial()
Returns
Type Description
SchedulingOnInstanceStopAction

clear()

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

clearDiscardLocalSsd()

public SchedulingOnInstanceStopAction.Builder clearDiscardLocalSsd()

If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time.

optional bool discard_local_ssd = 319517903;

Returns
Type Description
SchedulingOnInstanceStopAction.Builder

This builder for chaining.

getDefaultInstanceForType()

public SchedulingOnInstanceStopAction getDefaultInstanceForType()
Returns
Type Description
SchedulingOnInstanceStopAction

getDescriptorForType()

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

getDiscardLocalSsd()

public boolean getDiscardLocalSsd()

If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time.

optional bool discard_local_ssd = 319517903;

Returns
Type Description
boolean

The discardLocalSsd.

hasDiscardLocalSsd()

public boolean hasDiscardLocalSsd()

If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time.

optional bool discard_local_ssd = 319517903;

Returns
Type Description
boolean

Whether the discardLocalSsd field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SchedulingOnInstanceStopAction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDiscardLocalSsd(boolean value)

public SchedulingOnInstanceStopAction.Builder setDiscardLocalSsd(boolean value)

If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time.

optional bool discard_local_ssd = 319517903;

Parameter
Name Description
value boolean

The discardLocalSsd to set.

Returns
Type Description
SchedulingOnInstanceStopAction.Builder

This builder for chaining.