Class HealthStatus (1.14.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
TypeDescription
int

FORWARDING_RULE_FIELD_NUMBER

public static final int FORWARDING_RULE_FIELD_NUMBER
Field Value
TypeDescription
int

FORWARDING_RULE_IP_FIELD_NUMBER

public static final int FORWARDING_RULE_IP_FIELD_NUMBER
Field Value
TypeDescription
int

HEALTH_STATE_FIELD_NUMBER

public static final int HEALTH_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

INSTANCE_FIELD_NUMBER

public static final int INSTANCE_FIELD_NUMBER
Field Value
TypeDescription
int

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

PORT_FIELD_NUMBER

public static final int PORT_FIELD_NUMBER
Field Value
TypeDescription
int

WEIGHT_ERROR_FIELD_NUMBER

public static final int WEIGHT_ERROR_FIELD_NUMBER
Field Value
TypeDescription
int

WEIGHT_FIELD_NUMBER

public static final int WEIGHT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static HealthStatus getDefaultInstance()
Returns
TypeDescription
HealthStatus

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static HealthStatus.Builder newBuilder()
Returns
TypeDescription
HealthStatus.Builder

newBuilder(HealthStatus prototype)

public static HealthStatus.Builder newBuilder(HealthStatus prototype)
Parameter
NameDescription
prototypeHealthStatus
Returns
TypeDescription
HealthStatus.Builder

parseDelimitedFrom(InputStream input)

public static HealthStatus parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HealthStatus
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HealthStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HealthStatus
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static HealthStatus parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
HealthStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HealthStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HealthStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HealthStatus parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
HealthStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HealthStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HealthStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HealthStatus parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
HealthStatus
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HealthStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HealthStatus
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static HealthStatus parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HealthStatus
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HealthStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HealthStatus
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static HealthStatus parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
HealthStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HealthStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HealthStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<HealthStatus> parser()
Returns
TypeDescription
Parser<HealthStatus>

Methods

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Metadata defined as annotations for network endpoint.

map<string, string> annotations = 112032548;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Metadata defined as annotations for network endpoint.

map<string, string> annotations = 112032548;

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Metadata defined as annotations for network endpoint.

map<string, string> annotations = 112032548;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Metadata defined as annotations for network endpoint.

map<string, string> annotations = 112032548;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getDefaultInstanceForType()

public HealthStatus getDefaultInstanceForType()
Returns
TypeDescription
HealthStatus

getForwardingRule()

public String getForwardingRule()

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

optional string forwarding_rule = 269964030;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
String

The forwardingRuleIp.

getForwardingRuleIpBytes()

public ByteString getForwardingRuleIpBytes()

A forwarding rule IP address assigned to this instance.

optional string forwarding_rule_ip = 172250632;

Returns
TypeDescription
ByteString

The bytes for forwardingRuleIp.

getHealthState()

public String getHealthState()

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

optional string health_state = 324007150;

Returns
TypeDescription
String

The healthState.

getHealthStateBytes()

public ByteString getHealthStateBytes()

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

optional string health_state = 324007150;

Returns
TypeDescription
ByteString

The bytes for healthState.

getInstance()

public String getInstance()

URL of the instance resource.

optional string instance = 18257045;

Returns
TypeDescription
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

URL of the instance resource.

optional string instance = 18257045;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for ipAddress.

getParserForType()

public Parser<HealthStatus> getParserForType()
Returns
TypeDescription
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
TypeDescription
int

The port.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getWeight()

public String getWeight()

optional string weight = 282149496;

Returns
TypeDescription
String

The weight.

getWeightBytes()

public ByteString getWeightBytes()

optional string weight = 282149496;

Returns
TypeDescription
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
TypeDescription
String

The weightError.

getWeightErrorBytes()

public ByteString getWeightErrorBytes()

Check the WeightError enum for the list of possible values.

optional string weight_error = 522501505;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the forwardingRuleIp field is set.

hasHealthState()

public boolean hasHealthState()

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

optional string health_state = 324007150;

Returns
TypeDescription
boolean

Whether the healthState field is set.

hasInstance()

public boolean hasInstance()

URL of the instance resource.

optional string instance = 18257045;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the port field is set.

hasWeight()

public boolean hasWeight()

optional string weight = 282149496;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the weightError field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public HealthStatus.Builder newBuilderForType()
Returns
TypeDescription
HealthStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HealthStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
HealthStatus.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public HealthStatus.Builder toBuilder()
Returns
TypeDescription
HealthStatus.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException