Class SchedulingOnInstanceStopAction.Builder (1.65.0)

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

Defines the behaviour for instances with the instance_termination_action STOP.

Protobuf type google.cloud.compute.v1.SchedulingOnInstanceStopAction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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