Class HealthStatus (1.59.0)

public final class HealthStatus extends GeneratedMessageV3 implements HealthStatusOrBuilder

Protobuf type google.cloud.compute.v1.HealthStatus

Static Fields

ANNOTATIONS_FIELD_NUMBER

public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

FORWARDING_RULE_FIELD_NUMBER

public static final int FORWARDING_RULE_FIELD_NUMBER
Field Value
Type Description
int

FORWARDING_RULE_IP_FIELD_NUMBER

public static final int FORWARDING_RULE_IP_FIELD_NUMBER
Field Value
Type Description
int

HEALTH_STATE_FIELD_NUMBER

public static final int HEALTH_STATE_FIELD_NUMBER
Field Value
Type Description
int

INSTANCE_FIELD_NUMBER

public static final int INSTANCE_FIELD_NUMBER
Field Value
Type Description
int

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

PORT_FIELD_NUMBER

public static final int PORT_FIELD_NUMBER
Field Value
Type Description
int

WEIGHT_ERROR_FIELD_NUMBER

public static final int WEIGHT_ERROR_FIELD_NUMBER
Field Value
Type Description
int

WEIGHT_FIELD_NUMBER

public static final int WEIGHT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HealthStatus getDefaultInstance()
Returns
Type Description
HealthStatus

getDescriptor()

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

newBuilder()

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

newBuilder(HealthStatus prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Metadata defined as annotations for network endpoint.

map<string, string> annotations = 112032548;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

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

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Metadata defined as annotations for network endpoint.

map<string, string> annotations = 112032548;

Returns
Type Description
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Metadata defined as annotations for network endpoint.

map<string, string> annotations = 112032548;

Returns
Type Description
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Metadata defined as annotations for network endpoint.

map<string, string> annotations = 112032548;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Metadata defined as annotations for network endpoint.

map<string, string> annotations = 112032548;

Parameter
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public HealthStatus getDefaultInstanceForType()
Returns
Type Description
HealthStatus

getForwardingRule()

public String getForwardingRule()

URL of the forwarding rule associated with the health status of the instance.

optional string forwarding_rule = 269964030;

Returns
Type Description
String

The forwardingRule.

getForwardingRuleBytes()

public ByteString getForwardingRuleBytes()

URL of the forwarding rule associated with the health status of the instance.

optional string forwarding_rule = 269964030;

Returns
Type Description
ByteString

The bytes for forwardingRule.

getForwardingRuleIp()

public String getForwardingRuleIp()

A forwarding rule IP address assigned to this instance.

optional string forwarding_rule_ip = 172250632;

Returns
Type Description
String

The forwardingRuleIp.

getForwardingRuleIpBytes()

public ByteString getForwardingRuleIpBytes()

A forwarding rule IP address assigned to this instance.

optional string forwarding_rule_ip = 172250632;

Returns
Type Description
ByteString

The bytes for forwardingRuleIp.

getHealthState()

public String getHealthState()

Health state of the IPv4 address of the instance. 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 IPv4 address of the instance. Check the HealthState enum for the list of possible values.

optional string health_state = 324007150;

Returns
Type Description
ByteString

The bytes for healthState.

getInstance()

public String getInstance()

URL of the instance resource.

optional string instance = 18257045;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

URL of the instance resource.

optional string instance = 18257045;

Returns
Type Description
ByteString

The bytes for instance.

getIpAddress()

public String getIpAddress()

For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance. For other types of load balancing, the field indicates VM internal ip.

optional string ip_address = 406272220;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance. For other types of load balancing, the field indicates VM internal ip.

optional string ip_address = 406272220;

Returns
Type Description
ByteString

The bytes for ipAddress.

getParserForType()

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

getPort()

public int getPort()

The named port of the instance group, not necessarily the port that is health-checked.

optional int32 port = 3446913;

Returns
Type Description
int

The port.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getWeight()

public String getWeight()

optional string weight = 282149496;

Returns
Type Description
String

The weight.

getWeightBytes()

public ByteString getWeightBytes()

optional string weight = 282149496;

Returns
Type Description
ByteString

The bytes for weight.

getWeightError()

public String getWeightError()

Check the WeightError enum for the list of possible values.

optional string weight_error = 522501505;

Returns
Type Description
String

The weightError.

getWeightErrorBytes()

public ByteString getWeightErrorBytes()

Check the WeightError enum for the list of possible values.

optional string weight_error = 522501505;

Returns
Type Description
ByteString

The bytes for weightError.

hasForwardingRule()

public boolean hasForwardingRule()

URL of the forwarding rule associated with the health status of the instance.

optional string forwarding_rule = 269964030;

Returns
Type Description
boolean

Whether the forwardingRule field is set.

hasForwardingRuleIp()

public boolean hasForwardingRuleIp()

A forwarding rule IP address assigned to this instance.

optional string forwarding_rule_ip = 172250632;

Returns
Type Description
boolean

Whether the forwardingRuleIp field is set.

hasHealthState()

public boolean hasHealthState()

Health state of the IPv4 address of the instance. 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.

hasInstance()

public boolean hasInstance()

URL of the instance resource.

optional string instance = 18257045;

Returns
Type Description
boolean

Whether the instance field is set.

hasIpAddress()

public boolean hasIpAddress()

For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance. For other types of load balancing, the field indicates VM internal ip.

optional string ip_address = 406272220;

Returns
Type Description
boolean

Whether the ipAddress field is set.

hasPort()

public boolean hasPort()

The named port of the instance group, not necessarily the port that is health-checked.

optional int32 port = 3446913;

Returns
Type Description
boolean

Whether the port field is set.

hasWeight()

public boolean hasWeight()

optional string weight = 282149496;

Returns
Type Description
boolean

Whether the weight field is set.

hasWeightError()

public boolean hasWeightError()

Check the WeightError enum for the list of possible values.

optional string weight_error = 522501505;

Returns
Type Description
boolean

Whether the weightError field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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