Class GroupMaintenanceInfo.Builder

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

public static final class GroupMaintenanceInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<GroupMaintenanceInfo.Builder> implements GroupMaintenanceInfoOrBuilder
 Maintenance Info for ReservationBlocks.
 
Protobuf type google.cloud.compute.v1.GroupMaintenanceInfo
  • 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<GroupMaintenanceInfo.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<GroupMaintenanceInfo.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<GroupMaintenanceInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public GroupMaintenanceInfo.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<GroupMaintenanceInfo.Builder>
      Throws:
      IOException
    • hasInstanceMaintenanceOngoingCount

      public boolean hasInstanceMaintenanceOngoingCount()
       Describes number of instances that have ongoing maintenance.
       
      optional int32 instance_maintenance_ongoing_count = 137611253;
      Specified by:
      hasInstanceMaintenanceOngoingCount in interface GroupMaintenanceInfoOrBuilder
      Returns:
      Whether the instanceMaintenanceOngoingCount field is set.
    • getInstanceMaintenanceOngoingCount

      public int getInstanceMaintenanceOngoingCount()
       Describes number of instances that have ongoing maintenance.
       
      optional int32 instance_maintenance_ongoing_count = 137611253;
      Specified by:
      getInstanceMaintenanceOngoingCount in interface GroupMaintenanceInfoOrBuilder
      Returns:
      The instanceMaintenanceOngoingCount.
    • setInstanceMaintenanceOngoingCount

      public GroupMaintenanceInfo.Builder setInstanceMaintenanceOngoingCount(int value)
       Describes number of instances that have ongoing maintenance.
       
      optional int32 instance_maintenance_ongoing_count = 137611253;
      Parameters:
      value - The instanceMaintenanceOngoingCount to set.
      Returns:
      This builder for chaining.
    • clearInstanceMaintenanceOngoingCount

      public GroupMaintenanceInfo.Builder clearInstanceMaintenanceOngoingCount()
       Describes number of instances that have ongoing maintenance.
       
      optional int32 instance_maintenance_ongoing_count = 137611253;
      Returns:
      This builder for chaining.
    • hasInstanceMaintenancePendingCount

      public boolean hasInstanceMaintenancePendingCount()
       Describes number of instances that have pending maintenance.
       
      optional int32 instance_maintenance_pending_count = 76612881;
      Specified by:
      hasInstanceMaintenancePendingCount in interface GroupMaintenanceInfoOrBuilder
      Returns:
      Whether the instanceMaintenancePendingCount field is set.
    • getInstanceMaintenancePendingCount

      public int getInstanceMaintenancePendingCount()
       Describes number of instances that have pending maintenance.
       
      optional int32 instance_maintenance_pending_count = 76612881;
      Specified by:
      getInstanceMaintenancePendingCount in interface GroupMaintenanceInfoOrBuilder
      Returns:
      The instanceMaintenancePendingCount.
    • setInstanceMaintenancePendingCount

      public GroupMaintenanceInfo.Builder setInstanceMaintenancePendingCount(int value)
       Describes number of instances that have pending maintenance.
       
      optional int32 instance_maintenance_pending_count = 76612881;
      Parameters:
      value - The instanceMaintenancePendingCount to set.
      Returns:
      This builder for chaining.
    • clearInstanceMaintenancePendingCount

      public GroupMaintenanceInfo.Builder clearInstanceMaintenancePendingCount()
       Describes number of instances that have pending maintenance.
       
      optional int32 instance_maintenance_pending_count = 76612881;
      Returns:
      This builder for chaining.
    • hasMaintenanceOngoingCount

      public boolean hasMaintenanceOngoingCount()
       Progress for ongoing maintenance for this group of VMs/hosts.
       Describes number of hosts in the block that have ongoing maintenance.
       
      optional int32 maintenance_ongoing_count = 219781919;
      Specified by:
      hasMaintenanceOngoingCount in interface GroupMaintenanceInfoOrBuilder
      Returns:
      Whether the maintenanceOngoingCount field is set.
    • getMaintenanceOngoingCount

      public int getMaintenanceOngoingCount()
       Progress for ongoing maintenance for this group of VMs/hosts.
       Describes number of hosts in the block that have ongoing maintenance.
       
      optional int32 maintenance_ongoing_count = 219781919;
      Specified by:
      getMaintenanceOngoingCount in interface GroupMaintenanceInfoOrBuilder
      Returns:
      The maintenanceOngoingCount.
    • setMaintenanceOngoingCount

      public GroupMaintenanceInfo.Builder setMaintenanceOngoingCount(int value)
       Progress for ongoing maintenance for this group of VMs/hosts.
       Describes number of hosts in the block that have ongoing maintenance.
       
      optional int32 maintenance_ongoing_count = 219781919;
      Parameters:
      value - The maintenanceOngoingCount to set.
      Returns:
      This builder for chaining.
    • clearMaintenanceOngoingCount

      public GroupMaintenanceInfo.Builder clearMaintenanceOngoingCount()
       Progress for ongoing maintenance for this group of VMs/hosts.
       Describes number of hosts in the block that have ongoing maintenance.
       
      optional int32 maintenance_ongoing_count = 219781919;
      Returns:
      This builder for chaining.
    • hasMaintenancePendingCount

      public boolean hasMaintenancePendingCount()
       Progress for ongoing maintenance for this group of VMs/hosts.
       Describes number of hosts in the block that have pending maintenance.
       
      optional int32 maintenance_pending_count = 158783547;
      Specified by:
      hasMaintenancePendingCount in interface GroupMaintenanceInfoOrBuilder
      Returns:
      Whether the maintenancePendingCount field is set.
    • getMaintenancePendingCount

      public int getMaintenancePendingCount()
       Progress for ongoing maintenance for this group of VMs/hosts.
       Describes number of hosts in the block that have pending maintenance.
       
      optional int32 maintenance_pending_count = 158783547;
      Specified by:
      getMaintenancePendingCount in interface GroupMaintenanceInfoOrBuilder
      Returns:
      The maintenancePendingCount.
    • setMaintenancePendingCount

      public GroupMaintenanceInfo.Builder setMaintenancePendingCount(int value)
       Progress for ongoing maintenance for this group of VMs/hosts.
       Describes number of hosts in the block that have pending maintenance.
       
      optional int32 maintenance_pending_count = 158783547;
      Parameters:
      value - The maintenancePendingCount to set.
      Returns:
      This builder for chaining.
    • clearMaintenancePendingCount

      public GroupMaintenanceInfo.Builder clearMaintenancePendingCount()
       Progress for ongoing maintenance for this group of VMs/hosts.
       Describes number of hosts in the block that have pending maintenance.
       
      optional int32 maintenance_pending_count = 158783547;
      Returns:
      This builder for chaining.
    • hasSchedulingType

      public boolean hasSchedulingType()
       The type of maintenance for the reservation.
       Check the SchedulingType enum for the list of possible values.
       
      optional string scheduling_type = 199835397;
      Specified by:
      hasSchedulingType in interface GroupMaintenanceInfoOrBuilder
      Returns:
      Whether the schedulingType field is set.
    • getSchedulingType

      public String getSchedulingType()
       The type of maintenance for the reservation.
       Check the SchedulingType enum for the list of possible values.
       
      optional string scheduling_type = 199835397;
      Specified by:
      getSchedulingType in interface GroupMaintenanceInfoOrBuilder
      Returns:
      The schedulingType.
    • getSchedulingTypeBytes

      public com.google.protobuf.ByteString getSchedulingTypeBytes()
       The type of maintenance for the reservation.
       Check the SchedulingType enum for the list of possible values.
       
      optional string scheduling_type = 199835397;
      Specified by:
      getSchedulingTypeBytes in interface GroupMaintenanceInfoOrBuilder
      Returns:
      The bytes for schedulingType.
    • setSchedulingType

      public GroupMaintenanceInfo.Builder setSchedulingType(String value)
       The type of maintenance for the reservation.
       Check the SchedulingType enum for the list of possible values.
       
      optional string scheduling_type = 199835397;
      Parameters:
      value - The schedulingType to set.
      Returns:
      This builder for chaining.
    • clearSchedulingType

      public GroupMaintenanceInfo.Builder clearSchedulingType()
       The type of maintenance for the reservation.
       Check the SchedulingType enum for the list of possible values.
       
      optional string scheduling_type = 199835397;
      Returns:
      This builder for chaining.
    • setSchedulingTypeBytes

      public GroupMaintenanceInfo.Builder setSchedulingTypeBytes(com.google.protobuf.ByteString value)
       The type of maintenance for the reservation.
       Check the SchedulingType enum for the list of possible values.
       
      optional string scheduling_type = 199835397;
      Parameters:
      value - The bytes for schedulingType to set.
      Returns:
      This builder for chaining.
    • hasSubblockInfraMaintenanceOngoingCount

      public boolean hasSubblockInfraMaintenanceOngoingCount()
       Describes number of subblock Infrastructure that has ongoing maintenance.
       Here, Subblock Infrastructure Maintenance pertains to upstream hardware
       contained in the Subblock that is necessary for a VM Family(e.g. NVLink
       Domains). Not all VM Families will support this field.
       
      optional int32 subblock_infra_maintenance_ongoing_count = 366161790;
      Specified by:
      hasSubblockInfraMaintenanceOngoingCount in interface GroupMaintenanceInfoOrBuilder
      Returns:
      Whether the subblockInfraMaintenanceOngoingCount field is set.
    • getSubblockInfraMaintenanceOngoingCount

      public int getSubblockInfraMaintenanceOngoingCount()
       Describes number of subblock Infrastructure that has ongoing maintenance.
       Here, Subblock Infrastructure Maintenance pertains to upstream hardware
       contained in the Subblock that is necessary for a VM Family(e.g. NVLink
       Domains). Not all VM Families will support this field.
       
      optional int32 subblock_infra_maintenance_ongoing_count = 366161790;
      Specified by:
      getSubblockInfraMaintenanceOngoingCount in interface GroupMaintenanceInfoOrBuilder
      Returns:
      The subblockInfraMaintenanceOngoingCount.
    • setSubblockInfraMaintenanceOngoingCount

      public GroupMaintenanceInfo.Builder setSubblockInfraMaintenanceOngoingCount(int value)
       Describes number of subblock Infrastructure that has ongoing maintenance.
       Here, Subblock Infrastructure Maintenance pertains to upstream hardware
       contained in the Subblock that is necessary for a VM Family(e.g. NVLink
       Domains). Not all VM Families will support this field.
       
      optional int32 subblock_infra_maintenance_ongoing_count = 366161790;
      Parameters:
      value - The subblockInfraMaintenanceOngoingCount to set.
      Returns:
      This builder for chaining.
    • clearSubblockInfraMaintenanceOngoingCount

      public GroupMaintenanceInfo.Builder clearSubblockInfraMaintenanceOngoingCount()
       Describes number of subblock Infrastructure that has ongoing maintenance.
       Here, Subblock Infrastructure Maintenance pertains to upstream hardware
       contained in the Subblock that is necessary for a VM Family(e.g. NVLink
       Domains). Not all VM Families will support this field.
       
      optional int32 subblock_infra_maintenance_ongoing_count = 366161790;
      Returns:
      This builder for chaining.
    • hasSubblockInfraMaintenancePendingCount

      public boolean hasSubblockInfraMaintenancePendingCount()
       Describes number of subblock Infrastructure that has pending maintenance.
       Here, Subblock Infrastructure Maintenance pertains to upstream hardware
       contained in the Subblock that is necessary for a VM Family (e.g. NVLink
       Domains). Not all VM Families will support this field.
       
      optional int32 subblock_infra_maintenance_pending_count = 305163418;
      Specified by:
      hasSubblockInfraMaintenancePendingCount in interface GroupMaintenanceInfoOrBuilder
      Returns:
      Whether the subblockInfraMaintenancePendingCount field is set.
    • getSubblockInfraMaintenancePendingCount

      public int getSubblockInfraMaintenancePendingCount()
       Describes number of subblock Infrastructure that has pending maintenance.
       Here, Subblock Infrastructure Maintenance pertains to upstream hardware
       contained in the Subblock that is necessary for a VM Family (e.g. NVLink
       Domains). Not all VM Families will support this field.
       
      optional int32 subblock_infra_maintenance_pending_count = 305163418;
      Specified by:
      getSubblockInfraMaintenancePendingCount in interface GroupMaintenanceInfoOrBuilder
      Returns:
      The subblockInfraMaintenancePendingCount.
    • setSubblockInfraMaintenancePendingCount

      public GroupMaintenanceInfo.Builder setSubblockInfraMaintenancePendingCount(int value)
       Describes number of subblock Infrastructure that has pending maintenance.
       Here, Subblock Infrastructure Maintenance pertains to upstream hardware
       contained in the Subblock that is necessary for a VM Family (e.g. NVLink
       Domains). Not all VM Families will support this field.
       
      optional int32 subblock_infra_maintenance_pending_count = 305163418;
      Parameters:
      value - The subblockInfraMaintenancePendingCount to set.
      Returns:
      This builder for chaining.
    • clearSubblockInfraMaintenancePendingCount

      public GroupMaintenanceInfo.Builder clearSubblockInfraMaintenancePendingCount()
       Describes number of subblock Infrastructure that has pending maintenance.
       Here, Subblock Infrastructure Maintenance pertains to upstream hardware
       contained in the Subblock that is necessary for a VM Family (e.g. NVLink
       Domains). Not all VM Families will support this field.
       
      optional int32 subblock_infra_maintenance_pending_count = 305163418;
      Returns:
      This builder for chaining.
    • hasUpcomingGroupMaintenance

      public boolean hasUpcomingGroupMaintenance()
       Maintenance information on this group of VMs.
       
      optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_group_maintenance = 393438448;
      Specified by:
      hasUpcomingGroupMaintenance in interface GroupMaintenanceInfoOrBuilder
      Returns:
      Whether the upcomingGroupMaintenance field is set.
    • getUpcomingGroupMaintenance

      public UpcomingMaintenance getUpcomingGroupMaintenance()
       Maintenance information on this group of VMs.
       
      optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_group_maintenance = 393438448;
      Specified by:
      getUpcomingGroupMaintenance in interface GroupMaintenanceInfoOrBuilder
      Returns:
      The upcomingGroupMaintenance.
    • setUpcomingGroupMaintenance

      public GroupMaintenanceInfo.Builder setUpcomingGroupMaintenance(UpcomingMaintenance value)
       Maintenance information on this group of VMs.
       
      optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_group_maintenance = 393438448;
    • setUpcomingGroupMaintenance

      public GroupMaintenanceInfo.Builder setUpcomingGroupMaintenance(UpcomingMaintenance.Builder builderForValue)
       Maintenance information on this group of VMs.
       
      optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_group_maintenance = 393438448;
    • mergeUpcomingGroupMaintenance

      public GroupMaintenanceInfo.Builder mergeUpcomingGroupMaintenance(UpcomingMaintenance value)
       Maintenance information on this group of VMs.
       
      optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_group_maintenance = 393438448;
    • clearUpcomingGroupMaintenance

      public GroupMaintenanceInfo.Builder clearUpcomingGroupMaintenance()
       Maintenance information on this group of VMs.
       
      optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_group_maintenance = 393438448;
    • getUpcomingGroupMaintenanceBuilder

      public UpcomingMaintenance.Builder getUpcomingGroupMaintenanceBuilder()
       Maintenance information on this group of VMs.
       
      optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_group_maintenance = 393438448;
    • getUpcomingGroupMaintenanceOrBuilder

      public UpcomingMaintenanceOrBuilder getUpcomingGroupMaintenanceOrBuilder()
       Maintenance information on this group of VMs.
       
      optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_group_maintenance = 393438448;
      Specified by:
      getUpcomingGroupMaintenanceOrBuilder in interface GroupMaintenanceInfoOrBuilder