Interface Reservation.StandardOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Reservation.Standard, Reservation.Standard.Builder
Enclosing class:
Reservation

public static interface Reservation.StandardOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getSize

      int getSize()
       The size of the reservation, in the units specified in the
       'capacity_units' field.
       
      int32 size = 1;
      Returns:
      The size.
    • getCapacityUnitsValue

      int getCapacityUnitsValue()
       Capacity units this reservation is measured in.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;
      Returns:
      The enum numeric value on the wire for capacityUnits.
    • getCapacityUnits

       Capacity units this reservation is measured in.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;
      Returns:
      The capacityUnits.
    • getResourceType

      String getResourceType()
       The resource type of the reservation.
       
      string resource_type = 3;
      Returns:
      The resourceType.
    • getResourceTypeBytes

      com.google.protobuf.ByteString getResourceTypeBytes()
       The resource type of the reservation.
       
      string resource_type = 3;
      Returns:
      The bytes for resourceType.
    • hasInterval

      boolean hasInterval()
       The start and end time of the reservation.
       
      .google.type.Interval interval = 4;
      Returns:
      Whether the interval field is set.
    • getInterval

      Interval getInterval()
       The start and end time of the reservation.
       
      .google.type.Interval interval = 4;
      Returns:
      The interval.
    • getIntervalOrBuilder

      IntervalOrBuilder getIntervalOrBuilder()
       The start and end time of the reservation.
       
      .google.type.Interval interval = 4;
    • hasUsage

      boolean hasUsage()
       The current usage of the reservation.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;
      Returns:
      Whether the usage field is set.
    • getUsage

       The current usage of the reservation.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;
      Returns:
      The usage.
    • getUsageOrBuilder

       The current usage of the reservation.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;