Package com.google.cloud.compute.v1
Class HealthStatus.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
- com.google.cloud.compute.v1.HealthStatus.Builder
-
- All Implemented Interfaces:
HealthStatusOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HealthStatus
public static final class HealthStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder> implements HealthStatusOrBuilder
Protobuf typegoogle.cloud.compute.v1.HealthStatus
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HealthStatus.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HealthStatusbuild()HealthStatusbuildPartial()HealthStatus.Builderclear()HealthStatus.BuilderclearAnnotations()HealthStatus.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)HealthStatus.BuilderclearForwardingRule()URL of the forwarding rule associated with the health status of the instance.HealthStatus.BuilderclearForwardingRuleIp()A forwarding rule IP address assigned to this instance.HealthStatus.BuilderclearHealthState()Health state of the IPv4 address of the instance.HealthStatus.BuilderclearInstance()URL of the instance resource.HealthStatus.BuilderclearIpAddress()For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance.HealthStatus.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)HealthStatus.BuilderclearPort()The named port of the instance group, not necessarily the port that is health-checked.HealthStatus.BuilderclearWeight()optional string weight = 282149496;HealthStatus.BuilderclearWeightError()Check the WeightError enum for the list of possible values.HealthStatus.Builderclone()booleancontainsAnnotations(String key)Metadata defined as annotations for network endpoint.Map<String,String>getAnnotations()Deprecated.intgetAnnotationsCount()Metadata defined as annotations for network endpoint.Map<String,String>getAnnotationsMap()Metadata defined as annotations for network endpoint.StringgetAnnotationsOrDefault(String key, String defaultValue)Metadata defined as annotations for network endpoint.StringgetAnnotationsOrThrow(String key)Metadata defined as annotations for network endpoint.HealthStatusgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetForwardingRule()URL of the forwarding rule associated with the health status of the instance.com.google.protobuf.ByteStringgetForwardingRuleBytes()URL of the forwarding rule associated with the health status of the instance.StringgetForwardingRuleIp()A forwarding rule IP address assigned to this instance.com.google.protobuf.ByteStringgetForwardingRuleIpBytes()A forwarding rule IP address assigned to this instance.StringgetHealthState()Health state of the IPv4 address of the instance.com.google.protobuf.ByteStringgetHealthStateBytes()Health state of the IPv4 address of the instance.StringgetInstance()URL of the instance resource.com.google.protobuf.ByteStringgetInstanceBytes()URL of the instance resource.StringgetIpAddress()For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance.com.google.protobuf.ByteStringgetIpAddressBytes()For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance.Map<String,String>getMutableAnnotations()Deprecated.intgetPort()The named port of the instance group, not necessarily the port that is health-checked.StringgetWeight()optional string weight = 282149496;com.google.protobuf.ByteStringgetWeightBytes()optional string weight = 282149496;StringgetWeightError()Check the WeightError enum for the list of possible values.com.google.protobuf.ByteStringgetWeightErrorBytes()Check the WeightError enum for the list of possible values.booleanhasForwardingRule()URL of the forwarding rule associated with the health status of the instance.booleanhasForwardingRuleIp()A forwarding rule IP address assigned to this instance.booleanhasHealthState()Health state of the IPv4 address of the instance.booleanhasInstance()URL of the instance resource.booleanhasIpAddress()For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance.booleanhasPort()The named port of the instance group, not necessarily the port that is health-checked.booleanhasWeight()optional string weight = 282149496;booleanhasWeightError()Check the WeightError enum for the list of possible values.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()HealthStatus.BuildermergeFrom(HealthStatus other)HealthStatus.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)HealthStatus.BuildermergeFrom(com.google.protobuf.Message other)HealthStatus.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)HealthStatus.BuilderputAllAnnotations(Map<String,String> values)Metadata defined as annotations for network endpoint.HealthStatus.BuilderputAnnotations(String key, String value)Metadata defined as annotations for network endpoint.HealthStatus.BuilderremoveAnnotations(String key)Metadata defined as annotations for network endpoint.HealthStatus.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HealthStatus.BuildersetForwardingRule(String value)URL of the forwarding rule associated with the health status of the instance.HealthStatus.BuildersetForwardingRuleBytes(com.google.protobuf.ByteString value)URL of the forwarding rule associated with the health status of the instance.HealthStatus.BuildersetForwardingRuleIp(String value)A forwarding rule IP address assigned to this instance.HealthStatus.BuildersetForwardingRuleIpBytes(com.google.protobuf.ByteString value)A forwarding rule IP address assigned to this instance.HealthStatus.BuildersetHealthState(String value)Health state of the IPv4 address of the instance.HealthStatus.BuildersetHealthStateBytes(com.google.protobuf.ByteString value)Health state of the IPv4 address of the instance.HealthStatus.BuildersetInstance(String value)URL of the instance resource.HealthStatus.BuildersetInstanceBytes(com.google.protobuf.ByteString value)URL of the instance resource.HealthStatus.BuildersetIpAddress(String value)For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance.HealthStatus.BuildersetIpAddressBytes(com.google.protobuf.ByteString value)For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance.HealthStatus.BuildersetPort(int value)The named port of the instance group, not necessarily the port that is health-checked.HealthStatus.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)HealthStatus.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)HealthStatus.BuildersetWeight(String value)optional string weight = 282149496;HealthStatus.BuildersetWeightBytes(com.google.protobuf.ByteString value)optional string weight = 282149496;HealthStatus.BuildersetWeightError(String value)Check the WeightError enum for the list of possible values.HealthStatus.BuildersetWeightErrorBytes(com.google.protobuf.ByteString value)Check the WeightError enum for the list of possible values.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
clear
public HealthStatus.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
getDefaultInstanceForType
public HealthStatus getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public HealthStatus build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HealthStatus buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HealthStatus.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
setField
public HealthStatus.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
clearField
public HealthStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
clearOneof
public HealthStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
setRepeatedField
public HealthStatus.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
addRepeatedField
public HealthStatus.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
mergeFrom
public HealthStatus.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HealthStatus.Builder>
-
mergeFrom
public HealthStatus.Builder mergeFrom(HealthStatus other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
mergeFrom
public HealthStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HealthStatus.Builder>- Throws:
IOException
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:HealthStatusOrBuilderMetadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsCountin interfaceHealthStatusOrBuilder
-
containsAnnotations
public boolean containsAnnotations(String key)
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;- Specified by:
containsAnnotationsin interfaceHealthStatusOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceHealthStatusOrBuilder
-
getAnnotationsMap
public Map<String,String> getAnnotationsMap()
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsMapin interfaceHealthStatusOrBuilder
-
getAnnotationsOrDefault
public String getAnnotationsOrDefault(String key, String defaultValue)
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsOrDefaultin interfaceHealthStatusOrBuilder
-
getAnnotationsOrThrow
public String getAnnotationsOrThrow(String key)
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsOrThrowin interfaceHealthStatusOrBuilder
-
clearAnnotations
public HealthStatus.Builder clearAnnotations()
-
removeAnnotations
public HealthStatus.Builder removeAnnotations(String key)
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;
-
getMutableAnnotations
@Deprecated public Map<String,String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public HealthStatus.Builder putAnnotations(String key, String value)
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;
-
putAllAnnotations
public HealthStatus.Builder putAllAnnotations(Map<String,String> values)
Metadata defined as annotations for network endpoint.
map<string, string> annotations = 112032548;
-
hasForwardingRule
public boolean hasForwardingRule()
URL of the forwarding rule associated with the health status of the instance.
optional string forwarding_rule = 269964030;- Specified by:
hasForwardingRulein 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:
getForwardingRulein 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:
getForwardingRuleBytesin interfaceHealthStatusOrBuilder- Returns:
- The bytes for forwardingRule.
-
setForwardingRule
public HealthStatus.Builder setForwardingRule(String value)
URL of the forwarding rule associated with the health status of the instance.
optional string forwarding_rule = 269964030;- Parameters:
value- The forwardingRule to set.- Returns:
- This builder for chaining.
-
clearForwardingRule
public HealthStatus.Builder clearForwardingRule()
URL of the forwarding rule associated with the health status of the instance.
optional string forwarding_rule = 269964030;- Returns:
- This builder for chaining.
-
setForwardingRuleBytes
public HealthStatus.Builder setForwardingRuleBytes(com.google.protobuf.ByteString value)
URL of the forwarding rule associated with the health status of the instance.
optional string forwarding_rule = 269964030;- Parameters:
value- The bytes for forwardingRule to set.- Returns:
- This builder for chaining.
-
hasForwardingRuleIp
public boolean hasForwardingRuleIp()
A forwarding rule IP address assigned to this instance.
optional string forwarding_rule_ip = 172250632;- Specified by:
hasForwardingRuleIpin 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:
getForwardingRuleIpin 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:
getForwardingRuleIpBytesin interfaceHealthStatusOrBuilder- Returns:
- The bytes for forwardingRuleIp.
-
setForwardingRuleIp
public HealthStatus.Builder setForwardingRuleIp(String value)
A forwarding rule IP address assigned to this instance.
optional string forwarding_rule_ip = 172250632;- Parameters:
value- The forwardingRuleIp to set.- Returns:
- 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:
- This builder for chaining.
-
setForwardingRuleIpBytes
public HealthStatus.Builder setForwardingRuleIpBytes(com.google.protobuf.ByteString value)
A forwarding rule IP address assigned to this instance.
optional string forwarding_rule_ip = 172250632;- Parameters:
value- The bytes for forwardingRuleIp to set.- Returns:
- This builder for chaining.
-
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:
hasHealthStatein 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:
getHealthStatein 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:
getHealthStateBytesin interfaceHealthStatusOrBuilder- Returns:
- The bytes for healthState.
-
setHealthState
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;- Parameters:
value- The healthState to set.- Returns:
- 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:
- This builder for chaining.
-
setHealthStateBytes
public HealthStatus.Builder setHealthStateBytes(com.google.protobuf.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;- Parameters:
value- The bytes for healthState to set.- Returns:
- This builder for chaining.
-
hasInstance
public boolean hasInstance()
URL of the instance resource.
optional string instance = 18257045;- Specified by:
hasInstancein interfaceHealthStatusOrBuilder- Returns:
- Whether the instance field is set.
-
getInstance
public String getInstance()
URL of the instance resource.
optional string instance = 18257045;- Specified by:
getInstancein interfaceHealthStatusOrBuilder- Returns:
- The instance.
-
getInstanceBytes
public com.google.protobuf.ByteString getInstanceBytes()
URL of the instance resource.
optional string instance = 18257045;- Specified by:
getInstanceBytesin interfaceHealthStatusOrBuilder- Returns:
- The bytes for instance.
-
setInstance
public HealthStatus.Builder setInstance(String value)
URL of the instance resource.
optional string instance = 18257045;- Parameters:
value- The instance to set.- Returns:
- This builder for chaining.
-
clearInstance
public HealthStatus.Builder clearInstance()
URL of the instance resource.
optional string instance = 18257045;- Returns:
- This builder for chaining.
-
setInstanceBytes
public HealthStatus.Builder setInstanceBytes(com.google.protobuf.ByteString value)
URL of the instance resource.
optional string instance = 18257045;- Parameters:
value- The bytes for instance to set.- Returns:
- This builder for chaining.
-
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:
hasIpAddressin 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:
getIpAddressin 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:
getIpAddressBytesin interfaceHealthStatusOrBuilder- Returns:
- The bytes for ipAddress.
-
setIpAddress
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;- Parameters:
value- The ipAddress to set.- Returns:
- 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:
- This builder for chaining.
-
setIpAddressBytes
public HealthStatus.Builder setIpAddressBytes(com.google.protobuf.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;- Parameters:
value- The bytes for ipAddress to set.- Returns:
- This builder for chaining.
-
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:
hasPortin 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:
getPortin interfaceHealthStatusOrBuilder- Returns:
- The port.
-
setPort
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;- Parameters:
value- The port to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
hasWeight
public boolean hasWeight()
optional string weight = 282149496;- Specified by:
hasWeightin interfaceHealthStatusOrBuilder- Returns:
- Whether the weight field is set.
-
getWeight
public String getWeight()
optional string weight = 282149496;- Specified by:
getWeightin interfaceHealthStatusOrBuilder- Returns:
- The weight.
-
getWeightBytes
public com.google.protobuf.ByteString getWeightBytes()
optional string weight = 282149496;- Specified by:
getWeightBytesin interfaceHealthStatusOrBuilder- Returns:
- The bytes for weight.
-
setWeight
public HealthStatus.Builder setWeight(String value)
optional string weight = 282149496;- Parameters:
value- The weight to set.- Returns:
- This builder for chaining.
-
clearWeight
public HealthStatus.Builder clearWeight()
optional string weight = 282149496;- Returns:
- This builder for chaining.
-
setWeightBytes
public HealthStatus.Builder setWeightBytes(com.google.protobuf.ByteString value)
optional string weight = 282149496;- Parameters:
value- The bytes for weight to set.- Returns:
- This builder for chaining.
-
hasWeightError
public boolean hasWeightError()
Check the WeightError enum for the list of possible values.
optional string weight_error = 522501505;- Specified by:
hasWeightErrorin 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:
getWeightErrorin 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:
getWeightErrorBytesin interfaceHealthStatusOrBuilder- Returns:
- The bytes for weightError.
-
setWeightError
public HealthStatus.Builder setWeightError(String value)
Check the WeightError enum for the list of possible values.
optional string weight_error = 522501505;- Parameters:
value- The weightError to set.- Returns:
- 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:
- This builder for chaining.
-
setWeightErrorBytes
public HealthStatus.Builder setWeightErrorBytes(com.google.protobuf.ByteString value)
Check the WeightError enum for the list of possible values.
optional string weight_error = 522501505;- Parameters:
value- The bytes for weightError to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final HealthStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
mergeUnknownFields
public final HealthStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HealthStatus.Builder>
-
-