public final class HealthStatus extends GeneratedMessageV3 implements HealthStatusOrBuilder
Protobuf type google.cloud.compute.v1.HealthStatus
Fields
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
FORWARDING_RULE_FIELD_NUMBER
public static final int FORWARDING_RULE_FIELD_NUMBER
Field Value
FORWARDING_RULE_IP_FIELD_NUMBER
public static final int FORWARDING_RULE_IP_FIELD_NUMBER
Field Value
HEALTH_STATE_FIELD_NUMBER
public static final int HEALTH_STATE_FIELD_NUMBER
Field Value
INSTANCE_FIELD_NUMBER
public static final int INSTANCE_FIELD_NUMBER
Field Value
IP_ADDRESS_FIELD_NUMBER
public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
Field Value
WEIGHT_ERROR_FIELD_NUMBER
public static final int WEIGHT_ERROR_FIELD_NUMBER
Field Value
WEIGHT_FIELD_NUMBER
public static final int WEIGHT_FIELD_NUMBER
Field Value
Methods
containsAnnotations(String key)
public boolean containsAnnotations(String key)
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAnnotations()
public Map<String,String> getAnnotations()
Returns
getAnnotationsCount()
public int getAnnotationsCount()
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;
Returns
getAnnotationsMap()
public Map<String,String> getAnnotationsMap()
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;
Returns
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
Returns
getAnnotationsOrThrow(String key)
public String getAnnotationsOrThrow(String key)
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;
Parameter
Returns
getDefaultInstance()
public static HealthStatus getDefaultInstance()
Returns
getDefaultInstanceForType()
public HealthStatus getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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 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 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
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
getParserForType()
public Parser<HealthStatus> getParserForType()
Returns
Overrides
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
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getWeight()
public String getWeight()
optional string weight = 282149496;
Returns
Type | Description |
String | The weight.
|
getWeightBytes()
public ByteString getWeightBytes()
optional string weight = 282149496;
Returns
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 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()
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static HealthStatus.Builder newBuilder()
Returns
newBuilder(HealthStatus prototype)
public static HealthStatus.Builder newBuilder(HealthStatus prototype)
Parameter
Returns
newBuilderForType()
public HealthStatus.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HealthStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static HealthStatus parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static HealthStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static HealthStatus parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HealthStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static HealthStatus parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HealthStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HealthStatus parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static HealthStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HealthStatus parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static HealthStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static HealthStatus parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HealthStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<HealthStatus> parser()
Returns
toBuilder()
public HealthStatus.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions