Package com.google.cloud.tpu.v2alpha1
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 Summary
Modifier and TypeMethodDescriptionCapacity units this reservation is measured in.intCapacity units this reservation is measured in.The start and end time of the reservation.The start and end time of the reservation.The resource type of the reservation.com.google.protobuf.ByteStringThe resource type of the reservation.intgetSize()The size of the reservation, in the units specified in the 'capacity_units' field.getUsage()The current usage of the reservation.The current usage of the reservation.booleanThe start and end time of the reservation.booleanhasUsage()The current usage of the reservation.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
Reservation.Standard.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
Reservation.Standard.Usage getUsage()The current usage of the reservation.
.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;- Returns:
- The usage.
-
getUsageOrBuilder
Reservation.Standard.UsageOrBuilder getUsageOrBuilder()The current usage of the reservation.
.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;
-