Class ManagedInstanceInstanceHealth.Builder (1.57.0)

public static final class ManagedInstanceInstanceHealth.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearHealthCheck()

public ManagedInstanceInstanceHealth.Builder clearHealthCheck()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ManagedInstanceInstanceHealth getDefaultInstanceForType()
Returns
Type Description
ManagedInstanceInstanceHealth

getDescriptorForType()

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

getDetailedHealthState()

public String getDetailedHealthState()

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ManagedInstanceInstanceHealth.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ManagedInstanceInstanceHealth.Builder
Overrides

setDetailedHealthState(String value)

public ManagedInstanceInstanceHealth.Builder setDetailedHealthState(String value)

[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] 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.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHealthCheck(String value)

public ManagedInstanceInstanceHealth.Builder setHealthCheck(String value)

[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] 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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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