Package com.google.cloud.tpu.v2
Interface QueuedResourceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
QueuedResource,QueuedResource.Builder
@Generated
public interface QueuedResourceOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.Optional.getName()Output only.com.google.protobuf.ByteStringOutput only.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.getSpot()Optional.Optional.getState()Output only.Output only.getTpu()Optional.Optional.booleanOutput only.booleanOptional.booleanOptional.booleanhasSpot()Optional.booleanhasState()Output only.booleanhasTpu()Optional.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
-
getName
String getName()Output only. Immutable. The name of the QueuedResource.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Output only. Immutable. The name of the QueuedResource.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for name.
-
hasCreateTime
boolean hasCreateTime()Output only. The time when the QueuedResource was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()Output only. The time when the QueuedResource was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time when the QueuedResource was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasTpu
boolean hasTpu()Optional. Defines a TPU resource.
.google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the tpu field is set.
-
getTpu
QueuedResource.Tpu getTpu()Optional. Defines a TPU resource.
.google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The tpu.
-
getTpuOrBuilder
QueuedResource.TpuOrBuilder getTpuOrBuilder()Optional. Defines a TPU resource.
.google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; -
hasSpot
boolean hasSpot()Optional. The Spot tier.
.google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the spot field is set.
-
getSpot
QueuedResource.Spot getSpot()Optional. The Spot tier.
.google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The spot.
-
getSpotOrBuilder
QueuedResource.SpotOrBuilder getSpotOrBuilder()Optional. The Spot tier.
.google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; -
hasGuaranteed
boolean hasGuaranteed()Optional. The Guaranteed tier
.google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the guaranteed field is set.
-
getGuaranteed
QueuedResource.Guaranteed getGuaranteed()Optional. The Guaranteed tier
.google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The guaranteed.
-
getGuaranteedOrBuilder
QueuedResource.GuaranteedOrBuilder getGuaranteedOrBuilder()Optional. The Guaranteed tier
.google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; -
hasQueueingPolicy
boolean hasQueueingPolicy()Optional. The queueing policy of the QueuedRequest.
.google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the queueingPolicy field is set.
-
getQueueingPolicy
QueuedResource.QueueingPolicy getQueueingPolicy()Optional. The queueing policy of the QueuedRequest.
.google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The queueingPolicy.
-
getQueueingPolicyOrBuilder
QueuedResource.QueueingPolicyOrBuilder getQueueingPolicyOrBuilder()Optional. The queueing policy of the QueuedRequest.
.google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; -
hasState
boolean hasState()Output only. State of the QueuedResource request.
.google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the state field is set.
-
getState
QueuedResourceState getState()Output only. State of the QueuedResource request.
.google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The state.
-
getStateOrBuilder
QueuedResourceStateOrBuilder getStateOrBuilder()Output only. State of the QueuedResource request.
.google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getReservationName
String getReservationName()Optional. Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}string reservation_name = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The reservationName.
-
getReservationNameBytes
com.google.protobuf.ByteString getReservationNameBytes()Optional. Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}string reservation_name = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for reservationName.
-
getResourceCase
QueuedResource.ResourceCase getResourceCase() -
getTierCase
QueuedResource.TierCase getTierCase()
-