Class GetHealthOperationMetadataHealthInfo.Builder (1.109.0)

public static final class GetHealthOperationMetadataHealthInfo.Builder extends GeneratedMessage.Builder<GetHealthOperationMetadataHealthInfo.Builder> implements GetHealthOperationMetadataHealthInfoOrBuilder

Health information.

Protobuf type google.cloud.compute.v1.GetHealthOperationMetadataHealthInfo

Static Methods

getDescriptor()

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

Methods

build()

public GetHealthOperationMetadataHealthInfo build()
Returns
Type Description
GetHealthOperationMetadataHealthInfo

buildPartial()

public GetHealthOperationMetadataHealthInfo buildPartial()
Returns
Type Description
GetHealthOperationMetadataHealthInfo

clear()

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

clearAvailabilitySloStatus()

public GetHealthOperationMetadataHealthInfo.Builder clearAvailabilitySloStatus()

Output only. The availability SLO status. Check the AvailabilitySloStatus enum for the list of possible values.

optional string availability_slo_status = 255971455;

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

clearHealthStatus()

public GetHealthOperationMetadataHealthInfo.Builder clearHealthStatus()

Output only. The health status. Check the HealthStatus enum for the list of possible values.

optional string health_status = 380545845;

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

clearRepairCategory()

public GetHealthOperationMetadataHealthInfo.Builder clearRepairCategory()

Output only. The repair category. Check the RepairCategory enum for the list of possible values.

optional string repair_category = 113376624;

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

clearUnhealthyReason()

public GetHealthOperationMetadataHealthInfo.Builder clearUnhealthyReason()

Output only. The reason for unhealthy status. Check the UnhealthyReason enum for the list of possible values.

optional string unhealthy_reason = 448838143;

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

clearUpdateTime()

public GetHealthOperationMetadataHealthInfo.Builder clearUpdateTime()

Output only. The time when health info was updated.

optional string update_time = 500295811;

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

getAvailabilitySloStatus()

public String getAvailabilitySloStatus()

Output only. The availability SLO status. Check the AvailabilitySloStatus enum for the list of possible values.

optional string availability_slo_status = 255971455;

Returns
Type Description
String

The availabilitySloStatus.

getAvailabilitySloStatusBytes()

public ByteString getAvailabilitySloStatusBytes()

Output only. The availability SLO status. Check the AvailabilitySloStatus enum for the list of possible values.

optional string availability_slo_status = 255971455;

Returns
Type Description
ByteString

The bytes for availabilitySloStatus.

getDefaultInstanceForType()

public GetHealthOperationMetadataHealthInfo getDefaultInstanceForType()
Returns
Type Description
GetHealthOperationMetadataHealthInfo

getDescriptorForType()

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

getHealthStatus()

public String getHealthStatus()

Output only. The health status. Check the HealthStatus enum for the list of possible values.

optional string health_status = 380545845;

Returns
Type Description
String

The healthStatus.

getHealthStatusBytes()

public ByteString getHealthStatusBytes()

Output only. The health status. Check the HealthStatus enum for the list of possible values.

optional string health_status = 380545845;

Returns
Type Description
ByteString

The bytes for healthStatus.

getRepairCategory()

public String getRepairCategory()

Output only. The repair category. Check the RepairCategory enum for the list of possible values.

optional string repair_category = 113376624;

Returns
Type Description
String

The repairCategory.

getRepairCategoryBytes()

public ByteString getRepairCategoryBytes()

Output only. The repair category. Check the RepairCategory enum for the list of possible values.

optional string repair_category = 113376624;

Returns
Type Description
ByteString

The bytes for repairCategory.

getUnhealthyReason()

public String getUnhealthyReason()

Output only. The reason for unhealthy status. Check the UnhealthyReason enum for the list of possible values.

optional string unhealthy_reason = 448838143;

Returns
Type Description
String

The unhealthyReason.

getUnhealthyReasonBytes()

public ByteString getUnhealthyReasonBytes()

Output only. The reason for unhealthy status. Check the UnhealthyReason enum for the list of possible values.

optional string unhealthy_reason = 448838143;

Returns
Type Description
ByteString

The bytes for unhealthyReason.

getUpdateTime()

public String getUpdateTime()

Output only. The time when health info was updated.

optional string update_time = 500295811;

Returns
Type Description
String

The updateTime.

getUpdateTimeBytes()

public ByteString getUpdateTimeBytes()

Output only. The time when health info was updated.

optional string update_time = 500295811;

Returns
Type Description
ByteString

