Class ReservationSubBlockHealthInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReservationSubBlockHealthInfo.Builder>
com.google.cloud.compute.v1.ReservationSubBlockHealthInfo.Builder
All Implemented Interfaces:
ReservationSubBlockHealthInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ReservationSubBlockHealthInfo

public static final class ReservationSubBlockHealthInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReservationSubBlockHealthInfo.Builder> implements ReservationSubBlockHealthInfoOrBuilder
 Health information for the reservation subBlock.
 
Protobuf type google.cloud.compute.v1.ReservationSubBlockHealthInfo
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ReservationSubBlockHealthInfo.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<ReservationSubBlockHealthInfo.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<ReservationSubBlockHealthInfo.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ReservationSubBlockHealthInfo.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<ReservationSubBlockHealthInfo.Builder>
    • mergeFrom

    • isInitialized

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

      public ReservationSubBlockHealthInfo.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<ReservationSubBlockHealthInfo.Builder>
      Throws:
      IOException
    • hasDegradedHostCount

      public boolean hasDegradedHostCount()
       The number of degraded hosts in the reservation subBlock.
       
      optional int32 degraded_host_count = 535025001;
      Specified by:
      hasDegradedHostCount in interface ReservationSubBlockHealthInfoOrBuilder
      Returns:
      Whether the degradedHostCount field is set.
    • getDegradedHostCount

      public int getDegradedHostCount()
       The number of degraded hosts in the reservation subBlock.
       
      optional int32 degraded_host_count = 535025001;
      Specified by:
      getDegradedHostCount in interface ReservationSubBlockHealthInfoOrBuilder
      Returns:
      The degradedHostCount.
    • setDegradedHostCount

      public ReservationSubBlockHealthInfo.Builder setDegradedHostCount(int value)
       The number of degraded hosts in the reservation subBlock.
       
      optional int32 degraded_host_count = 535025001;
      Parameters:
      value - The degradedHostCount to set.
      Returns:
      This builder for chaining.
    • clearDegradedHostCount

      public ReservationSubBlockHealthInfo.Builder clearDegradedHostCount()
       The number of degraded hosts in the reservation subBlock.
       
      optional int32 degraded_host_count = 535025001;
      Returns:
      This builder for chaining.
    • hasDegradedInfraCount

      public boolean hasDegradedInfraCount()
       The number of degraded infrastructure (e.g NV link domain) in the
       reservation subblock.
       
      optional int32 degraded_infra_count = 138638927;
      Specified by:
      hasDegradedInfraCount in interface ReservationSubBlockHealthInfoOrBuilder
      Returns:
      Whether the degradedInfraCount field is set.
    • getDegradedInfraCount

      public int getDegradedInfraCount()
       The number of degraded infrastructure (e.g NV link domain) in the
       reservation subblock.
       
      optional int32 degraded_infra_count = 138638927;
      Specified by:
      getDegradedInfraCount in interface ReservationSubBlockHealthInfoOrBuilder
      Returns:
      The degradedInfraCount.
    • setDegradedInfraCount

      public ReservationSubBlockHealthInfo.Builder setDegradedInfraCount(int value)
       The number of degraded infrastructure (e.g NV link domain) in the
       reservation subblock.
       
      optional int32 degraded_infra_count = 138638927;
      Parameters:
      value - The degradedInfraCount to set.
      Returns:
      This builder for chaining.
    • clearDegradedInfraCount

      public ReservationSubBlockHealthInfo.Builder clearDegradedInfraCount()
       The number of degraded infrastructure (e.g NV link domain) in the
       reservation subblock.
       
      optional int32 degraded_infra_count = 138638927;
      Returns:
      This builder for chaining.
    • hasHealthStatus

      public boolean hasHealthStatus()
       The health status of the reservation subBlock.
       Check the HealthStatus enum for the list of possible values.
       
      optional string health_status = 380545845;
      Specified by:
      hasHealthStatus in interface ReservationSubBlockHealthInfoOrBuilder
      Returns:
      Whether the healthStatus field is set.
    • getHealthStatus

      public String getHealthStatus()
       The health status of the reservation subBlock.
       Check the HealthStatus enum for the list of possible values.
       
      optional string health_status = 380545845;
      Specified by:
      getHealthStatus in interface ReservationSubBlockHealthInfoOrBuilder
      Returns:
      The healthStatus.
    • getHealthStatusBytes

      public com.google.protobuf.ByteString getHealthStatusBytes()
       The health status of the reservation subBlock.
       Check the HealthStatus enum for the list of possible values.
       
      optional string health_status = 380545845;
      Specified by:
      getHealthStatusBytes in interface ReservationSubBlockHealthInfoOrBuilder
      Returns:
      The bytes for healthStatus.
    • setHealthStatus

      public ReservationSubBlockHealthInfo.Builder setHealthStatus(String value)
       The health status of the reservation subBlock.
       Check the HealthStatus enum for the list of possible values.
       
      optional string health_status = 380545845;
      Parameters:
      value - The healthStatus to set.
      Returns:
      This builder for chaining.
    • clearHealthStatus

      public ReservationSubBlockHealthInfo.Builder clearHealthStatus()
       The health status of the reservation subBlock.
       Check the HealthStatus enum for the list of possible values.
       
      optional string health_status = 380545845;
      Returns:
      This builder for chaining.
    • setHealthStatusBytes

      public ReservationSubBlockHealthInfo.Builder setHealthStatusBytes(com.google.protobuf.ByteString value)
       The health status of the reservation subBlock.
       Check the HealthStatus enum for the list of possible values.
       
      optional string health_status = 380545845;
      Parameters:
      value - The bytes for healthStatus to set.
      Returns:
      This builder for chaining.
    • hasHealthyHostCount

      public boolean hasHealthyHostCount()
       The number of healthy hosts in the reservation subBlock.
       
      optional int32 healthy_host_count = 40739738;
      Specified by:
      hasHealthyHostCount in interface ReservationSubBlockHealthInfoOrBuilder
      Returns:
      Whether the healthyHostCount field is set.
    • getHealthyHostCount

      public int getHealthyHostCount()
       The number of healthy hosts in the reservation subBlock.
       
      optional int32 healthy_host_count = 40739738;
      Specified by:
      getHealthyHostCount in interface ReservationSubBlockHealthInfoOrBuilder
      Returns:
      The healthyHostCount.
    • setHealthyHostCount

      public ReservationSubBlockHealthInfo.Builder setHealthyHostCount(int value)
       The number of healthy hosts in the reservation subBlock.
       
      optional int32 healthy_host_count = 40739738;
      Parameters:
      value - The healthyHostCount to set.
      Returns:
      This builder for chaining.
    • clearHealthyHostCount

      public ReservationSubBlockHealthInfo.Builder clearHealthyHostCount()
       The number of healthy hosts in the reservation subBlock.
       
      optional int32 healthy_host_count = 40739738;
      Returns:
      This builder for chaining.
    • hasHealthyInfraCount

      public boolean hasHealthyInfraCount()
       The number of healthy infrastructure (e.g NV link domain) in the
       reservation subblock.
       
      optional int32 healthy_infra_count = 385052222;
      Specified by:
      hasHealthyInfraCount in interface ReservationSubBlockHealthInfoOrBuilder
      Returns:
      Whether the healthyInfraCount field is set.
    • getHealthyInfraCount

      public int getHealthyInfraCount()
       The number of healthy infrastructure (e.g NV link domain) in the
       reservation subblock.
       
      optional int32 healthy_infra_count = 385052222;
      Specified by:
      getHealthyInfraCount in interface ReservationSubBlockHealthInfoOrBuilder
      Returns:
      The healthyInfraCount.
    • setHealthyInfraCount

      public ReservationSubBlockHealthInfo.Builder setHealthyInfraCount(int value)
       The number of healthy infrastructure (e.g NV link domain) in the
       reservation subblock.
       
      optional int32 healthy_infra_count = 385052222;
      Parameters:
      value - The healthyInfraCount to set.
      Returns:
      This builder for chaining.
    • clearHealthyInfraCount

      public ReservationSubBlockHealthInfo.Builder clearHealthyInfraCount()
       The number of healthy infrastructure (e.g NV link domain) in the
       reservation subblock.
       
      optional int32 healthy_infra_count = 385052222;
      Returns:
      This builder for chaining.