Class HealthStatus.Builder (1.37.0)

public static final class HealthStatus.Builder extends GeneratedMessageV3.Builder<HealthStatus.Builder> implements HealthStatusOrBuilder

Protobuf type google.cloud.compute.v1.HealthStatus

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HealthStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HealthStatus.Builder
Overrides

build()

public HealthStatus build()
Returns
TypeDescription
HealthStatus

buildPartial()

public HealthStatus buildPartial()
Returns
TypeDescription
HealthStatus

clear()

public HealthStatus.Builder clear()
Returns
TypeDescription
HealthStatus.Builder
Overrides

clearAnnotations()

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

clearField(Descriptors.FieldDescriptor field)

public HealthStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
HealthStatus.Builder
Overrides

clearForwardingRule()

public HealthStatus.Builder clearForwardingRule()

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

optional string forwarding_rule = 269964030;

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

clearForwardingRuleIp()

public HealthStatus.Builder clearForwardingRuleIp()

A forwarding rule IP address assigned to this instance.

optional string forwarding_rule_ip = 172250632;

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

clearHealthState()

public HealthStatus.Builder clearHealthState()

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
TypeDescription
HealthStatus.Builder

This builder for chaining.

clearInstance()

public HealthStatus.Builder clearInstance()

URL of the instance resource.

optional string instance = 18257045;

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

clearIpAddress()

public HealthStatus.Builder clearIpAddress()

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
HealthStatus.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public HealthStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HealthStatus.Builder
Overrides

clearPort()

public HealthStatus.Builder clearPort()

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

optional int32 port = 3446913;

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

clearWeight()

public HealthStatus.Builder clearWeight()

optional string weight = 282149496;

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

clearWeightError()

public HealthStatus.Builder clearWeightError()

Check the WeightError enum for the list of possible values.

optional string weight_error = 522501505;

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

clone()

public HealthStatus.Builder clone()
Returns
TypeDescription
HealthStatus.Builder
Overrides

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

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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 IPv4 address 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 IPv4 address 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.

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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.

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 IPv4 address 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

internalGetMutableMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HealthStatus other)

public HealthStatus.Builder mergeFrom(HealthStatus other)
Parameter
NameDescription
otherHealthStatus
Returns
TypeDescription
HealthStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HealthStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HealthStatus.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public HealthStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
HealthStatus.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HealthStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HealthStatus.Builder
Overrides

putAllAnnotations(Map<String,String> values)

public HealthStatus.Builder putAllAnnotations(Map<String,String> values)

Metadata defined as annotations for network endpoint.

map<string, string> annotations = 112032548;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
HealthStatus.Builder

putAnnotations(String key, String value)

public HealthStatus.Builder putAnnotations(String key, String value)

Metadata defined as annotations for network endpoint.

map<string, string> annotations = 112032548;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
HealthStatus.Builder

removeAnnotations(String key)

public HealthStatus.Builder removeAnnotations(String key)

Metadata defined as annotations for network endpoint.

map<string, string> annotations = 112032548;

Parameter
NameDescription
keyString
Returns
TypeDescription
HealthStatus.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public HealthStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HealthStatus.Builder
Overrides

setForwardingRule(String value)

public HealthStatus.Builder setForwardingRule(String value)

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

optional string forwarding_rule = 269964030;

Parameter
NameDescription
valueString

The forwardingRule to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setForwardingRuleBytes(ByteString value)

public HealthStatus.Builder setForwardingRuleBytes(ByteString value)

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

optional string forwarding_rule = 269964030;

Parameter
NameDescription
valueByteString

The bytes for forwardingRule to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setForwardingRuleIp(String value)

public HealthStatus.Builder setForwardingRuleIp(String value)

A forwarding rule IP address assigned to this instance.

optional string forwarding_rule_ip = 172250632;

Parameter
NameDescription
valueString

The forwardingRuleIp to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setForwardingRuleIpBytes(ByteString value)

public HealthStatus.Builder setForwardingRuleIpBytes(ByteString value)

A forwarding rule IP address assigned to this instance.

optional string forwarding_rule_ip = 172250632;

Parameter
NameDescription
valueByteString

The bytes for forwardingRuleIp to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setHealthState(String value)

public HealthStatus.Builder setHealthState(String value)

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

optional string health_state = 324007150;

Parameter
NameDescription
valueString

The healthState to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setHealthStateBytes(ByteString value)

public HealthStatus.Builder setHealthStateBytes(ByteString value)

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

optional string health_state = 324007150;

Parameter
NameDescription
valueByteString

The bytes for healthState to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setInstance(String value)

public HealthStatus.Builder setInstance(String value)

URL of the instance resource.

optional string instance = 18257045;

Parameter
NameDescription
valueString

The instance to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public HealthStatus.Builder setInstanceBytes(ByteString value)

URL of the instance resource.

optional string instance = 18257045;

Parameter
NameDescription
valueByteString

The bytes for instance to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setIpAddress(String value)

public HealthStatus.Builder setIpAddress(String value)

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;

Parameter
NameDescription
valueString

The ipAddress to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public HealthStatus.Builder setIpAddressBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for ipAddress to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setPort(int value)

public HealthStatus.Builder setPort(int value)

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

optional int32 port = 3446913;

Parameter
NameDescription
valueint

The port to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HealthStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HealthStatus.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HealthStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HealthStatus.Builder
Overrides

setWeight(String value)

public HealthStatus.Builder setWeight(String value)

optional string weight = 282149496;

Parameter
NameDescription
valueString

The weight to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setWeightBytes(ByteString value)

public HealthStatus.Builder setWeightBytes(ByteString value)

optional string weight = 282149496;

Parameter
NameDescription
valueByteString

The bytes for weight to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setWeightError(String value)

public HealthStatus.Builder setWeightError(String value)

Check the WeightError enum for the list of possible values.

optional string weight_error = 522501505;

Parameter
NameDescription
valueString

The weightError to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.

setWeightErrorBytes(ByteString value)

public HealthStatus.Builder setWeightErrorBytes(ByteString value)

Check the WeightError enum for the list of possible values.

optional string weight_error = 522501505;

Parameter
NameDescription
valueByteString

The bytes for weightError to set.

Returns
TypeDescription
HealthStatus.Builder

This builder for chaining.