public static final class InstanceGroupManagerAutoHealingPolicy.Builder extends GeneratedMessage.Builder<InstanceGroupManagerAutoHealingPolicy.Builder> implements InstanceGroupManagerAutoHealingPolicyOrBuilder Protobuf type google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > InstanceGroupManagerAutoHealingPolicy.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public InstanceGroupManagerAutoHealingPolicy build()| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerAutoHealingPolicy |
|
buildPartial()
public InstanceGroupManagerAutoHealingPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerAutoHealingPolicy |
|
clear()
public InstanceGroupManagerAutoHealingPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerAutoHealingPolicy.Builder |
|
clearHealthCheck()
public InstanceGroupManagerAutoHealingPolicy.Builder clearHealthCheck()The URL for the health check that signals autohealing.
optional string health_check = 308876645;
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerAutoHealingPolicy.Builder |
This builder for chaining. |
clearInitialDelaySec()
public InstanceGroupManagerAutoHealingPolicy.Builder clearInitialDelaySec()The initial delay is the number of seconds that a new VM takes to initialize and run its startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks because the VM might be in the startup process. This prevents the MIG from prematurely recreating a VM. If the health check receives a healthy response during the initial delay, it indicates that the startup process is complete and the VM is ready. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
optional int32 initial_delay_sec = 263207002;
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerAutoHealingPolicy.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public InstanceGroupManagerAutoHealingPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerAutoHealingPolicy |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHealthCheck()
public String getHealthCheck()The URL for the health check that signals autohealing.
optional string health_check = 308876645;
| Returns | |
|---|---|
| Type | Description |
String |
The healthCheck. |
getHealthCheckBytes()
public ByteString getHealthCheckBytes()The URL for the health check that signals autohealing.
optional string health_check = 308876645;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for healthCheck. |
getInitialDelaySec()
public int getInitialDelaySec()The initial delay is the number of seconds that a new VM takes to initialize and run its startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks because the VM might be in the startup process. This prevents the MIG from prematurely recreating a VM. If the health check receives a healthy response during the initial delay, it indicates that the startup process is complete and the VM is ready. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
optional int32 initial_delay_sec = 263207002;
| Returns | |
|---|---|
| Type | Description |
int |
The initialDelaySec. |
hasHealthCheck()
public boolean hasHealthCheck()The URL for the health check that signals autohealing.
optional string health_check = 308876645;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the healthCheck field is set. |
hasInitialDelaySec()
public boolean hasInitialDelaySec()The initial delay is the number of seconds that a new VM takes to initialize and run its startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks because the VM might be in the startup process. This prevents the MIG from prematurely recreating a VM. If the health check receives a healthy response during the initial delay, it indicates that the startup process is complete and the VM is ready. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
optional int32 initial_delay_sec = 263207002;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the initialDelaySec field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(InstanceGroupManagerAutoHealingPolicy other)
public InstanceGroupManagerAutoHealingPolicy.Builder mergeFrom(InstanceGroupManagerAutoHealingPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
InstanceGroupManagerAutoHealingPolicy |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerAutoHealingPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InstanceGroupManagerAutoHealingPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerAutoHealingPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public InstanceGroupManagerAutoHealingPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerAutoHealingPolicy.Builder |
|
setHealthCheck(String value)
public InstanceGroupManagerAutoHealingPolicy.Builder setHealthCheck(String value)The URL for the health check that signals autohealing.
optional string health_check = 308876645;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe healthCheck to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for healthCheck to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerAutoHealingPolicy.Builder |
This builder for chaining. |
setInitialDelaySec(int value)
public InstanceGroupManagerAutoHealingPolicy.Builder setInitialDelaySec(int value)The initial delay is the number of seconds that a new VM takes to initialize and run its startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks because the VM might be in the startup process. This prevents the MIG from prematurely recreating a VM. If the health check receives a healthy response during the initial delay, it indicates that the startup process is complete and the VM is ready. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
optional int32 initial_delay_sec = 263207002;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe initialDelaySec to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerAutoHealingPolicy.Builder |
This builder for chaining. |