Class ManagedInstanceInstanceHealth.Builder (1.42.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ManagedInstanceInstanceHealth build()
Returns
TypeDescription
ManagedInstanceInstanceHealth

buildPartial()

public ManagedInstanceInstanceHealth buildPartial()
Returns
TypeDescription
ManagedInstanceInstanceHealth

clear()

public ManagedInstanceInstanceHealth.Builder clear()
Returns
TypeDescription
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
TypeDescription
ManagedInstanceInstanceHealth.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ManagedInstanceInstanceHealth.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ManagedInstanceInstanceHealth.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ManagedInstanceInstanceHealth getDefaultInstanceForType()
Returns
TypeDescription
ManagedInstanceInstanceHealth

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the healthCheck field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ManagedInstanceInstanceHealth other)

public ManagedInstanceInstanceHealth.Builder mergeFrom(ManagedInstanceInstanceHealth other)
Parameter
NameDescription
otherManagedInstanceInstanceHealth
Returns
TypeDescription
ManagedInstanceInstanceHealth.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ManagedInstanceInstanceHealth.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The detailedHealthState to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for detailedHealthState to set.

Returns
TypeDescription
ManagedInstanceInstanceHealth.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ManagedInstanceInstanceHealth.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The healthCheck to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for healthCheck to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ManagedInstanceInstanceHealth.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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