Class InstanceGroupManagerInstanceLifecyclePolicy.Builder (1.42.0)

public static final class InstanceGroupManagerInstanceLifecyclePolicy.Builder extends GeneratedMessageV3.Builder<InstanceGroupManagerInstanceLifecyclePolicy.Builder> implements InstanceGroupManagerInstanceLifecyclePolicyOrBuilder

Protobuf type google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceGroupManagerInstanceLifecyclePolicy build()
Returns
TypeDescription
InstanceGroupManagerInstanceLifecyclePolicy

buildPartial()

public InstanceGroupManagerInstanceLifecyclePolicy buildPartial()
Returns
TypeDescription
InstanceGroupManagerInstanceLifecyclePolicy

clear()

public InstanceGroupManagerInstanceLifecyclePolicy.Builder clear()
Returns
TypeDescription
InstanceGroupManagerInstanceLifecyclePolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearForceUpdateOnRepair()

public InstanceGroupManagerInstanceLifecyclePolicy.Builder clearForceUpdateOnRepair()

A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.

optional string force_update_on_repair = 356302027;

Returns
TypeDescription
InstanceGroupManagerInstanceLifecyclePolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public InstanceGroupManagerInstanceLifecyclePolicy.Builder clone()
Returns
TypeDescription
InstanceGroupManagerInstanceLifecyclePolicy.Builder
Overrides

getDefaultInstanceForType()

public InstanceGroupManagerInstanceLifecyclePolicy getDefaultInstanceForType()
Returns
TypeDescription
InstanceGroupManagerInstanceLifecyclePolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getForceUpdateOnRepair()

public String getForceUpdateOnRepair()

A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.

optional string force_update_on_repair = 356302027;

Returns
TypeDescription
String

The forceUpdateOnRepair.

getForceUpdateOnRepairBytes()

public ByteString getForceUpdateOnRepairBytes()

A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.

optional string force_update_on_repair = 356302027;

Returns
TypeDescription
ByteString

The bytes for forceUpdateOnRepair.

hasForceUpdateOnRepair()

public boolean hasForceUpdateOnRepair()

A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.

optional string force_update_on_repair = 356302027;

Returns
TypeDescription
boolean

Whether the forceUpdateOnRepair field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceGroupManagerInstanceLifecyclePolicy other)

public InstanceGroupManagerInstanceLifecyclePolicy.Builder mergeFrom(InstanceGroupManagerInstanceLifecyclePolicy other)
Parameter
NameDescription
otherInstanceGroupManagerInstanceLifecyclePolicy
Returns
TypeDescription
InstanceGroupManagerInstanceLifecyclePolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupManagerInstanceLifecyclePolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceGroupManagerInstanceLifecyclePolicy.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setForceUpdateOnRepair(String value)

public InstanceGroupManagerInstanceLifecyclePolicy.Builder setForceUpdateOnRepair(String value)

A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.

optional string force_update_on_repair = 356302027;

Parameter
NameDescription
valueString

The forceUpdateOnRepair to set.

Returns
TypeDescription
InstanceGroupManagerInstanceLifecyclePolicy.Builder

This builder for chaining.

setForceUpdateOnRepairBytes(ByteString value)

public InstanceGroupManagerInstanceLifecyclePolicy.Builder setForceUpdateOnRepairBytes(ByteString value)

A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.

optional string force_update_on_repair = 356302027;

Parameter
NameDescription
valueByteString

The bytes for forceUpdateOnRepair to set.

Returns
TypeDescription
InstanceGroupManagerInstanceLifecyclePolicy.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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