Class ManagedInstanceInstanceHealth.Builder (1.93.0)

public static final class ManagedInstanceInstanceHealth.Builder extends GeneratedMessage.Builder<ManagedInstanceInstanceHealth.Builder> implements ManagedInstanceInstanceHealthOrBuilder

Protobuf type google.cloud.compute.v1.ManagedInstanceInstanceHealth

Static Methods

getDescriptor()

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

Methods

build()

public ManagedInstanceInstanceHealth build()
Returns
Type Description
ManagedInstanceInstanceHealth

buildPartial()

public ManagedInstanceInstanceHealth buildPartial()
Returns
Type Description
ManagedInstanceInstanceHealth

clear()

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

clearDetailedHealthState()

public ManagedInstanceInstanceHealth.Builder clearDetailedHealthState()

Output only. [Output Only] The current detailed instance health state. Check the DetailedHealthState enum for the list of possible values.

optional string detailed_health_state = 510470173;

Returns
Type Description
ManagedInstanceInstanceHealth.Builder

This builder for chaining.

clearHealthCheck()

public ManagedInstanceInstanceHealth.Builder clearHealthCheck()

Output only. [Output Only] The URL for the health check that verifies whether the instance is healthy.

optional string health_check = 308876645;

Returns
Type Description
ManagedInstanceInstanceHealth.Builder

This builder for chaining.

getDefaultInstanceForType()

public ManagedInstanceInstanceHealth getDefaultInstanceForType()
Returns
Type Description
ManagedInstanceInstanceHealth

getDescriptorForType()

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

getDetailedHealthState()

public String getDetailedHealthState()

Output only. [Output Only] The current detailed instance health state. Check the DetailedHealthState enum for the list of possible values.

optional string detailed_health_state = 510470173;

Returns
Type Description
String

The detailedHealthState.

getDetailedHealthStateBytes()

public ByteString getDetailedHealthStateBytes()

Output only. [Output Only] The current detailed instance health state. Check the DetailedHealthState enum for the list of possible values.

optional string detailed_health_state = 510470173;

Returns
Type Description
ByteString

The bytes for detailedHealthState.

getHealthCheck()

public String getHealthCheck()

Output only. [Output Only] The URL for the health check that verifies whether the instance is healthy.

optional string health_check = 308876645;

Returns
Type Description
String

The healthCheck.

getHealthCheckBytes()

public ByteString getHealthCheckBytes()

Output only. [Output Only] The URL for the health check that verifies whether the instance is healthy.

optional string health_check = 308876645;

Returns
Type Description
ByteString

The bytes for healthCheck.

hasDetailedHealthState()

public boolean hasDetailedHealthState()

Output only. [Output Only] The current detailed instance health state. Check the DetailedHealthState enum for the list of possible values.

optional string detailed_health_state = 510470173;

Returns
Type Description
boolean

Whether the detailedHealthState field is set.

hasHealthCheck()

public boolean hasHealthCheck()

Output only. [Output Only] The URL for the health check that verifies whether the instance is healthy.

optional string health_check = 308876645;

Returns
Type Description
boolean

Whether the healthCheck field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ManagedInstanceInstanceHealth other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDetailedHealthState(String value)

public ManagedInstanceInstanceHealth.Builder setDetailedHealthState(String value)

Output only. [Output Only] The current detailed instance health state. Check the DetailedHealthState enum for the list of possible values.

optional string detailed_health_state = 510470173;

Parameter
Name Description
value String

The detailedHealthState to set.

Returns
Type Description
ManagedInstanceInstanceHealth.Builder

This builder for chaining.

setDetailedHealthStateBytes(ByteString value)

public ManagedInstanceInstanceHealth.Builder setDetailedHealthStateBytes(ByteString value)

Output only. [Output Only] The current detailed instance health state. Check the DetailedHealthState enum for the list of possible values.

optional string detailed_health_state = 510470173;

Parameter
Name Description
value ByteString

The bytes for detailedHealthState to set.

Returns
Type Description
ManagedInstanceInstanceHealth.Builder

This builder for chaining.

setHealthCheck(String value)

public ManagedInstanceInstanceHealth.Builder setHealthCheck(String value)

Output only. [Output Only] The URL for the health check that verifies whether the instance is healthy.

optional string health_check = 308876645;

Parameter
Name Description
value String

The healthCheck to set.

Returns
Type Description
ManagedInstanceInstanceHealth.Builder

This builder for chaining.

setHealthCheckBytes(ByteString value)

public ManagedInstanceInstanceHealth.Builder setHealthCheckBytes(ByteString value)

Output only. [Output Only] The URL for the health check that verifies whether the instance is healthy.

optional string health_check = 308876645;

Parameter
Name Description
value ByteString

The bytes for healthCheck to set.

Returns
Type Description
ManagedInstanceInstanceHealth.Builder

This builder for chaining.