The bytes for updateTime.

hasAvailabilitySloStatus()

public boolean hasAvailabilitySloStatus()

Output only. The availability SLO status. Check the AvailabilitySloStatus enum for the list of possible values.

optional string availability_slo_status = 255971455;

Returns
Type Description
boolean

Whether the availabilitySloStatus field is set.

hasHealthStatus()

public boolean hasHealthStatus()

Output only. The health status. Check the HealthStatus enum for the list of possible values.

optional string health_status = 380545845;

Returns
Type Description
boolean

Whether the healthStatus field is set.

hasRepairCategory()

public boolean hasRepairCategory()

Output only. The repair category. Check the RepairCategory enum for the list of possible values.

optional string repair_category = 113376624;

Returns
Type Description
boolean

Whether the repairCategory field is set.

hasUnhealthyReason()

public boolean hasUnhealthyReason()

Output only. The reason for unhealthy status. Check the UnhealthyReason enum for the list of possible values.

optional string unhealthy_reason = 448838143;

Returns
Type Description
boolean

Whether the unhealthyReason field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when health info was updated.

optional string update_time = 500295811;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetHealthOperationMetadataHealthInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAvailabilitySloStatus(String value)

public GetHealthOperationMetadataHealthInfo.Builder setAvailabilitySloStatus(String value)

Output only. The availability SLO status. Check the AvailabilitySloStatus enum for the list of possible values.

optional string availability_slo_status = 255971455;

Parameter
Name Description
value String

The availabilitySloStatus to set.

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

setAvailabilitySloStatusBytes(ByteString value)

public GetHealthOperationMetadataHealthInfo.Builder setAvailabilitySloStatusBytes(ByteString value)

Output only. The availability SLO status. Check the AvailabilitySloStatus enum for the list of possible values.

optional string availability_slo_status = 255971455;

Parameter
Name Description
value ByteString

The bytes for availabilitySloStatus to set.

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

setHealthStatus(String value)

public GetHealthOperationMetadataHealthInfo.Builder setHealthStatus(String value)

Output only. The health status. Check the HealthStatus enum for the list of possible values.

optional string health_status = 380545845;

Parameter
Name Description
value String

The healthStatus to set.

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

setHealthStatusBytes(ByteString value)

public GetHealthOperationMetadataHealthInfo.Builder setHealthStatusBytes(ByteString value)

Output only. The health status. Check the HealthStatus enum for the list of possible values.

optional string health_status = 380545845;

Parameter
Name Description
value ByteString

The bytes for healthStatus to set.

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

setRepairCategory(String value)

public GetHealthOperationMetadataHealthInfo.Builder setRepairCategory(String value)

Output only. The repair category. Check the RepairCategory enum for the list of possible values.

optional string repair_category = 113376624;

Parameter
Name Description
value String

The repairCategory to set.

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

setRepairCategoryBytes(ByteString value)

public GetHealthOperationMetadataHealthInfo.Builder setRepairCategoryBytes(ByteString value)

Output only. The repair category. Check the RepairCategory enum for the list of possible values.

optional string repair_category = 113376624;

Parameter
Name Description
value ByteString

The bytes for repairCategory to set.

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

setUnhealthyReason(String value)

public GetHealthOperationMetadataHealthInfo.Builder setUnhealthyReason(String value)

Output only. The reason for unhealthy status. Check the UnhealthyReason enum for the list of possible values.

optional string unhealthy_reason = 448838143;

Parameter
Name Description
value String

The unhealthyReason to set.

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

setUnhealthyReasonBytes(ByteString value)

public GetHealthOperationMetadataHealthInfo.Builder setUnhealthyReasonBytes(ByteString value)

Output only. The reason for unhealthy status. Check the UnhealthyReason enum for the list of possible values.

optional string unhealthy_reason = 448838143;

Parameter
Name Description
value ByteString

The bytes for unhealthyReason to set.

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

setUpdateTime(String value)

public GetHealthOperationMetadataHealthInfo.Builder setUpdateTime(String value)

Output only. The time when health info was updated.

optional string update_time = 500295811;

Parameter
Name Description
value String

The updateTime to set.

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.

setUpdateTimeBytes(ByteString value)

public GetHealthOperationMetadataHealthInfo.Builder setUpdateTimeBytes(ByteString value)

Output only. The time when health info was updated.

optional string update_time = 500295811;

Parameter
Name Description
value ByteString

The bytes for updateTime to set.

Returns
Type Description
GetHealthOperationMetadataHealthInfo.Builder

This builder for chaining.