Class HealthStatus.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<HealthStatus.Builder> implements HealthStatusOrBuilder
 
Protobuf type google.cloud.compute.v1.HealthStatus
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<HealthStatus.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<HealthStatus.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<HealthStatus.Builder>
    • clear

      public HealthStatus.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<HealthStatus.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<HealthStatus.Builder>
    • getDefaultInstanceForType

      public HealthStatus getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public HealthStatus build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public HealthStatus buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public HealthStatus.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HealthStatus.Builder>
    • mergeFrom

      public HealthStatus.Builder mergeFrom(HealthStatus other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<HealthStatus.Builder>
    • mergeFrom

      public HealthStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HealthStatus.Builder>
      Throws:
      IOException
    • 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 interface HealthStatusOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Metadata defined as annotations for network endpoint.
       
      map<string, string> annotations = 112032548;
      Specified by:
      containsAnnotations in interface HealthStatusOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface HealthStatusOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Metadata defined as annotations for network endpoint.
       
      map<string, string> annotations = 112032548;
      Specified by:
      getAnnotationsMap in interface HealthStatusOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Metadata defined as annotations for network endpoint.
       
      map<string, string> annotations = 112032548;
      Specified by:
      getAnnotationsOrDefault in interface HealthStatusOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Metadata defined as annotations for network endpoint.
       
      map<string, string> annotations = 112032548;
      Specified by:
      getAnnotationsOrThrow in interface HealthStatusOrBuilder
    • 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:
      hasForwardingRule in interface HealthStatusOrBuilder
      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 interface HealthStatusOrBuilder
      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 interface HealthStatusOrBuilder
      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:
      hasForwardingRuleIp in interface HealthStatusOrBuilder
      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 interface HealthStatusOrBuilder
      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 interface HealthStatusOrBuilder
      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:
      hasHealthState in interface HealthStatusOrBuilder
      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 interface HealthStatusOrBuilder
      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 interface HealthStatusOrBuilder
      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:
      hasInstance in interface HealthStatusOrBuilder
      Returns:
      Whether the instance field is set.
    • getInstance

      public String getInstance()
       URL of the instance resource.
       
      optional string instance = 18257045;
      Specified by:
      getInstance in interface HealthStatusOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
       URL of the instance resource.
       
      optional string instance = 18257045;
      Specified by:
      getInstanceBytes in interface HealthStatusOrBuilder
      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:
      hasIpAddress in interface HealthStatusOrBuilder
      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 interface HealthStatusOrBuilder
      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 interface HealthStatusOrBuilder
      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.
    • hasIpv6Address

      public boolean hasIpv6Address()
      optional string ipv6_address = 341563804;
      Specified by:
      hasIpv6Address in interface HealthStatusOrBuilder
      Returns:
      Whether the ipv6Address field is set.
    • getIpv6Address

      public String getIpv6Address()
      optional string ipv6_address = 341563804;
      Specified by:
      getIpv6Address in interface HealthStatusOrBuilder
      Returns:
      The ipv6Address.
    • getIpv6AddressBytes

      public com.google.protobuf.ByteString getIpv6AddressBytes()
      optional string ipv6_address = 341563804;
      Specified by:
      getIpv6AddressBytes in interface HealthStatusOrBuilder
      Returns:
      The bytes for ipv6Address.
    • setIpv6Address

      public HealthStatus.Builder setIpv6Address(String value)
      optional string ipv6_address = 341563804;
      Parameters:
      value - The ipv6Address to set.
      Returns:
      This builder for chaining.
    • clearIpv6Address

      public HealthStatus.Builder clearIpv6Address()
      optional string ipv6_address = 341563804;
      Returns:
      This builder for chaining.
    • setIpv6AddressBytes

      public HealthStatus.Builder setIpv6AddressBytes(com.google.protobuf.ByteString value)
      optional string ipv6_address = 341563804;
      Parameters:
      value - The bytes for ipv6Address to set.
      Returns:
      This builder for chaining.
    • hasIpv6HealthState

      public boolean hasIpv6HealthState()
       Health state of the IPv6 address of the instance.
       Check the Ipv6HealthState enum for the list of possible values.
       
      optional string ipv6_health_state = 190316614;
      Specified by:
      hasIpv6HealthState in interface HealthStatusOrBuilder
      Returns:
      Whether the ipv6HealthState field is set.
    • getIpv6HealthState

      public String getIpv6HealthState()
       Health state of the IPv6 address of the instance.
       Check the Ipv6HealthState enum for the list of possible values.
       
      optional string ipv6_health_state = 190316614;
      Specified by:
      getIpv6HealthState in interface HealthStatusOrBuilder
      Returns:
      The ipv6HealthState.
    • getIpv6HealthStateBytes

      public com.google.protobuf.ByteString getIpv6HealthStateBytes()
       Health state of the IPv6 address of the instance.
       Check the Ipv6HealthState enum for the list of possible values.
       
      optional string ipv6_health_state = 190316614;
      Specified by:
      getIpv6HealthStateBytes in interface HealthStatusOrBuilder
      Returns:
      The bytes for ipv6HealthState.
    • setIpv6HealthState

      public HealthStatus.Builder setIpv6HealthState(String value)
       Health state of the IPv6 address of the instance.
       Check the Ipv6HealthState enum for the list of possible values.
       
      optional string ipv6_health_state = 190316614;
      Parameters:
      value - The ipv6HealthState to set.
      Returns:
      This builder for chaining.
    • clearIpv6HealthState

      public HealthStatus.Builder clearIpv6HealthState()
       Health state of the IPv6 address of the instance.
       Check the Ipv6HealthState enum for the list of possible values.
       
      optional string ipv6_health_state = 190316614;
      Returns:
      This builder for chaining.
    • setIpv6HealthStateBytes

      public HealthStatus.Builder setIpv6HealthStateBytes(com.google.protobuf.ByteString value)
       Health state of the IPv6 address of the instance.
       Check the Ipv6HealthState enum for the list of possible values.
       
      optional string ipv6_health_state = 190316614;
      Parameters:
      value - The bytes for ipv6HealthState 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:
      hasPort in interface HealthStatusOrBuilder
      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 interface HealthStatusOrBuilder
      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:
      hasWeight in interface HealthStatusOrBuilder
      Returns:
      Whether the weight field is set.
    • getWeight

      public String getWeight()
      optional string weight = 282149496;
      Specified by:
      getWeight in interface HealthStatusOrBuilder
      Returns:
      The weight.
    • getWeightBytes

      public com.google.protobuf.ByteString getWeightBytes()
      optional string weight = 282149496;
      Specified by:
      getWeightBytes in interface HealthStatusOrBuilder
      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:
      hasWeightError in interface HealthStatusOrBuilder
      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 interface HealthStatusOrBuilder
      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 interface HealthStatusOrBuilder
      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.