Class ReservationBlock

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.ReservationBlock
All Implemented Interfaces:
ReservationBlockOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ReservationBlock extends com.google.protobuf.GeneratedMessage implements ReservationBlockOrBuilder
 Represents a reservation block resource.
 
Protobuf type google.cloud.compute.v1.ReservationBlock
See Also:
  • Field Details

    • COUNT_FIELD_NUMBER

      public static final int COUNT_FIELD_NUMBER
      See Also:
    • CREATION_TIMESTAMP_FIELD_NUMBER

      public static final int CREATION_TIMESTAMP_FIELD_NUMBER
      See Also:
    • HEALTH_INFO_FIELD_NUMBER

      public static final int HEALTH_INFO_FIELD_NUMBER
      See Also:
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • IN_USE_COUNT_FIELD_NUMBER

      public static final int IN_USE_COUNT_FIELD_NUMBER
      See Also:
    • IN_USE_HOST_COUNT_FIELD_NUMBER

      public static final int IN_USE_HOST_COUNT_FIELD_NUMBER
      See Also:
    • KIND_FIELD_NUMBER

      public static final int KIND_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • PHYSICAL_TOPOLOGY_FIELD_NUMBER

      public static final int PHYSICAL_TOPOLOGY_FIELD_NUMBER
      See Also:
    • RESERVATION_MAINTENANCE_FIELD_NUMBER

      public static final int RESERVATION_MAINTENANCE_FIELD_NUMBER
      See Also:
    • RESERVATION_SUB_BLOCK_COUNT_FIELD_NUMBER

      public static final int RESERVATION_SUB_BLOCK_COUNT_FIELD_NUMBER
      See Also:
    • RESERVATION_SUB_BLOCK_IN_USE_COUNT_FIELD_NUMBER

      public static final int RESERVATION_SUB_BLOCK_IN_USE_COUNT_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • ZONE_FIELD_NUMBER

      public static final int ZONE_FIELD_NUMBER
      See Also:
  • 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
    • hasCount

      public boolean hasCount()
       Output only. [Output Only] The number of resources that are allocated in this
       reservation block.
       
      optional int32 count = 94851343;
      Specified by:
      hasCount in interface ReservationBlockOrBuilder
      Returns:
      Whether the count field is set.
    • getCount

      public int getCount()
       Output only. [Output Only] The number of resources that are allocated in this
       reservation block.
       
      optional int32 count = 94851343;
      Specified by:
      getCount in interface ReservationBlockOrBuilder
      Returns:
      The count.
    • hasCreationTimestamp

      public boolean hasCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339 text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      hasCreationTimestamp in interface ReservationBlockOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339 text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface ReservationBlockOrBuilder
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      public com.google.protobuf.ByteString getCreationTimestampBytes()
       Output only. [Output Only] Creation timestamp inRFC3339 text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestampBytes in interface ReservationBlockOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • hasHealthInfo

      public boolean hasHealthInfo()
       Output only. [Output Only] Health information for the reservation block.
       
      optional .google.cloud.compute.v1.ReservationBlockHealthInfo health_info = 235287729;
      Specified by:
      hasHealthInfo in interface ReservationBlockOrBuilder
      Returns:
      Whether the healthInfo field is set.
    • getHealthInfo

      public ReservationBlockHealthInfo getHealthInfo()
       Output only. [Output Only] Health information for the reservation block.
       
      optional .google.cloud.compute.v1.ReservationBlockHealthInfo health_info = 235287729;
      Specified by:
      getHealthInfo in interface ReservationBlockOrBuilder
      Returns:
      The healthInfo.
    • getHealthInfoOrBuilder

      public ReservationBlockHealthInfoOrBuilder getHealthInfoOrBuilder()
       Output only. [Output Only] Health information for the reservation block.
       
      optional .google.cloud.compute.v1.ReservationBlockHealthInfo health_info = 235287729;
      Specified by:
      getHealthInfoOrBuilder in interface ReservationBlockOrBuilder
    • hasId

      public boolean hasId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      hasId in interface ReservationBlockOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      getId in interface ReservationBlockOrBuilder
      Returns:
      The id.
    • hasInUseCount

      public boolean hasInUseCount()
       Output only. [Output Only] The number of instances that are currently in use on this
       reservation block.
       
      optional int32 in_use_count = 493458877;
      Specified by:
      hasInUseCount in interface ReservationBlockOrBuilder
      Returns:
      Whether the inUseCount field is set.
    • getInUseCount

      public int getInUseCount()
       Output only. [Output Only] The number of instances that are currently in use on this
       reservation block.
       
      optional int32 in_use_count = 493458877;
      Specified by:
      getInUseCount in interface ReservationBlockOrBuilder
      Returns:
      The inUseCount.
    • hasInUseHostCount

      public boolean hasInUseHostCount()
       Output only. Number of hosts currently in use. If there is one or more Instances running
       on the host, it is considered in use.
       
      optional int32 in_use_host_count = 364069834;
      Specified by:
      hasInUseHostCount in interface ReservationBlockOrBuilder
      Returns:
      Whether the inUseHostCount field is set.
    • getInUseHostCount

      public int getInUseHostCount()
       Output only. Number of hosts currently in use. If there is one or more Instances running
       on the host, it is considered in use.
       
      optional int32 in_use_host_count = 364069834;
      Specified by:
      getInUseHostCount in interface ReservationBlockOrBuilder
      Returns:
      The inUseHostCount.
    • hasKind

      public boolean hasKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface ReservationBlockOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface ReservationBlockOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface ReservationBlockOrBuilder
      Returns:
      The bytes for kind.
    • hasName

      public boolean hasName()
       Output only. [Output Only] The name of this reservation block generated by Google
       Compute Engine. The name must be 1-63 characters long, and comply with
       RFC1035 @pattern [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?
       
      optional string name = 3373707;
      Specified by:
      hasName in interface ReservationBlockOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Output only. [Output Only] The name of this reservation block generated by Google
       Compute Engine. The name must be 1-63 characters long, and comply with
       RFC1035 @pattern [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?
       
      optional string name = 3373707;
      Specified by:
      getName in interface ReservationBlockOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. [Output Only] The name of this reservation block generated by Google
       Compute Engine. The name must be 1-63 characters long, and comply with
       RFC1035 @pattern [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface ReservationBlockOrBuilder
      Returns:
      The bytes for name.
    • hasPhysicalTopology

      public boolean hasPhysicalTopology()
       Output only. [Output Only] The physical topology of the reservation block.
       
      optional .google.cloud.compute.v1.ReservationBlockPhysicalTopology physical_topology = 279778519;
      Specified by:
      hasPhysicalTopology in interface ReservationBlockOrBuilder
      Returns:
      Whether the physicalTopology field is set.
    • getPhysicalTopology

      public ReservationBlockPhysicalTopology getPhysicalTopology()
       Output only. [Output Only] The physical topology of the reservation block.
       
      optional .google.cloud.compute.v1.ReservationBlockPhysicalTopology physical_topology = 279778519;
      Specified by:
      getPhysicalTopology in interface ReservationBlockOrBuilder
      Returns:
      The physicalTopology.
    • getPhysicalTopologyOrBuilder

      public ReservationBlockPhysicalTopologyOrBuilder getPhysicalTopologyOrBuilder()
       Output only. [Output Only] The physical topology of the reservation block.
       
      optional .google.cloud.compute.v1.ReservationBlockPhysicalTopology physical_topology = 279778519;
      Specified by:
      getPhysicalTopologyOrBuilder in interface ReservationBlockOrBuilder
    • hasReservationMaintenance

      public boolean hasReservationMaintenance()
       Output only. [Output Only] Maintenance information for this reservation block.
       
      optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_maintenance = 340607776;
      Specified by:
      hasReservationMaintenance in interface ReservationBlockOrBuilder
      Returns:
      Whether the reservationMaintenance field is set.
    • getReservationMaintenance

      public GroupMaintenanceInfo getReservationMaintenance()
       Output only. [Output Only] Maintenance information for this reservation block.
       
      optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_maintenance = 340607776;
      Specified by:
      getReservationMaintenance in interface ReservationBlockOrBuilder
      Returns:
      The reservationMaintenance.
    • getReservationMaintenanceOrBuilder

      public GroupMaintenanceInfoOrBuilder getReservationMaintenanceOrBuilder()
       Output only. [Output Only] Maintenance information for this reservation block.
       
      optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_maintenance = 340607776;
      Specified by:
      getReservationMaintenanceOrBuilder in interface ReservationBlockOrBuilder
    • hasReservationSubBlockCount

      public boolean hasReservationSubBlockCount()
       Output only. [Output Only] The number of reservation subBlocks associated with this
       reservation block.
       
      optional int32 reservation_sub_block_count = 330782955;
      Specified by:
      hasReservationSubBlockCount in interface ReservationBlockOrBuilder
      Returns:
      Whether the reservationSubBlockCount field is set.
    • getReservationSubBlockCount

      public int getReservationSubBlockCount()
       Output only. [Output Only] The number of reservation subBlocks associated with this
       reservation block.
       
      optional int32 reservation_sub_block_count = 330782955;
      Specified by:
      getReservationSubBlockCount in interface ReservationBlockOrBuilder
      Returns:
      The reservationSubBlockCount.
    • hasReservationSubBlockInUseCount

      public boolean hasReservationSubBlockInUseCount()
       Output only. [Output Only] The number of in-use reservation subBlocks associated with
       this reservation block. If at least one VM is running on a subBlock, it is
       considered in-use.
       
      optional int32 reservation_sub_block_in_use_count = 186007137;
      Specified by:
      hasReservationSubBlockInUseCount in interface ReservationBlockOrBuilder
      Returns:
      Whether the reservationSubBlockInUseCount field is set.
    • getReservationSubBlockInUseCount

      public int getReservationSubBlockInUseCount()
       Output only. [Output Only] The number of in-use reservation subBlocks associated with
       this reservation block. If at least one VM is running on a subBlock, it is
       considered in-use.
       
      optional int32 reservation_sub_block_in_use_count = 186007137;
      Specified by:
      getReservationSubBlockInUseCount in interface ReservationBlockOrBuilder
      Returns:
      The reservationSubBlockInUseCount.
    • hasSelfLink

      public boolean hasSelfLink()
       Output only. [Output Only] Server-defined fully-qualified URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface ReservationBlockOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       Output only. [Output Only] Server-defined fully-qualified URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface ReservationBlockOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       Output only. [Output Only] Server-defined fully-qualified URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLinkBytes in interface ReservationBlockOrBuilder
      Returns:
      The bytes for selfLink.
    • hasSelfLinkWithId

      public boolean hasSelfLinkWithId()
       Output only. [Output Only] Server-defined URL for this resource with the resource id.
       
      optional string self_link_with_id = 44520962;
      Specified by:
      hasSelfLinkWithId in interface ReservationBlockOrBuilder
      Returns:
      Whether the selfLinkWithId field is set.
    • getSelfLinkWithId

      public String getSelfLinkWithId()
       Output only. [Output Only] Server-defined URL for this resource with the resource id.
       
      optional string self_link_with_id = 44520962;
      Specified by:
      getSelfLinkWithId in interface ReservationBlockOrBuilder
      Returns:
      The selfLinkWithId.
    • getSelfLinkWithIdBytes

      public com.google.protobuf.ByteString getSelfLinkWithIdBytes()
       Output only. [Output Only] Server-defined URL for this resource with the resource id.
       
      optional string self_link_with_id = 44520962;
      Specified by:
      getSelfLinkWithIdBytes in interface ReservationBlockOrBuilder
      Returns:
      The bytes for selfLinkWithId.
    • hasStatus

      public boolean hasStatus()
       Output only. [Output Only] Status of the reservation block.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      hasStatus in interface ReservationBlockOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String getStatus()
       Output only. [Output Only] Status of the reservation block.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatus in interface ReservationBlockOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       Output only. [Output Only] Status of the reservation block.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatusBytes in interface ReservationBlockOrBuilder
      Returns:
      The bytes for status.
    • hasZone

      public boolean hasZone()
       Output only. [Output Only] Zone in which the reservation block resides.
       
      optional string zone = 3744684;
      Specified by:
      hasZone in interface ReservationBlockOrBuilder
      Returns:
      Whether the zone field is set.
    • getZone

      public String getZone()
       Output only. [Output Only] Zone in which the reservation block resides.
       
      optional string zone = 3744684;
      Specified by:
      getZone in interface ReservationBlockOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      public com.google.protobuf.ByteString getZoneBytes()
       Output only. [Output Only] Zone in which the reservation block resides.
       
      optional string zone = 3744684;
      Specified by:
      getZoneBytes in interface ReservationBlockOrBuilder
      Returns:
      The bytes for zone.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ReservationBlock parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReservationBlock parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReservationBlock parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReservationBlock parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReservationBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReservationBlock parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReservationBlock parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ReservationBlock parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ReservationBlock parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ReservationBlock parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ReservationBlock parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ReservationBlock parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ReservationBlock.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ReservationBlock.Builder newBuilder()
    • newBuilder

      public static ReservationBlock.Builder newBuilder(ReservationBlock prototype)
    • toBuilder

      public ReservationBlock.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ReservationBlock.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ReservationBlock getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ReservationBlock> parser()
    • getParserForType

      public com.google.protobuf.Parser<ReservationBlock> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ReservationBlock getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder