Package com.google.cloud.compute.v1
Class HealthStatus
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.HealthStatus
-
- All Implemented Interfaces:
HealthStatusOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class HealthStatus extends com.google.protobuf.GeneratedMessageV3 implements HealthStatusOrBuilder
google.cloud.compute.v1.HealthStatus
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HealthStatus.Builder
static class
HealthStatus.HealthState
Health state of the IPv4 address of the instance.static class
HealthStatus.WeightError
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ANNOTATIONS_FIELD_NUMBER
static int
FORWARDING_RULE_FIELD_NUMBER
static int
FORWARDING_RULE_IP_FIELD_NUMBER
static int
HEALTH_STATE_FIELD_NUMBER
static int
INSTANCE_FIELD_NUMBER
static int
IP_ADDRESS_FIELD_NUMBER
static int
PORT_FIELD_NUMBER
static int
WEIGHT_ERROR_FIELD_NUMBER
static int
WEIGHT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsAnnotations(String key)
Metadata defined as annotations for network endpoint.boolean
equals(Object obj)
Map<String,String>
getAnnotations()
Deprecated.int
getAnnotationsCount()
Metadata defined as annotations for network endpoint.Map<String,String>
getAnnotationsMap()
Metadata defined as annotations for network endpoint.String
getAnnotationsOrDefault(String key, String defaultValue)
Metadata defined as annotations for network endpoint.String
getAnnotationsOrThrow(String key)
Metadata defined as annotations for network endpoint.static HealthStatus
getDefaultInstance()
HealthStatus
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getForwardingRule()
URL of the forwarding rule associated with the health status of the instance.com.google.protobuf.ByteString
getForwardingRuleBytes()
URL of the forwarding rule associated with the health status of the instance.String
getForwardingRuleIp()
A forwarding rule IP address assigned to this instance.com.google.protobuf.ByteString
getForwardingRuleIpBytes()
A forwarding rule IP address assigned to this instance.String
getHealthState()
Health state of the IPv4 address of the instance.com.google.protobuf.ByteString
getHealthStateBytes()
Health state of the IPv4 address of the instance.String
getInstance()
URL of the instance resource.com.google.protobuf.ByteString
getInstanceBytes()
URL of the instance resource.String
getIpAddress()
For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance.com.google.protobuf.ByteString
getIpAddressBytes()
For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance.com.google.protobuf.Parser<HealthStatus>
getParserForType()
int
getPort()
The named port of the instance group, not necessarily the port that is health-checked.int
getSerializedSize()
String
getWeight()
optional string weight = 282149496;
com.google.protobuf.ByteString
getWeightBytes()
optional string weight = 282149496;
String
getWeightError()
Check the WeightError enum for the list of possible values.com.google.protobuf.ByteString
getWeightErrorBytes()
Check the WeightError enum for the list of possible values.boolean
hasForwardingRule()
URL of the forwarding rule associated with the health status of the instance.boolean
hasForwardingRuleIp()
A forwarding rule IP address assigned to this instance.int
hashCode()
boolean
hasHealthState()
Health state of the IPv4 address of the instance.boolean
hasInstance()
URL of the instance resource.boolean
hasIpAddress()
For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance.boolean
hasPort()
The named port of the instance group, not necessarily the port that is health-checked.boolean
hasWeight()
optional string weight = 282149496;
boolean
hasWeightError()
Check the WeightError enum for the list of possible values.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static HealthStatus.Builder
newBuilder()
static HealthStatus.Builder
newBuilder(HealthStatus prototype)
HealthStatus.Builder
newBuilderForType()
protected HealthStatus.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static HealthStatus
parseDelimitedFrom(InputStream input)
static HealthStatus
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HealthStatus
parseFrom(byte[] data)
static HealthStatus
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HealthStatus
parseFrom(com.google.protobuf.ByteString data)
static HealthStatus
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HealthStatus
parseFrom(com.google.protobuf.CodedInputStream input)
static HealthStatus
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HealthStatus
parseFrom(InputStream input)
static HealthStatus
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HealthStatus
parseFrom(ByteBuffer data)
static HealthStatus
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<HealthStatus>
parser()
HealthStatus.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FORWARDING_RULE_FIELD_NUMBER
public static final int FORWARDING_RULE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FORWARDING_RULE_IP_FIELD_NUMBER
public static final int FORWARDING_RULE_IP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEALTH_STATE_FIELD_NUMBER
public static final int HEALTH_STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTANCE_FIELD_NUMBER
public static final int INSTANCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IP_ADDRESS_FIELD_NUMBER
public static final int IP_ADDRESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEIGHT_FIELD_NUMBER
public static final int WEIGHT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEIGHT_ERROR_FIELD_NUMBER
public static final int WEIGHT_ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:HealthStatusOrBuilder
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;
- Specified by:
getAnnotationsCount
in interfaceHealthStatusOrBuilder
-
containsAnnotations
public boolean containsAnnotations(String key)
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;
- Specified by:
containsAnnotations
in interfaceHealthStatusOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()
instead.- Specified by:
getAnnotations
in interfaceHealthStatusOrBuilder
-
getAnnotationsMap
public Map<String,String> getAnnotationsMap()
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;
- Specified by:
getAnnotationsMap
in interfaceHealthStatusOrBuilder
-
getAnnotationsOrDefault
public String getAnnotationsOrDefault(String key, String defaultValue)
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;
- Specified by:
getAnnotationsOrDefault
in interfaceHealthStatusOrBuilder
-
getAnnotationsOrThrow
public String getAnnotationsOrThrow(String key)
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;
- Specified by:
getAnnotationsOrThrow
in interfaceHealthStatusOrBuilder
-
hasForwardingRule
public boolean hasForwardingRule()
URL of the forwarding rule associated with the health status of the instance.
optional string forwarding_rule = 269964030;
- Specified by:
hasForwardingRule
in interfaceHealthStatusOrBuilder
- Returns:
- Whether the forwardingRule field is set.
-
getForwardingRule
public String getForwardingRule()
URL of the forwarding rule associated with the health status of the instance.
optional string forwarding_rule = 269964030;
- Specified by:
getForwardingRule
in interfaceHealthStatusOrBuilder
- Returns:
- The forwardingRule.
-
getForwardingRuleBytes
public com.google.protobuf.ByteString getForwardingRuleBytes()
URL of the forwarding rule associated with the health status of the instance.
optional string forwarding_rule = 269964030;
- Specified by:
getForwardingRuleBytes
in interfaceHealthStatusOrBuilder
- Returns:
- The bytes for forwardingRule.
-
hasForwardingRuleIp
public boolean hasForwardingRuleIp()
A forwarding rule IP address assigned to this instance.
optional string forwarding_rule_ip = 172250632;
- Specified by:
hasForwardingRuleIp
in interfaceHealthStatusOrBuilder
- Returns:
- Whether the forwardingRuleIp field is set.
-
getForwardingRuleIp
public String getForwardingRuleIp()
A forwarding rule IP address assigned to this instance.
optional string forwarding_rule_ip = 172250632;
- Specified by:
getForwardingRuleIp
in interfaceHealthStatusOrBuilder
- Returns:
- The forwardingRuleIp.
-
getForwardingRuleIpBytes
public com.google.protobuf.ByteString getForwardingRuleIpBytes()
A forwarding rule IP address assigned to this instance.
optional string forwarding_rule_ip = 172250632;
- Specified by:
getForwardingRuleIpBytes
in interfaceHealthStatusOrBuilder
- Returns:
- The bytes for forwardingRuleIp.
-
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;
- Specified by:
hasHealthState
in interfaceHealthStatusOrBuilder
- Returns:
- Whether the healthState field is set.
-
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;
- Specified by:
getHealthState
in interfaceHealthStatusOrBuilder
- Returns:
- The healthState.
-
getHealthStateBytes
public com.google.protobuf.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;
- Specified by:
getHealthStateBytes
in interfaceHealthStatusOrBuilder
- Returns:
- The bytes for healthState.
-
hasInstance
public boolean hasInstance()
URL of the instance resource.
optional string instance = 18257045;
- Specified by:
hasInstance
in interfaceHealthStatusOrBuilder
- Returns:
- Whether the instance field is set.
-
getInstance
public String getInstance()
URL of the instance resource.
optional string instance = 18257045;
- Specified by:
getInstance
in interfaceHealthStatusOrBuilder
- Returns:
- The instance.
-
getInstanceBytes
public com.google.protobuf.ByteString getInstanceBytes()
URL of the instance resource.
optional string instance = 18257045;
- Specified by:
getInstanceBytes
in interfaceHealthStatusOrBuilder
- Returns:
- The bytes for instance.
-
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;
- Specified by:
hasIpAddress
in interfaceHealthStatusOrBuilder
- Returns:
- Whether the ipAddress field is set.
-
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;
- Specified by:
getIpAddress
in interfaceHealthStatusOrBuilder
- Returns:
- The ipAddress.
-
getIpAddressBytes
public com.google.protobuf.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;
- Specified by:
getIpAddressBytes
in interfaceHealthStatusOrBuilder
- Returns:
- The bytes for ipAddress.
-
hasPort
public boolean hasPort()
The named port of the instance group, not necessarily the port that is health-checked.
optional int32 port = 3446913;
- Specified by:
hasPort
in interfaceHealthStatusOrBuilder
- Returns:
- Whether the port field is set.
-
getPort
public int getPort()
The named port of the instance group, not necessarily the port that is health-checked.
optional int32 port = 3446913;
- Specified by:
getPort
in interfaceHealthStatusOrBuilder
- Returns:
- The port.
-
hasWeight
public boolean hasWeight()
optional string weight = 282149496;
- Specified by:
hasWeight
in interfaceHealthStatusOrBuilder
- Returns:
- Whether the weight field is set.
-
getWeight
public String getWeight()
optional string weight = 282149496;
- Specified by:
getWeight
in interfaceHealthStatusOrBuilder
- Returns:
- The weight.
-
getWeightBytes
public com.google.protobuf.ByteString getWeightBytes()
optional string weight = 282149496;
- Specified by:
getWeightBytes
in interfaceHealthStatusOrBuilder
- Returns:
- The bytes for weight.
-
hasWeightError
public boolean hasWeightError()
Check the WeightError enum for the list of possible values.
optional string weight_error = 522501505;
- Specified by:
hasWeightError
in interfaceHealthStatusOrBuilder
- Returns:
- Whether the weightError field is set.
-
getWeightError
public String getWeightError()
Check the WeightError enum for the list of possible values.
optional string weight_error = 522501505;
- Specified by:
getWeightError
in interfaceHealthStatusOrBuilder
- Returns:
- The weightError.
-
getWeightErrorBytes
public com.google.protobuf.ByteString getWeightErrorBytes()
Check the WeightError enum for the list of possible values.
optional string weight_error = 522501505;
- Specified by:
getWeightErrorBytes
in interfaceHealthStatusOrBuilder
- Returns:
- The bytes for weightError.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HealthStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HealthStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HealthStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HealthStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HealthStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HealthStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HealthStatus parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HealthStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HealthStatus parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HealthStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static HealthStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HealthStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public HealthStatus.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HealthStatus.Builder newBuilder()
-
newBuilder
public static HealthStatus.Builder newBuilder(HealthStatus prototype)
-
toBuilder
public HealthStatus.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HealthStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static HealthStatus getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HealthStatus> parser()
-
getParserForType
public com.google.protobuf.Parser<HealthStatus> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public HealthStatus getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-