public static final class AllocationResourceStatusHealthInfo.Builder extends GeneratedMessageV3.Builder<AllocationResourceStatusHealthInfo.Builder> implements AllocationResourceStatusHealthInfoOrBuilder
Health information for the reservation.
Protobuf type google.cloud.compute.v1.AllocationResourceStatusHealthInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AllocationResourceStatusHealthInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AllocationResourceStatusHealthInfo build()
buildPartial()
public AllocationResourceStatusHealthInfo buildPartial()
clear()
public AllocationResourceStatusHealthInfo.Builder clear()
Overrides
clearDegradedBlockCount()
public AllocationResourceStatusHealthInfo.Builder clearDegradedBlockCount()
The number of reservation blocks that are degraded.
optional int32 degraded_block_count = 514082636;
clearField(Descriptors.FieldDescriptor field)
public AllocationResourceStatusHealthInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearHealthStatus()
public AllocationResourceStatusHealthInfo.Builder clearHealthStatus()
The health status of the reservation.
Check the HealthStatus enum for the list of possible values.
optional string health_status = 380545845;
clearHealthyBlockCount()
public AllocationResourceStatusHealthInfo.Builder clearHealthyBlockCount()
The number of reservation blocks that are healthy.
optional int32 healthy_block_count = 223625019;
clearOneof(Descriptors.OneofDescriptor oneof)
public AllocationResourceStatusHealthInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public AllocationResourceStatusHealthInfo.Builder clone()
Overrides
getDefaultInstanceForType()
public AllocationResourceStatusHealthInfo getDefaultInstanceForType()
getDegradedBlockCount()
public int getDegradedBlockCount()
The number of reservation blocks that are degraded.
optional int32 degraded_block_count = 514082636;
| Returns |
| Type |
Description |
int |
The degradedBlockCount.
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getHealthStatus()
public String getHealthStatus()
The health status of the reservation.
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()
The health status of the reservation.
Check the HealthStatus enum for the list of possible values.
optional string health_status = 380545845;
| Returns |
| Type |
Description |
ByteString |
The bytes for healthStatus.
|
getHealthyBlockCount()
public int getHealthyBlockCount()
The number of reservation blocks that are healthy.
optional int32 healthy_block_count = 223625019;
| Returns |
| Type |
Description |
int |
The healthyBlockCount.
|
hasDegradedBlockCount()
public boolean hasDegradedBlockCount()
The number of reservation blocks that are degraded.
optional int32 degraded_block_count = 514082636;
| Returns |
| Type |
Description |
boolean |
Whether the degradedBlockCount field is set.
|
hasHealthStatus()
public boolean hasHealthStatus()
The health status of the reservation.
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.
|
hasHealthyBlockCount()
public boolean hasHealthyBlockCount()
The number of reservation blocks that are healthy.
optional int32 healthy_block_count = 223625019;
| Returns |
| Type |
Description |
boolean |
Whether the healthyBlockCount field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AllocationResourceStatusHealthInfo other)
public AllocationResourceStatusHealthInfo.Builder mergeFrom(AllocationResourceStatusHealthInfo other)
public AllocationResourceStatusHealthInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AllocationResourceStatusHealthInfo.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AllocationResourceStatusHealthInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setDegradedBlockCount(int value)
public AllocationResourceStatusHealthInfo.Builder setDegradedBlockCount(int value)
The number of reservation blocks that are degraded.
optional int32 degraded_block_count = 514082636;
| Parameter |
| Name |
Description |
value |
int
The degradedBlockCount to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public AllocationResourceStatusHealthInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides