Class HealthSourceHealth (1.105.0)

public final class HealthSourceHealth extends GeneratedMessage implements HealthSourceHealthOrBuilder

Response message for RegionHealthSources.GetHealth

Protobuf type google.cloud.compute.v1.HealthSourceHealth

Static Fields

HEALTH_STATE_FIELD_NUMBER

public static final int HEALTH_STATE_FIELD_NUMBER
Field Value
Type Description
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
Type Description
int

SOURCES_FIELD_NUMBER

public static final int SOURCES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HealthSourceHealth getDefaultInstance()
Returns
Type Description
HealthSourceHealth

getDescriptor()

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

newBuilder()

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

newBuilder(HealthSourceHealth prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public HealthSourceHealth getDefaultInstanceForType()
Returns
Type Description
HealthSourceHealth

getHealthState()

public String getHealthState()

Health state of the HealthSource. Check the HealthState enum for the list of possible values.

optional string health_state = 324007150;

Returns
Type Description
String

The healthState.

getHealthStateBytes()

public ByteString getHealthStateBytes()

Health state of the HealthSource. Check the HealthState enum for the list of possible values.

optional string health_state = 324007150;

Returns
Type Description
ByteString

The bytes for healthState.

getKind()

public String getKind()

Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSources(int index)

public HealthSourcesGetHealthResponseSourceInfo getSources(int index)

Health state details of the sources.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;

Parameter
Name Description
index int
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo

getSourcesCount()

public int getSourcesCount()

Health state details of the sources.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;

Returns
Type Description
int

getSourcesList()

public List<HealthSourcesGetHealthResponseSourceInfo> getSourcesList()

Health state details of the sources.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;

Returns
Type Description
List<HealthSourcesGetHealthResponseSourceInfo>

getSourcesOrBuilder(int index)

public HealthSourcesGetHealthResponseSourceInfoOrBuilder getSourcesOrBuilder(int index)

Health state details of the sources.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;

Parameter
Name Description
index int
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfoOrBuilder

getSourcesOrBuilderList()

public List<? extends HealthSourcesGetHealthResponseSourceInfoOrBuilder> getSourcesOrBuilderList()

Health state details of the sources.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoOrBuilder>

hasHealthState()

public boolean hasHealthState()

Health state of the HealthSource. Check the HealthState enum for the list of possible values.

optional string health_state = 324007150;

Returns
Type Description
boolean

Whether the healthState field is set.

hasKind()

public boolean hasKind()

Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected HealthSourceHealth.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HealthSourceHealth.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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