Class AllocationResourceStatusHealthInfo.Builder

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

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

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

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

      public AllocationResourceStatusHealthInfo.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<AllocationResourceStatusHealthInfo.Builder>
      Throws:
      IOException
    • hasDegradedBlockCount

      public boolean hasDegradedBlockCount()
       The number of reservation blocks that are degraded.
       
      optional int32 degraded_block_count = 514082636;
      Specified by:
      hasDegradedBlockCount in interface AllocationResourceStatusHealthInfoOrBuilder
      Returns:
      Whether the degradedBlockCount field is set.
    • getDegradedBlockCount

      public int getDegradedBlockCount()
       The number of reservation blocks that are degraded.
       
      optional int32 degraded_block_count = 514082636;
      Specified by:
      getDegradedBlockCount in interface AllocationResourceStatusHealthInfoOrBuilder
      Returns:
      The degradedBlockCount.
    • setDegradedBlockCount

      public AllocationResourceStatusHealthInfo.Builder setDegradedBlockCount(int value)
       The number of reservation blocks that are degraded.
       
      optional int32 degraded_block_count = 514082636;
      Parameters:
      value - The degradedBlockCount to set.
      Returns:
      This builder for chaining.
    • clearDegradedBlockCount

      public AllocationResourceStatusHealthInfo.Builder clearDegradedBlockCount()
       The number of reservation blocks that are degraded.
       
      optional int32 degraded_block_count = 514082636;
      Returns:
      This builder for chaining.
    • hasHealthStatus

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

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

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

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

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

      public boolean hasHealthyBlockCount()
       The number of reservation blocks that are healthy.
       
      optional int32 healthy_block_count = 223625019;
      Specified by:
      hasHealthyBlockCount in interface AllocationResourceStatusHealthInfoOrBuilder
      Returns:
      Whether the healthyBlockCount field is set.
    • getHealthyBlockCount

      public int getHealthyBlockCount()
       The number of reservation blocks that are healthy.
       
      optional int32 healthy_block_count = 223625019;
      Specified by:
      getHealthyBlockCount in interface AllocationResourceStatusHealthInfoOrBuilder
      Returns:
      The healthyBlockCount.
    • setHealthyBlockCount

      public AllocationResourceStatusHealthInfo.Builder setHealthyBlockCount(int value)
       The number of reservation blocks that are healthy.
       
      optional int32 healthy_block_count = 223625019;
      Parameters:
      value - The healthyBlockCount to set.
      Returns:
      This builder for chaining.
    • clearHealthyBlockCount

      public AllocationResourceStatusHealthInfo.Builder clearHealthyBlockCount()
       The number of reservation blocks that are healthy.
       
      optional int32 healthy_block_count = 223625019;
      Returns:
      This builder for chaining.