Class InstanceGroupManagerAutoHealingPolicy.Builder (1.19.0)

public static final class InstanceGroupManagerAutoHealingPolicy.Builder extends GeneratedMessageV3.Builder<InstanceGroupManagerAutoHealingPolicy.Builder> implements InstanceGroupManagerAutoHealingPolicyOrBuilder

Protobuf type google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceGroupManagerAutoHealingPolicy build()
Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicy

buildPartial()

public InstanceGroupManagerAutoHealingPolicy buildPartial()
Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicy

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHealthCheck()

public InstanceGroupManagerAutoHealingPolicy.Builder clearHealthCheck()

The URL for the health check that signals autohealing.

optional string health_check = 308876645;

Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicy.Builder

This builder for chaining.

clearInitialDelaySec()

public InstanceGroupManagerAutoHealingPolicy.Builder clearInitialDelaySec()

The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its instances prematurely. This value must be from range [0, 3600].

optional int32 initial_delay_sec = 263207002;

Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public InstanceGroupManagerAutoHealingPolicy getDefaultInstanceForType()
Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHealthCheck()

public String getHealthCheck()

The URL for the health check that signals autohealing.

optional string health_check = 308876645;

Returns
TypeDescription
String

The healthCheck.

getHealthCheckBytes()

public ByteString getHealthCheckBytes()

The URL for the health check that signals autohealing.

optional string health_check = 308876645;

Returns
TypeDescription
ByteString

The bytes for healthCheck.

getInitialDelaySec()

public int getInitialDelaySec()

The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its instances prematurely. This value must be from range [0, 3600].

optional int32 initial_delay_sec = 263207002;

Returns
TypeDescription
int

The initialDelaySec.

hasHealthCheck()

public boolean hasHealthCheck()

The URL for the health check that signals autohealing.

optional string health_check = 308876645;

Returns
TypeDescription
boolean

Whether the healthCheck field is set.

hasInitialDelaySec()

public boolean hasInitialDelaySec()

The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its instances prematurely. This value must be from range [0, 3600].

optional int32 initial_delay_sec = 263207002;

Returns
TypeDescription
boolean

Whether the initialDelaySec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceGroupManagerAutoHealingPolicy other)

public InstanceGroupManagerAutoHealingPolicy.Builder mergeFrom(InstanceGroupManagerAutoHealingPolicy other)
Parameter
NameDescription
otherInstanceGroupManagerAutoHealingPolicy
Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHealthCheck(String value)

public InstanceGroupManagerAutoHealingPolicy.Builder setHealthCheck(String value)

The URL for the health check that signals autohealing.

optional string health_check = 308876645;

Parameter
NameDescription
valueString

The healthCheck to set.

Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicy.Builder

This builder for chaining.

setHealthCheckBytes(ByteString value)

public InstanceGroupManagerAutoHealingPolicy.Builder setHealthCheckBytes(ByteString value)

The URL for the health check that signals autohealing.

optional string health_check = 308876645;

Parameter
NameDescription
valueByteString

The bytes for healthCheck to set.

Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicy.Builder

This builder for chaining.

setInitialDelaySec(int value)

public InstanceGroupManagerAutoHealingPolicy.Builder setInitialDelaySec(int value)

The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its instances prematurely. This value must be from range [0, 3600].

optional int32 initial_delay_sec = 263207002;

Parameter
NameDescription
valueint

The initialDelaySec to set.

Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicy.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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