Class ReservationBlockHealthInfo.Builder

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

public static final class ReservationBlockHealthInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReservationBlockHealthInfo.Builder> implements ReservationBlockHealthInfoOrBuilder
 Health information for the reservation block.
 
Protobuf type google.cloud.compute.v1.ReservationBlockHealthInfo
  • 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<ReservationBlockHealthInfo.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<ReservationBlockHealthInfo.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<ReservationBlockHealthInfo.Builder>
    • getDefaultInstanceForType

      public ReservationBlockHealthInfo 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 ReservationBlockHealthInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ReservationBlockHealthInfo.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<ReservationBlockHealthInfo.Builder>
      Throws:
      IOException
    • hasDegradedSubBlockCount

      public boolean hasDegradedSubBlockCount()
       The number of subBlocks that are degraded.
       
      optional int32 degraded_sub_block_count = 458044493;
      Specified by:
      hasDegradedSubBlockCount in interface ReservationBlockHealthInfoOrBuilder
      Returns:
      Whether the degradedSubBlockCount field is set.
    • getDegradedSubBlockCount

      public int getDegradedSubBlockCount()
       The number of subBlocks that are degraded.
       
      optional int32 degraded_sub_block_count = 458044493;
      Specified by:
      getDegradedSubBlockCount in interface ReservationBlockHealthInfoOrBuilder
      Returns:
      The degradedSubBlockCount.
    • setDegradedSubBlockCount

      public ReservationBlockHealthInfo.Builder setDegradedSubBlockCount(int value)
       The number of subBlocks that are degraded.
       
      optional int32 degraded_sub_block_count = 458044493;
      Parameters:
      value - The degradedSubBlockCount to set.
      Returns:
      This builder for chaining.
    • clearDegradedSubBlockCount

      public ReservationBlockHealthInfo.Builder clearDegradedSubBlockCount()
       The number of subBlocks that are degraded.
       
      optional int32 degraded_sub_block_count = 458044493;
      Returns:
      This builder for chaining.
    • hasHealthStatus

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

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

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

      public ReservationBlockHealthInfo.Builder setHealthStatus(String value)
       The health status of the reservation block.
       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 ReservationBlockHealthInfo.Builder clearHealthStatus()
       The health status of the reservation block.
       Check the HealthStatus enum for the list of possible values.
       
      optional string health_status = 380545845;
      Returns:
      This builder for chaining.
    • setHealthStatusBytes

      public ReservationBlockHealthInfo.Builder setHealthStatusBytes(com.google.protobuf.ByteString value)
       The health status of the reservation block.
       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.
    • hasHealthySubBlockCount

      public boolean hasHealthySubBlockCount()
       The number of subBlocks that are healthy.
       
      optional int32 healthy_sub_block_count = 5348540;
      Specified by:
      hasHealthySubBlockCount in interface ReservationBlockHealthInfoOrBuilder
      Returns:
      Whether the healthySubBlockCount field is set.
    • getHealthySubBlockCount

      public int getHealthySubBlockCount()
       The number of subBlocks that are healthy.
       
      optional int32 healthy_sub_block_count = 5348540;
      Specified by:
      getHealthySubBlockCount in interface ReservationBlockHealthInfoOrBuilder
      Returns:
      The healthySubBlockCount.
    • setHealthySubBlockCount

      public ReservationBlockHealthInfo.Builder setHealthySubBlockCount(int value)
       The number of subBlocks that are healthy.
       
      optional int32 healthy_sub_block_count = 5348540;
      Parameters:
      value - The healthySubBlockCount to set.
      Returns:
      This builder for chaining.
    • clearHealthySubBlockCount

      public ReservationBlockHealthInfo.Builder clearHealthySubBlockCount()
       The number of subBlocks that are healthy.
       
      optional int32 healthy_sub_block_count = 5348540;
      Returns:
      This builder for chaining.