Class AllocationResourceStatusHealthInfo (1.82.0)

public final class AllocationResourceStatusHealthInfo extends GeneratedMessageV3 implements AllocationResourceStatusHealthInfoOrBuilder

Health information for the reservation.

Protobuf type google.cloud.compute.v1.AllocationResourceStatusHealthInfo

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AllocationResourceStatusHealthInfo

Static Fields

DEGRADED_BLOCK_COUNT_FIELD_NUMBER

public static final int DEGRADED_BLOCK_COUNT_FIELD_NUMBER
Field Value
Type Description
int

HEALTHY_BLOCK_COUNT_FIELD_NUMBER

public static final int HEALTHY_BLOCK_COUNT_FIELD_NUMBER
Field Value
Type Description
int

HEALTH_STATUS_FIELD_NUMBER

public static final int HEALTH_STATUS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AllocationResourceStatusHealthInfo getDefaultInstance()
Returns
Type Description
AllocationResourceStatusHealthInfo

getDescriptor()

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

newBuilder()

public static AllocationResourceStatusHealthInfo.Builder newBuilder()
Returns
Type Description
AllocationResourceStatusHealthInfo.Builder

newBuilder(AllocationResourceStatusHealthInfo prototype)

public static AllocationResourceStatusHealthInfo.Builder newBuilder(AllocationResourceStatusHealthInfo prototype)
Parameter
Name Description
prototype AllocationResourceStatusHealthInfo
Returns
Type Description
AllocationResourceStatusHealthInfo.Builder

parseDelimitedFrom(InputStream input)

public static AllocationResourceStatusHealthInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AllocationResourceStatusHealthInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationResourceStatusHealthInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationResourceStatusHealthInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AllocationResourceStatusHealthInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AllocationResourceStatusHealthInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AllocationResourceStatusHealthInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationResourceStatusHealthInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AllocationResourceStatusHealthInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AllocationResourceStatusHealthInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AllocationResourceStatusHealthInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationResourceStatusHealthInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AllocationResourceStatusHealthInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AllocationResourceStatusHealthInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationResourceStatusHealthInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationResourceStatusHealthInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AllocationResourceStatusHealthInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AllocationResourceStatusHealthInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationResourceStatusHealthInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationResourceStatusHealthInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AllocationResourceStatusHealthInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AllocationResourceStatusHealthInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AllocationResourceStatusHealthInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationResourceStatusHealthInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AllocationResourceStatusHealthInfo> parser()
Returns
Type Description
Parser<AllocationResourceStatusHealthInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AllocationResourceStatusHealthInfo getDefaultInstanceForType()
Returns
Type Description
AllocationResourceStatusHealthInfo

getDegradedBlockCount()

public int getDegradedBlockCount()

The number of reservation blocks that are degraded.

optional int32 degraded_block_count = 514082636;

Returns
Type Description
int

The degradedBlockCount.

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.

getParserForType()

public Parser<AllocationResourceStatusHealthInfo> getParserForType()
Returns
Type Description
Parser<AllocationResourceStatusHealthInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AllocationResourceStatusHealthInfo.Builder newBuilderForType()
Returns
Type Description
AllocationResourceStatusHealthInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AllocationResourceStatusHealthInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AllocationResourceStatusHealthInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AllocationResourceStatusHealthInfo.Builder toBuilder()
Returns
Type Description
AllocationResourceStatusHealthInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException